# Node-Red don't longer start

**URL:** <https://discourse.nodered.org/t/node-red-dont-longer-start/52590>\
**Category:** General\
**Created:** [22 October 2021 19:16 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590 "2021-10-22T19:16:43Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [23 October 2021 21:33 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/22 "2021-10-23T21:33:20Z")

</div>

In the meantime, I was doing the above instructions but without success. The installation of Node.js12 and 14 LTS is always aborted with the same error message in the line above.

bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)) --node12

I now uninstall Mosquitto and redo everything again.  
I'll let you know.  
Many thanks. Jack

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [23 October 2021 22:36 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/23 "2021-10-23T22:36:18Z")

</div>

Unfortunately, with all that I have done, no 1 mm of progress has been made. I am getting close to despair.

In between, I also did a shutdown

Meanwhile, it is past midnight here and bedtime.

With many heartfelt thanks for yours compassion.  
It is commendable.

Jack

---

<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:** [24 October 2021 06:41 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/24 "2021-10-24T06:41:09Z")

</div>

Have you got as far as these commands working?

```auto
sudo apt-get update
sudo apt-get dist-upgrade

```

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [24 October 2021 08:06 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/25 "2021-10-24T08:06:17Z")

</div>

```auto
pi@raspberrypi:~ $ sudo apt-get update
Geraakt:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Geraakt:2 http://archive.raspberrypi.org/debian stretch InRelease
Ophalen:3 https://repo.mosquitto.org/debian jessie InRelease [11,0 kB]
Geraakt:3 https://repo.mosquitto.org/debian jessie InRelease
Geraakt:4 https://repos.influxdata.com/debian stretch InRelease
Ophalen:5 https://repo.mosquitto.org/debian stretch InRelease [12,4 kB]
Geraakt:5 https://repo.mosquitto.org/debian stretch InRelease
Segmentation fault                                        
Pakketlijsten worden ingelezen... Klaar
N: Negeren van bestand 'mosquitto-jessie.list.2' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.6' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.5' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-stretch.list.1' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.4' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.1' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.3' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-stretch.list.2' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
pi@raspberrypi:~ $ sudo apt-get dist-upgrade
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd       
De statusinformatie wordt gelezen... Klaar
Opwaardering wordt doorgerekend... Klaar
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 0 niet opgewaardeerd.
N: Negeren van bestand 'mosquitto-jessie.list.2' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.6' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.5' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-stretch.list.1' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.4' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.1' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-jessie.list.3' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
N: Negeren van bestand 'mosquitto-stretch.list.2' in map '/etc/apt/sources.list.d/' omdat het een ongeldige bestandsextensie heeft
pi@raspberrypi:~ $

```

---

<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:** [24 October 2021 08:10 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/26 "2021-10-24T08:10:32Z")

</div>

As @colin suggested above - you need to clean you the /etc/apt/sources.list.d files first...

