Node-Red on Windows 10 with Chrome

I have installed node-red along with 101 nodes. When I start Node-Red from CMD, there are no errors or warnings. On Google, http://localhost:1880 starts Node-Red and progresses through loading nodes 101 / 101 and then freezes. There are no errors noted.

I am looking for some guidance as to how to debug this. I have changed the settings.js logging options to determine if there is anything being noted, but not. Wiindows Defender has nodejs noted as an exclusion...

Need some help.

Craig

Welcome to the forum @Craig

Please post the full terminal output when you start node-red. Copy/paste please, not screenshot. When you paste it here use the </> button at the top of the forum entry window.

I hope that I am doing this correctly... From Node-Red CMD:

Microsoft Windows [Version 10.0.19044.1889]
(c) Microsoft Corporation. All rights reserved.

C:\>node-red
25 Aug 17:18:46 - [info]

Welcome to Node-RED
===================

25 Aug 17:18:46 - [info] Node-RED version: v3.0.2
25 Aug 17:18:46 - [info] Node.js  version: v18.8.0
25 Aug 17:18:46 - [info] Windows_NT 10.0.19044 x64 LE
25 Aug 17:18:48 - [info] Loading palette nodes
25 Aug 17:18:48 - [debug] Module: @studiobox/node-red-contrib-ui-widget-bulb-basic 0.2.0 \Users\Craig\.node-red\node_modules\@studiobox\node-red-contrib-ui-widget-bulb-basic
25 Aug 17:18:48 - [debug] Module: @studiobox/node-red-contrib-ui-widget-humidity-tree 0.5.1 \Users\Craig\.node-red\node_modules\@studiobox\node-red-contrib-ui-widget-humidity-tree
25 Aug 17:18:48 - [debug] Module: @studiobox/node-red-contrib-ui-widget-thermometer 0.5.3 \Users\Craig\.node-red\node_modules\@studiobox\node-red-contrib-ui-widget-thermometer
25 Aug 17:18:48 - [debug] Module: node-red-contrib-convert 1.0.5 \Users\Craig\.node-red\node_modules\node-red-contrib-convert
25 Aug 17:18:48 - [debug] Module: node-red-contrib-convert-filename-ja 1.0.3 \Users\Craig\.node-red\node_modules\node-red-contrib-convert-filename-ja
25 Aug 17:18:48 - [debug] Module: node-red-contrib-convert-kitchen 1.0.3 \Users\Craig\.node-red\node_modules\node-red-contrib-convert-kitchen
25 Aug 17:18:48 - [debug] Module: node-red-contrib-flexradio 1.2.0 \Users\Craig\.node-red\node_modules\node-red-contrib-flexradio
25 Aug 17:18:48 - [debug] Module: node-red-contrib-image-tools 2.0.4 \Users\Craig\.node-red\node_modules\node-red-contrib-image-tools
25 Aug 17:18:48 - [debug] Module: node-red-contrib-msg-resend 1.0.0 \Users\Craig\.node-red\node_modules\node-red-contrib-msg-resend
25 Aug 17:18:48 - [debug] Module: node-red-contrib-random-output 0.1.1 \Users\Craig\.node-red\node_modules\node-red-contrib-random-output
25 Aug 17:18:48 - [debug] Module: node-red-contrib-simple-gate 0.5.2 \Users\Craig\.node-red\node_modules\node-red-contrib-simple-gate
25 Aug 17:18:48 - [debug] Module: node-red-contrib-startup-trigger 0.1.0 \Users\Craig\.node-red\node_modules\node-red-contrib-startup-trigger
25 Aug 17:18:48 - [debug] Module: node-red-contrib-stoptimer3 0.1.2 \Users\Craig\.node-red\node_modules\node-red-contrib-stoptimer3
25 Aug 17:18:48 - [debug] Module: node-red-contrib-string 1.0.0 \Users\Craig\.node-red\node_modules\node-red-contrib-string
25 Aug 17:18:48 - [debug] Module: node-red-contrib-string-similarity 0.0.1 \Users\Craig\.node-red\node_modules\node-red-contrib-string-similarity
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-digital-display 1.0.3 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-digital-display
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-led 0.4.11 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-led
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-level 0.1.46 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-level
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-media 1.2.0 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-media
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-metabase 1.0.6 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-metabase
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-svg 2.3.1 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-svg
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-thermostat 1.0.0 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-thermostat
25 Aug 17:18:48 - [debug] Module: node-red-contrib-ui-timeline 1.0.2 \Users\Craig\.node-red\node_modules\node-red-contrib-ui-timeline
25 Aug 17:18:48 - [debug] Module: node-red-dashboard 3.1.7 \Users\Craig\.node-red\node_modules\node-red-dashboard
25 Aug 17:18:48 - [debug] Module: node-red-node-ping 0.3.1 \Users\Craig\.node-red\node_modules\node-red-node-ping
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-duallineargauge 0.0.1 \Users\Craig\.node-red\node_modules\node-red-node-ui-duallineargauge
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-iframe 0.2.1 \Users\Craig\.node-red\node_modules\node-red-node-ui-iframe
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-lineargauge 0.3.6 \Users\Craig\.node-red\node_modules\node-red-node-ui-lineargauge
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-list 0.3.6 \Users\Craig\.node-red\node_modules\node-red-node-ui-list
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-microphone 0.3.1 \Users\Craig\.node-red\node_modules\node-red-node-ui-microphone
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-table 0.4.3 \Users\Craig\.node-red\node_modules\node-red-node-ui-table
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-vega 0.2.1 \Users\Craig\.node-red\node_modules\node-red-node-ui-vega
25 Aug 17:18:48 - [debug] Module: node-red-node-ui-webcam 0.4.0 \Users\Craig\.node-red\node_modules\node-red-node-ui-webcam
25 Aug 17:18:48 - [debug] Module: node-red-node-wol 0.2.0 \Users\Craig\.node-red\node_modules\node-red-node-wol
25 Aug 17:18:49 - [info] Dashboard version 3.1.7 started at /ui
25 Aug 17:18:49 - [info] Settings file  : C:\Users\Craig\.node-red\settings.js
25 Aug 17:18:49 - [info] Context store  : 'default' [module=memory]
25 Aug 17:18:49 - [info] User directory : \Users\Craig\.node-red
25 Aug 17:18:49 - [info] Flows file     : \Users\Craig\.node-red\flows.json
25 Aug 17:18:49 - [info] Server now running at http://127.0.0.1:1880/
25 Aug 17:18:49 - [debug] loaded flow revision: 13d4472f7a2e3fc909a44565883711c925 Aug 17:18:49 - [debug] red/runtime/nodes/credentials.load : user provided key25 Aug 17:18:49 - [debug] red/runtime/nodes/credentials.load : keyType=user
25 Aug 17:18:49 - [info] Starting flows
25 Aug 17:18:49 - [debug] red/nodes/flows.start : starting flow : global
25 Aug 17:18:49 - [debug] red/nodes/flows.start : starting flow : beaf2cbf3b79e991
25 Aug 17:18:49 - [info] Started flows

