NR crashing on start

Hello all,

After having some success using NR, looks like I installed a node that now causes it to crash on start up. I have attempted uninstalling NR and reinstalling it but no change.

I've copied the log of the issue. Any help would be much appreciated!

9 Nov 20:15:05 - [info] Node-RED version: v3.0.2
9 Nov 20:15:05 - [info] Node.js  version: v16.17.1
9 Nov 20:15:05 - [info] Linux 5.15.61-v8 arm64 LE
9 Nov 20:15:08 - [info] Loading palette nodes
9 Nov 20:15:30 - [info] Dashboard version 3.2.0 started at /endpoint/ui
9 Nov 20:15:35 - [red] Uncaught Exception:
9 Nov 20:15:35 - [error] Api Error: Unexpected response status; 404
    at requireStatusCode200 (/config/node-red/node_modules/node-hue-api/hue-api/httpPromise.js:100:15)
    at _fulfilled (/config/node-red/node_modules/q/q.js:787:54)
    at /config/node-red/node_modules/q/q.js:816:30
    at Promise.promise.promiseDispatch (/config/node-red/node_modules/q/q.js:749:13)
    at /config/node-red/node_modules/q/q.js:557:44
    at flush (/config/node-red/node_modules/q/q.js:108:17)
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
[20:15:36] WARNING: Node-RED crashed, halting add-on
[20:15:36] INFO: Node-RED stopped, restarting...
s6-rc: info: service legacy-services: stopping
[20:15:36] INFO: Node-RED stopped, restarting...
[20:15:36] INFO: nginx stopped, restarting...
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping

No need to do that. You can start node-red without starting the flows by using
node-red --safe
Then you can remove the offending node from the flow and deploy, which will start the flows.

That is an unusual place to install nodes. Is this a docker install, if so then I don't know how to start it in safe mode.

This is a NR node install as part of home assistant on a raspberry pi from selecting palette within the NR GUI…

Unsure how I would go about safe mode on this? I’ve tried using file editor within home assistant but not feeling brave enough to start editing stuff without understanding what I’m doing.

Google found this for me as the first hit. Node-red Safe mode start - Node-RED - Home Assistant Community

Unfortunately even running in safe mode presents the same issue.

In that case uninstall the node from the command line. Normally that would mean going into the .node-red folder and running
npm remove node-red-contrib-hue
or whatever it is. Again if you don't know how to do that in HA then google it or ask there.

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