# NR crashing on start

**URL:** https://discourse.nodered.org/t/nr-crashing-on-start/70356
**Category:** General
**Created:** [9 November 2022 20:21 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356 "2022-11-09T20:21:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Blacke1991](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Blacke1991](https://discourse.nodered.org/u/Blacke1991)
#### Post date: [9 November 2022 20:21 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/1 "2022-11-09T20:21:16Z")

</div>

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!

```auto
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

```

---

<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 November 2022 20:38 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/2 "2022-11-09T20:38:14Z")

</div>

> [@Blacke1991](#):
>
> I have attempted uninstalling NR and reinstalling it but no change.

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.

> [@Blacke1991](#):
>
> `/config/node-red/node_modules/node-hue-api`

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.

---

<div class="post-metadata">

### Author: ![Blacke1991](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Blacke1991](https://discourse.nodered.org/u/Blacke1991)
#### Post date: [9 November 2022 20:52 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/3 "2022-11-09T20:52:21Z")

</div>

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.

---

<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 November 2022 20:56 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/4 "2022-11-09T20:56:53Z")

</div>

> [@Blacke1991](#):
>
> Unsure how I would go about safe mode on this?

Google found this for me as the first hit. [Node-red Safe mode start - Node-RED - Home Assistant Community](https://community.home-assistant.io/t/node-red-safe-mode-start/387204)

---

<div class="post-metadata">

### Author: ![Blacke1991](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@Blacke1991](https://discourse.nodered.org/u/Blacke1991)
#### Post date: [9 November 2022 21:06 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/5 "2022-11-09T21:06:31Z")

</div>

Unfortunately even running in safe mode presents the same issue.

---

<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 November 2022 21:53 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/6 "2022-11-09T21:53:22Z")

</div>

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.

---

<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: [8 January 2023 21:54 UTC](https://discourse.nodered.org/t/nr-crashing-on-start/70356/7 "2023-01-08T21:54:21Z")

</div>

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