# Node-Red will not complete loading with projects enabled

**URL:** <https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822>\
**Category:** General\
**Created:** [9 January 2021 03:53 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822 "2021-01-09T03:53:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 03:53 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/1 "2021-01-09T03:53:57Z")

</div>

Node-Red is Installed with all defaults.  
Normal operation until "projects" is enabled.  
Then when starting I get:  
Graph showing "Loading Nodes 1/59 that stops at 59/59"  
Error: Failed to load ‘node-red/comment’  
Normal operation resumes after disabling "projects" and restarting node-red.

Node-RED version: v1.2.7  
Node.js version: v14.15.3  
Dashboard version 2.26.1 started at /ui  
Windows\_NT 10.0.18363 x64 LE  
Win10 pro v1909 6700K w/ 32 GB Ram  
Firefox, Chrome and Edge give identical results.  
Have uninstalled and reinstalled node-red using Power Shell w/ Admin - forced all new default directories

With a new node-red install and projects enabled:

PS C:\Windows\system32\> node-red  
8 Jan 21:29:03 - [info]

# Welcome to Node-RED

8 Jan 21:29:03 - [info] Node-RED version: v1.2.7  
8 Jan 21:29:03 - [info] Node.js version: v14.15.3  
8 Jan 21:29:03 - [info] Windows\_NT 10.0.18363 x64 LE  
8 Jan 21:29:04 - [info] Loading palette nodes  
8 Jan 21:29:05 - [info] Dashboard version 2.26.1 started at /ui  
8 Jan 21:29:05 - [info] Settings file : C:\Users\FLA.node-red\settings.js  
8 Jan 21:29:05 - [info] Context store : 'default' [module=memory]  
8 Jan 21:29:05 - [info] User directory : \Users\FLA.node-red  
8 Jan 21:29:05 - [warn] No active project : using default flows file  
8 Jan 21:29:05 - [info] Flows file : \Users\FLA.node-red\flows\_FLA.json  
8 Jan 21:29:05 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
8 Jan 21:29:05 - [info] Starting flows  
8 Jan 21:29:05 - [info] Started flows  
8 Jan 21:29:05 - [info] [udp in:f2742f39.0019b8] udp listener at 0.0.0.0:4992  
8 Jan 21:31:29 - [info] Stopping flows  
8 Jan 21:31:29 - [info] [udp in:f2742f39.0019b8] udp listener stopped  
8 Jan 21:31:29 - [info] Stopped flows  
8 Jan 21:31:29 - [info] Starting flows  
8 Jan 21:31:29 - [info] Started flows  
8 Jan 21:31:29 - [info] [udp in:f2742f39.0019b8] udp listener at 0.0.0.0:4992  
8 Jan 22:33:32 - [info] Stopping flows  
8 Jan 22:33:32 - [info] [udp in:f2742f39.0019b8] udp listener stopped  
8 Jan 22:33:32 - [info] Stopped flows  
PS C:\Windows\system32\> node-red  
8 Jan 22:33:38 - [info]

With projects disabled:

# Welcome to Node-RED

8 Jan 22:33:38 - [info] Node-RED version: v1.2.7  
8 Jan 22:33:38 - [info] Node.js version: v14.15.3  
8 Jan 22:33:38 - [info] Windows\_NT 10.0.18363 x64 LE  
8 Jan 22:33:39 - [info] Loading palette nodes  
8 Jan 22:33:39 - [info] Dashboard version 2.26.1 started at /ui  
8 Jan 22:33:39 - [info] Settings file : C:\Users\FLA.node-red\settings.js  
8 Jan 22:33:39 - [info] Context store : 'default' [module=memory]  
8 Jan 22:33:39 - [info] User directory : \Users\FLA.node-red  
8 Jan 22:33:39 - [warn] Projects disabled : editorTheme.projects.enabled=false  
8 Jan 22:33:39 - [info] Flows file : \Users\FLA.node-red\flows\_FLA.json  
8 Jan 22:33:39 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
8 Jan 22:33:39 - [info] Starting flows  
8 Jan 22:33:39 - [info] Started flows  
8 Jan 22:33:39 - [info] [udp in:f2742f39.0019b8] udp listener at 0.0.0.0:4992

Thanks for any trouble-shooting suggestions as I am very new to this!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 09:57 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/2 "2021-01-09T09:57:30Z")

</div>

If you have not already done so then clear the browser cache, do a full page refresh in the browser and see if that fixes it.  
If not then what browser are you using? Are you able to try another browser (not IE)?  
If still not then have a look in the browser developer console to see if there are any errors there.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 12:59 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/3 "2021-01-09T12:59:12Z")

</div>

Hi Colin:  
Thanks for the help.  
I restarted windows and then cleared FireFox as you suggested but got the same failure.