> [@Colin](#):
>
> you can first remove the package  
> `sudo apt-get remove mosquitto mosquitto-clients`  
> then you must remove the references to the repository. Look in the folder `/etc/apt/sources.list.d` and there should be a file with mosquitto in the name. Remove that and run the `apt-get update` again.

---

<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:** [24 October 2021 08:30 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/27 "2021-10-24T08:30:05Z")

</div>

> [@fredshortlv129bis](#):
>
> ```auto
> Ophalen:3 https://repo.mosquitto.org/debian jessie InRelease [11,0 kB]
> Geraakt:3 https://repo.mosquitto.org/debian jessie InRelease
> Geraakt:4 https://repos.influxdata.com/debian stretch InRelease
> Ophalen:5 https://repo.mosquitto.org/debian stretch InRelease [12,4 kB]
> Geraakt:5 https://repo.mosquitto.org/debian stretch InRelease
> 
> ```

I have just noticed, you have mosquitto sources for both jessie and stretch. Make sure you get rid of both of those. You can look inside the files to see what each is doing. That may be the fundamental cause of all these problems. If you can't find the files in `sources.list.d` then the reference must be in the file `\etc\apt\sources.list`. You can comment them out by adding a `#` at the front of each mosquitto line.

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [24 October 2021 15:52 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/29 "2021-10-24T15:52:09Z")

</div>

I find the files in the map `sources.list.d` .  
Even though those files were previously moved to the Recycle Bin.

It is impossible to complete the files with a '#'.  
Even though the Existing Properties/Rights in View/Edit/Execute are changed to 'Everyone'.  
Each time the following message appears: 'The file operation was completed with errors'.

---

<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:** [24 October 2021 18:23 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/30 "2021-10-24T18:23:52Z")

</div>

Do you mean you have done what I suggested, which is delete the files from sources.list.d (you will need to use sudo for that of course, you can't use your GUI file manager, I don't think) and have checked that the files are deleted, (reboot and check that they are still gone) that when you run  
`sudo apt-get update`  
they come back again?

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [24 October 2021 20:06 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/31 "2021-10-24T20:06:02Z")

</div>

Do I delete the mosquitto files in the map '/etc/apt/sources.list.d' with the command  
'sudo rm rf /etc/apt/sources.list.d/mosquitto\*'?

---

<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:** [24 October 2021 20:35 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/32 "2021-10-24T20:35:47Z")

</div>

I would have thought that googling for how to delete a file using the command line in linux might have told you how.  
For safety I would do them one at a time, . Also if you did have to use rf it would be -rf, but _don't_ use -rf unless you know what you are doing. -rf tells it to empty complete folders, so if, for example you used sudo -rf and specified / etc/.. with a space after the / then it would empty the whole of the / folder, which is the complete OS, effectively erasing the disc. There would be no recovery from that.  
So run  
`ls -l /etc/apt/sources.list.d`  
to see all the files. You will probably see one or more with mosquitto in the name. Then run  
`sudo rm /etc/apt/sources.list.d/the_first_mosquitto_file.list`  
then do the same for the other one.  
then repeat the `ls` command to make sure they have gone.

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [24 October 2021 21:33 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/33 "2021-10-24T21:33:30Z")

</div>

```auto
pi@raspberrypi:~ $ ls -l /etc/apt/sources.list.d
totaal 8
-rw-r--r-- 1 root root 55 aug 28 22:07 influxdb.list
-rw-r--r-- 1 root root 195 apr 8 2019 raspi.list

```

```auto
pi@raspberrypi:~ $ sudo apt-get update
Geraakt:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Geraakt:2 http://archive.raspberrypi.org/debian stretch InRelease
Geraakt:3 https://repos.influxdata.com/debian stretch InRelease
Segmentation fault           
Pakketlijsten worden ingelezen... Klaar
pi@raspberrypi:~ $

```

`pi@raspberrypi:~ $ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node14`  
........................

```auto
Running Node-RED install for user pi at /home/pi on raspbian

This can take 20-30 minutes on the slower Pi versions - please wait.

  Stop Node-RED ✔
  Remove old version of Node-RED ✔
/dev/fd/63: regel 408: /usr/bin/head: kan binair bestand Verkeerd uitvoerbaar bestand niet uitvoeren
  Remove old version of Node.js ✔ v8.11.1
  Install Node.js 14 LTS ✘ Bad install: Node.js v8.11.1 Npm missing - Exit
  Install Node-RED core               
  Move global nodes to local          
  Npm rebuild existing nodes          
  Install extra Pi nodes              
  Add shortcut commands               
  Update systemd script               
                                      

Any errors will be logged to /var/log/nodered-install.log

```

[nodered-install.log](https://discourse.nodered.org/uploads/short-url/ypvUKAEf91Cbu2vNyzX86YKAFDc.log) (116.3 KB)

---

<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:** [25 October 2021 06:21 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/34 "2021-10-25T06:21:38Z")

</div>

> [@fredshortlv129bis](#):
>
> `Segmentation fault`

Your system is broken. Bin the SD card (after checking that your backups are up to date) and start again.

If you have not been backing up your flows then you should be. Backup the whole .node-red folder except node\_modules.  
After installing node red on the new system and making sure it works then restore the .node-red folder and, in that folder run  
`npm install`  
Then restart node red.

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [25 October 2021 17:28 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/35 "2021-10-25T17:28:57Z")

</div>

The fact that my system is broken is no bad thing at all.  
I feel remorseful that I have received so much time and patience from all of you.  
I will certainly continue to install and use Node-Red on a renewed system.  
Earlier, I stopped using it after I couldn't send an e-mail. Now I hear from my MAM and Fablab friends that sending a Whatsapp is a piece of cake.  
How to do an npm install in a Node-Red folder I will learn later.  
I will keep a positive and happy memory of your willingness and endless helpfulness.  
With many heartfelt thanks.  
Jack.

---

<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:** [25 October 2021 20:16 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/36 "2021-10-25T20:16:17Z")

</div>

Going into the .node-red folder in a terminal and running `npm install` tells npm to install the extra nodes that you had installed in the old system. The information on which nodes you were using is in package.json and package-lock.json, which is how npm knows what to do.

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [27 October 2021 16:57 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/37 "2021-10-27T16:57:37Z")

</div>

After installing a new system, I have not dared to install Node-Red for 24 hours for fear of yet another failure.  
Nevertheless, I now come across another obstacle, namely the choice below:

```auto
Options:
  --help display this help and exits
  --confirm-root install as root without asking confirmation
  --confirm-install confirm installation without asking confirmation
  --confirm-pi confirm installation of PI specific nodes without asking confirmation
  --skip-pi skip installing PI specific nodes without asking confirmation
  --restart restart service if install succeeds
  --update-nodes run npm update on existing installed nodes (within scope of package.json)
  --nodered-version if not set, the latest version is used - e.g. --nodered-version="1.3.4"
  --node12 if set, forces install of major version of nodejs 12 LTS
  --node14 if set, forces install of major version of nodejs 14 LTS
  --node16 if set, forces install of major version of nodejs 16 LTS
                    if none set, install nodejs 14 LTS if nodejs version is less than 12,
                    otherwise leave current install pi@raspberrypi:~

```

What do you recommend if I want to make use of the 'Palette Manager' for the effective use of the 'WhatsApp' node?  
Finally, where version '15' was recommended earlier, '15' is not mentioned here.

Is there anything I can do wrong if I choose a forced installation, or can I miss something in that case?

---

<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:** [27 October 2021 18:33 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/38 "2021-10-27T18:33:03Z")

</div>

My most recent installation of Node-Red was on a Raspberry Pi 3B. I didn't force any particular version.  
It installed Node-Red 2.1.1, node.js 12.22.7 and npm 6.14.15.

Another Pi, a recently updated 4B, has Node-Red 2.1.3, node.js 16.13.0 and npm 8.1.0.

Palette manager and Node-Red generally works fine on both systems.

---

<div class="post-metadata">

**Author:** ![fredshortlv129bis](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fredshortlv129bis](https://discourse.nodered.org/u/fredshortlv129bis)\
**Post date:** [27 October 2021 21:12 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/39 "2021-10-27T21:12:20Z")

</div>

Yep, it finally worked, but not as predicted due to my NOOBS version.  
Thank you. Jack

---

<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:** [26 December 2021 21:12 UTC](https://discourse.nodered.org/t/node-red-dont-longer-start/52590/40 "2021-12-26T21:12:39Z")

</div>

Closed on 26 December 2021 21:12 UTC

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

[Previous page](https://discourse.nodered.org/t/node-red-dont-longer-start/52590.md?page=1)
