# Node red crashes after contrib-hue finished installing

**URL:** <https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936>\
**Category:** General\
**Created:** [23 December 2020 17:35 UTC](https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936 "2020-12-23T17:35:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [23 December 2020 17:35 UTC](https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936/1 "2020-12-23T17:35:22Z")

</div>

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 [http://127.0.0.1:1880/](http://127.0.0.1:1880/) 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://192.168.86.95:1883  
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?

---

<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:** [23 December 2020 17:58 UTC](https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936/2 "2020-12-23T17:58:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nice\_to\_have](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nice\_to\_have](https://discourse.nodered.org/u/Nice_to_have)\
**Post date:** [23 December 2020 18:26 UTC](https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936/3 "2020-12-23T18:26:52Z")

</div>

> [@Colin](#):
>
> npm remove node-red-contrib-what-ever-it-is

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

---

<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:** [6 January 2021 18:27 UTC](https://discourse.nodered.org/t/node-red-crashes-after-contrib-hue-finished-installing/37936/4 "2021-01-06T18:27:12Z")

</div>

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