From Chrome 
{"report":"diagnostics","scope":"basic","time":{"utc":"Thu, 25 Aug 2022 21:23:50 GMT","local":"8/25/2022, 5:23:50 PM"},"intl":{"locale":"en-US","timeZone":"America/New_York"},"nodejs":{"version":"v18.8.0","arch":"x64","platform":"win32","memoryUsage":{"rss":84963328,"heapTotal":49168384,"heapUsed":45974424,"external":1189164,"arrayBuffers":133936}},"os":{"containerised":false,"wsl":false,"totalmem":17045438464,"freemem":11904266240,"arch":"x64","loadavg":[0,0,0],"platform":"win32","release":"10.0.19044","type":"Windows_NT","uptime":18274,"version":"Windows 10 Pro"},"runtime":{"version":"3.0.2","isStarted":true,"flows":{"state":"start","started":true},"modules":{"node-red":"3.0.2","node-red-contrib-random-output":"0.1.1","node-red-contrib-msg-resend":"1.0.0","node-red-contrib-ui-led":"0.4.11","node-red-contrib-ui-level":"0.1.46","node-red-contrib-ui-media":"1.2.0","node-red-node-ui-list":"0.3.6","node-red-dashboard":"3.1.7","node-red-contrib-string":"1.0.0","node-red-contrib-string-similarity":"0.0.1","node-red-contrib-ui-svg":"2.3.1","node-red-contrib-simple-gate":"0.5.2","node-red-node-ping":"0.3.1","node-red-contrib-flexradio":"1.2.0","node-red-contrib-convert":"1.0.5","node-red-contrib-convert-filename-ja":"1.0.3","node-red-contrib-convert-kitchen":"1.0.3","node-red-contrib-stoptimer3":"0.1.2","node-red-contrib-image-tools":"2.0.4","node-red-contrib-startup-trigger":"0.1.0","node-red-contrib-ui-digital-display":"1.0.3","node-red-node-ui-vega":"0.2.1","node-red-node-ui-table":"0.4.3","node-red-node-ui-iframe":"0.2.1","node-red-node-ui-webcam":"0.4.0","node-red-node-ui-microphone":"0.3.1","node-red-contrib-ui-metabase":"1.0.6","node-red-contrib-ui-timeline":"1.0.2","node-red-node-ui-lineargauge":"0.3.6","node-red-contrib-ui-thermostat":"1.0.0","node-red-node-ui-duallineargauge":"0.0.1","@studiobox/node-red-contrib-ui-widget-bulb-basic":"0.2.0","@studiobox/node-red-contrib-ui-widget-thermometer":"0.5.3","@studiobox/node-red-contrib-ui-widget-humidity-tree":"0.5.1","node-red-node-wol":"0.2.0"},"settings":{"available":true,"apiMaxLength":"UNSET","disableEditor":false,"contextStorage":{},"debugMaxLength":1000,"editorTheme":{"palette":{},"projects":{"enabled":"true","workflow":{"mode":"manual"}},"codeEditor":{"lib":"monaco","options":{}}},"flowFile":"flows.json","mqttReconnectTime":15000,"serialReconnectTime":15000,"socketReconnectTime":"UNSET","socketTimeout":"UNSET","tcpMsgQueueSize":"UNSET","inboundWebSocketTimeout":"UNSET","runtimeState":{"enabled":false,"ui":false},"adminAuth":"UNSET","httpAdminRoot":"/","httpAdminCors":"UNSET","httpNodeAuth":"UNSET","httpNodeRoot":"/","httpNodeCors":"UNSET","httpStatic":"UNSET","httpStaticRoot":"UNSET","httpStaticCors":"UNSET","uiHost":"SET","uiPort":"SET","userDir":"SET","nodesDir":"UNSET"}}}

