Node red crashes after contrib-hue finished installing

Just my luck,
I am using a raspberry 4 for a while now for home automation together with 4 other pi's.
But now node red on the rpi4 crashed after I installed the contrib-hue.
It crashed the moment node red palletmanager finished installing contrib-hue.

This is what I get in CLI

Welcome to Node-RED

23 Dec 18:28:28 - [info] Node-RED version: v1.2.6
23 Dec 18:28:28 - [info] Node.js version: v12.20.0
23 Dec 18:28:28 - [info] Linux 5.4.72-v7l+ arm LE
23 Dec 18:28:29 - [info] Loading palette nodes
23 Dec 18:28:32 - [info] Settings file : /home/pi/.node-red/settings.js
23 Dec 18:28:32 - [info] Context store : 'default' [module=memory]
23 Dec 18:28:32 - [info] User directory : /home/pi/.node-red
23 Dec 18:28:32 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Dec 18:28:32 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
23 Dec 18:28:33 - [info] Server now running at
23 Dec 18:28:33 - [warn]

Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

23 Dec 18:28:33 - [info] Starting flows
23 Dec 18:28:33 - [info] Started flows
23 Dec 18:28:33 - [info] [mqtt-broker:Pi4 Garage] Connected to broker: mqtt://
23 Dec 18:28:33 - [red] Uncaught Exception:
23 Dec 18:28:33 - Api Error: Unexpected response status; 404
at requireStatusCode200 (/home/pi/.node-red/node_modules/node-hue-api/hue-api/httpPromise.js:100:15)
at _fulfilled (/home/pi/.node-red/node_modules/q/q.js:787:54)
at /home/pi/.node-red/node_modules/q/q.js:816:30
at Promise.promise.promiseDispatch (/home/pi/.node-red/node_modules/q/q.js:749:13)
at /home/pi/.node-red/node_modules/q/q.js:557:44
at flush (/home/pi/.node-red/node_modules/q/q.js:108:17)
at processTicksAndRejections (internal/process/task_queues.js:79:11)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.

It keeps trying to startup, for a second outputs etc come on, and then node red crashes.
Any chance I can safe it from death?

Go into your .node-red folder and run
npm remove node-red-contrib-what-ever-it-is
Then restart node red.

I removed it and re-installed it in CLI and boom, all good. Cheers

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