After clearing the previous errors from the Browser Console and re-starting Node-Red it shows:  
Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified  
Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified  
Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified

This sequence continues to repeat.

Larry

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 13:28 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/4 "2021-01-09T13:28:34Z")

</div>

Have you tried a different browser?

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 14:02 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/5 "2021-01-09T14:02:07Z")

</div>

Yes, Chrome and Edge and IE.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 14:07 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/6 "2021-01-09T14:07:00Z")

</div>

You say it is loaded with all the defaults, but I see you have got a flow running. Did it work previously? If so then start node-red using  
`node-red --safe`  
which will start without running the flows. If that is ok then undo whatever was the last thing you did and deploy.  
Alternatively restore the flows file from your most recent backup.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 14:38 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/7 "2021-01-09T14:38:52Z")

</div>

Using node-red --safe had the same results. I even restarted windows.

The problem is with projects enabled - OK when disabled.

Projects had worked before but not initially. I could start the flow with projects disabled, then enable it in settings.js and restart node-red. The flow would then reconnect with projects enabled. The project feature would work for days until I would, say import a new module such as random.

Yesterday, an import again disabled projects. I removed node-red and reinstalled it. While the Flows are now much faster and the snap to grid feature now functions, I can no longer get projects to work even as before.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 15:09 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/8 "2021-01-09T15:09:30Z")

</div>

Rename the .node-red folder so you start with a clean sheet. Then try again and make sure it starts up ok. Then enable projects in settings.js and restart node red.

I suspect that it is one of the installed nodes (which are in .node-red/node\_modules) that is causing the problem.

Edit: are you using the Victron nodes?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 January 2021 15:27 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/9 "2021-01-09T15:27:50Z")

</div>

> [@flaver](#):
>
> an import again disabled projects

... err how can that happen ? projects is enabled in your settings file... any normal import can't touch that. Not sure what you are importing but that doesn't sound right to me.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 15:44 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/10 "2021-01-09T15:44:26Z")

</div>

I have already tried to rename .node-red. It gave the same results.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 16:04 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/11 "2021-01-09T16:04:05Z")

</div>

When I was able to have projects working and imported a new node, sometimes the flow UI would no longer load. As soon as I would disable projects in the settings.js file, The flow UI would again load. Then enabling projects in the settings.js file again causes the flow UI to hang.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 16:17 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/12 "2021-01-09T16:17:17Z")

</div>

> [@flaver](#):
>
> I have already tried to rename .node-red. It gave the same results.

Not possible, since the flows file that the log references would not exist.

Edit. Can I just check that you have verified that if you stop node-red that the browser times out trying to load the editor.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 16:41 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/13 "2021-01-09T16:41:10Z")

</div>

The browser tab stays active with a drop down box message "Lost connection to server, reconnecting..."

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 16:43 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/14 "2021-01-09T16:43:37Z")

</div>

OK, just wanted to check that there wasn't another node-red running somewhere. So post the log after renaming .node-red please.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 18:02 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/15 "2021-01-09T18:02:09Z")

</div>

I have projects enabled now. Disabled node-red-contrib-multiproject and the dashboard nodes in the process. However after enabling the dashboard nodes, I get the error:

The workspace contains some nodes that are not properly configured:

- [Flow 2] button (ui\_button)  
Sigh!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 18:17 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/17 "2021-01-09T18:17:29Z")

</div>

Use Search to find the button and correct whatever it doesn't like.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 January 2021 18:28 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/18 "2021-01-09T18:28:57Z")

</div>

> [@flaver](#):
>
> node-red-contrib-multiproject

Well, that would be my very first port of call if I were having problems like this. It hasn't been updated in over 4 years and the chances of it behaving well are pretty low.

Get rid of that first before trying anything else.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 18:47 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/19 "2021-01-09T18:47:03Z")

</div>

Thanks - done.

Now working to get all the dashboard functions to work. Have 10 working but ui form, numeric, slider and template cause error when Deployed. Error:

The workspace contains some nodes that are not properly configured:

- [Flow 1] button (ui\_button)
- [Flow 1] slider (ui\_slider)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 January 2021 21:30 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/20 "2021-01-09T21:30:15Z")

</div>

Are they displayed in the flow with a red triangle? What do you see if you open one of them. Make a small change and see if that fixes it.

---

<div class="post-metadata">

**Author:** ![flaver](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@flaver](https://discourse.nodered.org/u/flaver)\
**Post date:** [9 January 2021 21:47 UTC](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822/21 "2021-01-09T21:47:28Z")

</div>

Colin:  
Thanks for all your help in getting me to a stable node-red installation.

All the nodes seem to work as expected now. And Projects are working too.

Now if you could just transfer some of your insights and experience...

Thanks,  
Larry

[Next page](https://discourse.nodered.org/t/node-red-will-not-complete-loading-with-projects-enabled/38822.md?page=2)