hope this works for you...

Sending Chrome diagnostics again...

{"report":"diagnostics","scope":"basic","time":{"utc":"Thu, 25 Aug 2022 21:23:50 GMT","local":"8/25/2022, 5:23:50 PM"},"intl":{"locale":"en-US","timeZone":"America/New_York"},"nodejs":{"version":"v18.8.0","arch":"x64","platform":"win32","memoryUsage":{"rss":84963328,"heapTotal":49168384,"heapUsed":45974424,"external":1189164,"arrayBuffers":133936}},"os":{"containerised":false,"wsl":false,"totalmem":17045438464,"freemem":11904266240,"arch":"x64","loadavg":[0,0,0],"platform":"win32","release":"10.0.19044","type":"Windows_NT","uptime":18274,"version":"Windows 10 Pro"},"runtime":{"version":"3.0.2","isStarted":true,"flows":{"state":"start","started":true},"modules":{"node-red":"3.0.2","node-red-contrib-random-output":"0.1.1","node-red-contrib-msg-resend":"1.0.0","node-red-contrib-ui-led":"0.4.11","node-red-contrib-ui-level":"0.1.46","node-red-contrib-ui-media":"1.2.0","node-red-node-ui-list":"0.3.6","node-red-dashboard":"3.1.7","node-red-contrib-string":"1.0.0","node-red-contrib-string-similarity":"0.0.1","node-red-contrib-ui-svg":"2.3.1","node-red-contrib-simple-gate":"0.5.2","node-red-node-ping":"0.3.1","node-red-contrib-flexradio":"1.2.0","node-red-contrib-convert":"1.0.5","node-red-contrib-convert-filename-ja":"1.0.3","node-red-contrib-convert-kitchen":"1.0.3","node-red-contrib-stoptimer3":"0.1.2","node-red-contrib-image-tools":"2.0.4","node-red-contrib-startup-trigger":"0.1.0","node-red-contrib-ui-digital-display":"1.0.3","node-red-node-ui-vega":"0.2.1","node-red-node-ui-table":"0.4.3","node-red-node-ui-iframe":"0.2.1","node-red-node-ui-webcam":"0.4.0","node-red-node-ui-microphone":"0.3.1","node-red-contrib-ui-metabase":"1.0.6","node-red-contrib-ui-timeline":"1.0.2","node-red-node-ui-lineargauge":"0.3.6","node-red-contrib-ui-thermostat":"1.0.0","node-red-node-ui-duallineargauge":"0.0.1","@studiobox/node-red-contrib-ui-widget-bulb-basic":"0.2.0","@studiobox/node-red-contrib-ui-widget-thermometer":"0.5.3","@studiobox/node-red-contrib-ui-widget-humidity-tree":"0.5.1","node-red-node-wol":"0.2.0"},"settings":{"available":true,"apiMaxLength":"UNSET","disableEditor":false,"contextStorage":{},"debugMaxLength":1000,"editorTheme":{"palette":{},"projects":{"enabled":"true","workflow":{"mode":"manual"}},"codeEditor":{"lib":"monaco","options":{}}},"flowFile":"flows.json","mqttReconnectTime":15000,"serialReconnectTime":15000,"socketReconnectTime":"UNSET","socketTimeout":"UNSET","tcpMsgQueueSize":"UNSET","inboundWebSocketTimeout":"UNSET","runtimeState":{"enabled":false,"ui":false},"adminAuth":"UNSET","httpAdminRoot":"/","httpAdminCors":"UNSET","httpNodeAuth":"UNSET","httpNodeRoot":"/","httpNodeCors":"UNSET","httpStatic":"UNSET","httpStaticRoot":"UNSET","httpStaticCors":"UNSET","uiHost":"SET","uiPort":"SET","userDir":"SET","nodesDir":"UNSET"}}}

