# 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:** 5\
**Page:** 2

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

</div>

Colin is correct here, the safe start did not work due to an error in settings.js.

The issues was corrected both by making a new folder, and by removing the offending lines. I am curious what is wrong with those lines.

I have it back up and running now, and instead of making two static sources, I went with one.

Thank you all for the help.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 December 2022 16:09 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/22 "2022-12-06T16:09:13Z")

</div>

I'd suspect it is the extra comma on the second line  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/24935ea9dee8ab880864ceef1682ffeb7b65db4d.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 16:24 UTC](https://discourse.nodered.org/t/node-red-instance-suddenly-not-starting-on-boot/71722/23 "2022-12-06T16:24:00Z")

</div>

I thought that trailing commas were ok in js (but not in JSON). Is there something different about settings.js that does not allow it?

---

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

</div>

The other factor is that in the example, there is a root property in addition to the path property. I did not include it as I did not think it was necessary, but in hindsight, that might have been the problem.

---

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

</div>

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

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