# Node red failing to start

**URL:** <https://discourse.nodered.org/t/node-red-failing-to-start/48125>\
**Category:** General\
**Created:** [7 July 2021 10:17 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125 "2021-07-07T10:17:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bceyresy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Post date:** [7 July 2021 10:17 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/1 "2021-07-07T10:17:50Z")

</div>

Hi,

I have encountered this issue at least 2 or 3 times now. I am not sure why it happens or how to diagnose the issue? Any help would be appreciated.

7 Jul 11:12:34 - [info] Node-RED version: v1.3.5  
7 Jul 11:12:34 - [info] Node.js version: v14.17.0  
7 Jul 11:12:34 - [info] Windows\_NT 10.0.19042 x64 LE  
7 Jul 11:12:36 - [info] Loading palette nodes  
7 Jul 11:12:37 - [error] Failed to start server:  
7 Jul 11:12:37 - [error] TypeError: Cannot read property 'forEach' of undefined  
at Object.addModule (C:\Users\user\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\registry.js:195:27)  
at C:\Users\user\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\loader.js:153:34

Regards

Symon

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 July 2021 10:18 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/2 "2021-07-07T10:18:46Z")

</div>

Hi @bceyresy

have you installed any new nodes recently? Or tried to create your own nodes?

---

<div class="post-metadata">

**Author:** ![bceyresy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Post date:** [7 July 2021 10:40 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/3 "2021-07-07T10:40:37Z")

</div>

Yes I installed a few in fact. Last time this happened I removed the modules from the .nod-red directory in the current user, then also removed the lines corresponding to the modules called in .config.nodes.json but this time it has not solved the issue. I think I got lucky last time.

Please shine some light on it 🙃

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 July 2021 10:42 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/4 "2021-07-07T10:42:07Z")

</div>

This error is 100% caused by a 'bad' node somewhere.

You don't need to delete `.config.nodes.json` - that is just a record of what has been found.

Are you sure there isn't left behind in `.node-red/node_modules`?

---

<div class="post-metadata">

**Author:** ![bceyresy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Post date:** [7 July 2021 10:47 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/5 "2021-07-07T10:47:04Z")

</div>

Ye I have deleted the last recent 3 I installed and used. It still will not boot.

There are 2 module folders, one in the .node-red & one under AppData\roaming.

Whats the difference between the 2?

---

<div class="post-metadata">

**Author:** ![bceyresy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Post date:** [7 July 2021 10:48 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/6 "2021-07-07T10:48:55Z")

</div>

Found the bad note. It was cratedb. I Had the same issue with Postgres nodes. I am using Mysql at the moment. is there issues with installng other DBs?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 July 2021 10:58 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/7 "2021-07-07T10:58:46Z")

</div>

What module name exactly? I'd like to track down nodes that cause this so we can either get them fixed, or remove them from the flow library.

---

<div class="post-metadata">

**Author:** ![bceyresy](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Post date:** [7 July 2021 11:01 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/8 "2021-07-07T11:01:53Z")

</div>

it appeared to be node-red-contrib-cratedb was this instance. I can't remember exactly which postgres node was the issue last time as I installed quite a few together.

Thanks

Sy

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 July 2021 11:44 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/9 "2021-07-07T11:44:45Z")

</div>

@knolleary node-red-contrib-cratedb was last updated over four year ago and in GitHub the author has archived it.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 July 2021 11:45 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/10 "2021-07-07T11:45:17Z")

</div>

Yes. I looked it up as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 September 2021 11:46 UTC](https://discourse.nodered.org/t/node-red-failing-to-start/48125/11 "2021-09-05T11:46:03Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
