I don't know if deploying a new flow is the cause but from then on node-RED won't start anymore but stays in a start-restart loop. I see an error in the log file but have no idea how to solve it from the command line.
All help is appreciated
Attached the boot log:
pi@Rpi4:~ $ node-red-start
Start Node-RED
Starting as a systemd service.
11 Jul 18:57:57 - [info]
Welcome to Node-RED
===================
11 Jul 18:57:57 - [info] Node-RED version: v2.2.0
11 Jul 18:57:57 - [info] Node.js version: v12.22.11
11 Jul 18:57:57 - [info] Linux 5.10.103-v7l+ arm LE
11 Jul 18:57:58 - [info] Loading palette nodes
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named rpi_ws281x
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 1.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
11 Jul 18:58:11 - [info]
Welcome to Node-RED
===================
11 Jul 18:58:11 - [info] Node-RED version: v2.2.0
``` etc etc..
I control the neopixels via MQTT. The Neopixels are connected to a Wemos D1 and I think the rpi_ws281x message is from an old flow and should be removed .. just I don't know how.
I did a search rpi_ws281x in my flows_Rpi4.json file but there is no pi_ws281x entry in that file
pi@Rpi4:~/.node-red $ ls -al
total 3128
drwxr-xr-x 5 pi pi 4096 Jul 11 23:21 .
drwxr-xr-x 15 pi pi 4096 Jul 11 18:44 ..
-rw-r--r-- 1 pi pi 57534 Jan 31 14:17 .config.json
-rw-r--r-- 1 pi pi 57537 Jan 31 11:04 .config.json.backup
-rw-r--r-- 1 pi pi 2 Jan 31 18:50 .config.modules.json
-rw-r--r-- 1 pi pi 127340 Jul 11 18:34 .config.nodes.json
-rw-r--r-- 1 pi pi 88121 Jul 11 18:34 .config.nodes.json.backup
-rw-r--r-- 1 pi pi 2 Jan 31 18:50 .config.projects.json
-rw-r--r-- 1 pi pi 95 Jan 31 18:50 .config.runtime.json
-rw-r--r-- 1 pi pi 809 Jul 9 22:04 .config.users.json
-rw-r--r-- 1 pi pi 810 Jul 9 22:04 .config.users.json.backup
-rwxr-xr-x 1 pi pi 492 May 6 2020 flows_raspberrypi_cred.json
-rwxr-xr-x 1 pi pi 22678 May 6 2020 flows_raspberrypi.json
-rw-r--r-- 1 pi pi 26467 May 6 2020 flows_raspi4RP14_Backup.json
-rwxr-xr-x 1 pi pi 480 May 6 2020 flows_raspi4RP14_cred.json
-rwxr-xr-x 1 pi pi 26467 May 6 2020 flows_raspi4RP14.json
-rw-r--r-- 1 pi pi 649034 Jul 11 19:43 flows_Rpi4_Backup.json
-rw-r--r-- 1 pi pi 6412 Jul 10 00:26 flows_Rpi4_cred.json
-rw-r--r-- 1 pi pi 6572 Jul 10 00:26 .flows_Rpi4_cred.json.backup
-rw-r--r-- 1 pi pi 643650 Jul 11 14:27 flows_Rpi4.json
-rw-r--r-- 1 pi pi 649034 Jul 11 14:27 flows_Rpi4_old.json
drwxr-xr-x 3 pi pi 4096 May 5 2020 lib
-rw-r--r-- 1 pi pi 0 Jul 11 18:44 luftkvalitet.log
drwxr-xr-x 1416 pi pi 45056 Jul 11 17:23 node_modules
-rw-r--r-- 1 pi pi 48725 Jul 11 18:44 openaq.log
-rw-r--r-- 1 pi pi 4700 Jul 11 17:16 package.json
-rw-r--r-- 1 pi pi 641220 Jul 11 17:16 package-lock.json
drwxr-xr-x 2 pi pi 4096 Jul 11 18:44 scratch
-rw-r--r-- 1 pi pi 12514 Jul 11 18:33 settings.js
pi@Rpi4:~/.node-red $ mv flows_Rpi4.json flows_Rpi4.json_Backup
pi@Rpi4:~/.node-red $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.54:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named rpi_ws281x
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 116.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
11 Jul 23:23:21 - [info]
Welcome to Node-RED
===================
11 Jul 23:23:21 - [info] Node-RED version: v2.2.0
11 Jul 23:23:21 - [info] Node.js version: v12.22.11
11 Jul 23:23:21 - [info] Linux 5.10.103-v7l+ arm LE
11 Jul 23:23:22 - [info] Loading palette nodes
^Z
Have you made any changes to your settings.js file?
What happens if you stopNR and then start it with node-red test.flow
a google search of rpi_ws281x shows it to be a
rpi_ws281x
Userspace Raspberry Pi library for controlling WS281X LEDs. This includes WS2812 and SK6812RGB RGB LEDs Preliminary support is now included for SK6812RGBW LEDs (yes, RGB + W) The LEDs can be controlled by either the PWM (2 independent channels) or PCM controller (1 channel) or the SPI interface (1 channel).
Might I also suggest you update to NR v2.2.2 and seeing how you have so many tabs and they look like different tests, take a look at using the 'projects' feature where you can swap between different projects when you want to play with something.
Unfortunately I get the same error after uninstalling node-red-node-pi-neopixel. I then performed a node-red upgrade, but even then when I start node-red I get the same error again. Then I ran npm uninstall node-red-node-pi-neopixel again (so in v2.2.2) and now I get the following startup loop
Welcome to Node-RED
===================
12 Jul 11:04:09 - [info] Node-RED version: v2.2.2
12 Jul 11:04:09 - [info] Node.js version: v12.22.12
12 Jul 11:04:09 - [info] Linux 5.10.103-v7l+ arm LE
12 Jul 11:04:09 - [info] Loading palette nodes
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 37.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
12 Jul 11:04:21 - [info]
Welcome to Node-RED
===================
12 Jul 11:04:21 - [info] Node-RED version: v2.2.2
12 Jul 11:04:21 - [info] Node.js version: v12.22.12
12 Jul 11:04:21 - [info] Linux 5.10.103-v7l+ arm LE
12 Jul 11:04:22 - [info] Loading palette nodes
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Service RestartSec=100ms expired, scheduling restart.
nodered.service: Scheduled restart job, restart counter is at 38.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
12 Jul 11:04:34 - [info]
Welcome to Node-RED