Hi,

Try adding '--safe' to the end of the command you use to start node-red.

This will load the flows, but stop them actually starting / executing.

Then you can investigate recent changes and look for anomalies. If you have any luck you can remove recent changes and it will (probably) start working again.

Also, there is a backup kept of the flow file - that can also be useful

Cheers,

Paul

Hi Paul - thanks for getting back to me...

I just used the --safe option to start and the flows stopped. However, when starting the browser I had the same result... loading 101/101 and freeze.

C

Paul - I have additionally changed Browsers to Firefox after the --safe execution and the results in Firefox were the same. Can't figure if flows were stopped in safe mode, why the browsers are still loading the 101 nodes?

C

Hi @Craig and welcome...

  • how did you install your nodes?
  • What would happen if you only install and run Node-RED? (only core nodes)
  • look if Node-RED works in your web browser.
  • and if works well, then install the nodes, one by one...

Thanks for your note and suggestions. I installed the nodes from within the browser Node-Red using the install option. As I cannot get into Node-Red now, my thinking is that I could go into the User Lib file and move them out of the node folder and then test. Do you think this would work?

Do you have any actual flows defined? If so, stop node-red, rename the ~/.node-red folder and re-start node-red. This will create a new, clean folder and it should start OK. You can then start re-adding nodes. If it still doesn't start, you will know that node-red itself has an issue and you can re-install it.

Once you have reinstalled your nodes and assuming it all works, you can copy back the json files from the original folder that you renamed.

If preferred, you could also simply stop node-red and delete ~/.node-red/node_modules then do npm install from the ~/.node-red/ folder. Restart node-red and see if that works.

1 Like

Thank you for the options. I will work on this again tomorrow and post the results.

1 Like

Also try a different browser.

My feeling is that it is likely one of the extra ui nodes that you have installed. Did this start working after you started using one or more of those?

Alternatively, did you try to use some dashboard nodes before you had installed node-red-dashboard?

Gents - thank you for reaching out to help me with this freeze issue. I renamed files to re-establish directories, re-established critical parameters in settings.js, and then reloaded nodes. All is working again. Colin - thinking back, the issue may have been related to using dashboard nodes as you suspected. Thanks again. Craig

1 Like

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