# Node-Red instance suddenly not starting on boot

**URL:** <https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722>\
**Category:** General\
**Created:** [5 December 2022 18:11 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722 "2022-12-05T18:11:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 18:11 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/1 "2022-12-05T18:11:25Z")

</div>

I have a device that I am working on remotely, and do not have physical access to. I do have ability to interact with it via ip address. All has been working fine for the past several weeks, but today after a reboot, I am unable to pull up the interface, and it says it refuses to connect. I can still access via ssh, however. When I run the node-red-log, I get the following:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5926c23b2ccfc61a8356a52dfbc7293f11d2acf.png)

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 18:35 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/2 "2022-12-05T18:35:37Z")

</div>

A clarification, it appears node red is running, but I am unable to connect to port 1880. Any advice on how to handle this?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [5 December 2022 19:40 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/3 "2022-12-05T19:40:47Z")

</div>

From your description, it seems that this ‘device’ (it would be helpful to know what type of device, what OS, version of NR and node.js) is accessible over the internet. Is that true?

If so, what type of security do you have setup?

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 19:45 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/4 "2022-12-05T19:45:32Z")

</div>

The device is a raspberry pi 4, 4GB running 32 bit raspbian. No security set up, and not accessible over the internet. It is running zerotier, which provides an IP address that I can use to interact with it as if it is on a local network. I can still connect with it over ssh using the zero tier ip. Someone who is in physical proximity and is connected to it on a local network is having the same problem.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2022 20:07 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/5 "2022-12-05T20:07:54Z")

</div>

Can you run these commands in a terminal?  
**systemctl status nodered**  
**sudo systemctl stop nodered**  
**node-red** (you may eventually need CTRL C to stop it)  
Take a screenshot of the browser when you try and access ipaddress:1880

Show us the results. It probably won't reveal anything beyond what you already shared but worth a try.

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 20:28 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/6 "2022-12-05T20:28:50Z")

</div>

- systemctl status nodered  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/3/f3139a3412aa73cada61df6da8c930f99bc80fc8.png)
- sudo systemctl stop nodered  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/6313716c0f35de79856d6c7b074cc5be66828506.png)  
-the browser window:  
 ![browser screenshot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/58fbfc3a91cfe5c5e506a2382b8c29db2da38e57.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2022 21:02 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/7 "2022-12-05T21:02:51Z")

</div>

OK but I wanted to see the output of **nodered** too (starts Node-red from the command line)

Incidentally, the IP address which Zerotier gives is a "local" address. Nobody can connect to your Node-red with it unless they are members of your Zerotier network _and_ you authorised them. So no real need to hide the address.

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 21:04 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/8 "2022-12-05T21:04:27Z")

</div>

Thanks, wasn't sure about that. I ran the command and there was no output.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2022 21:05 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/9 "2022-12-05T21:05:39Z")

</div>

My mistake, it's **node-red**

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 21:06 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/10 "2022-12-05T21:06:46Z")

</div>

the second screenshot shows that, just got the failed to get https settings error

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 21:08 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/11 "2022-12-05T21:08:18Z")

</div>

here is running it again, and running node-red-start

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/9293921f97fa8790e3246a8db769615a8639fa97.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2022 21:12 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/12 "2022-12-05T21:12:07Z")

</div>

> [@aams](#):
>
> the second screenshot shows that

You are right, sorry!

So nothing new. I don't know about Node-red and https. I'm sure other people here do.

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 21:15 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/13 "2022-12-05T21:15:49Z")

</div>

not sure that it helps, but I actually never configured it to use https

---

<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:** [5 December 2022 21:21 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/14 "2022-12-05T21:21:11Z")

</div>

What was the last thing you changed before it failed? Did you edit settings.js? If so then you have probably messed it up.

Otherwise, as an experiment, rename your .node-red folder, then stop and start node-red again and see what happens. If the problem is something in that folder then node red will start with empty flows. To get back to where you were you just have to put the original folder back.

You have got you flows file backed up haven't you?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 December 2022 21:27 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/15 "2022-12-05T21:27:01Z")

</div>

It seems to be complaining about the httpStatic or httpStaticRoot sections (?) from settings.js

You could remove this file (keep a copy!) and then start Node-red, it should create a new default one.

---

<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:** [5 December 2022 21:29 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/16 "2022-12-05T21:29:37Z")

</div>

Yes, that was going to be my suggestion if replacing the whole folder works. Of course if @aams had been editing the file then maybe he just needs to post the section of the file where he edited. Most likely there is a missing comma or something like that.

---

<div class="post-metadata">

**Author:** ![aams](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aams](https://discourse.nodered.org/u/aams)\
**Post date:** [5 December 2022 21:49 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/17 "2022-12-05T21:49:45Z")

</div>

Ok, that worked. Here is what I have changes in the httpStatic section:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f4204e215ca12e3bd34d287347f2d086f6888b38.png)

---

<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:** [6 December 2022 09:02 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/18 "2022-12-06T09:02:06Z")

</div>

What fixed it? renaming the whole folder or just settings.js? If it was the whole folder then try with just settings.js renamed. If that does fix it then try just commenting out those four lines.  
If that doesn't fix it then copy/paste the full settings file here. Use the `</>` button at the top of the forum entry window when pasting it in.

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [6 December 2022 14:00 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/19 "2022-12-06T14:00:06Z")

</div>

Hi,

You can also restart node-red without a project loaded by doing:

node-red --safe

Cheers,

Paul

---

<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:** [6 December 2022 15:35 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/20 "2022-12-06T15:35:33Z")

</div>

> [@paulkeates](#):
>
> node-red --safe

That won't help if settings.js is not valid.

[Next page](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722.md?page=2)
