Node Red Failing

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Ian
Posts: 29
Joined: Thu Feb 28, 2019 12:45 pm

Node Red Failing

Post by Ian »

Hello

Every couple of days Node Red seems to keep failing.

Code: Select all

[FAILED] DietPi-Services | ● node-red.service - Node-Red (DietPi)
   Loaded: loaded (/etc/systemd/system/node-red.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-02-12 05:12:18 CET; 1 day 4h ago
  Process: 10985 ExecStart=/usr/local/bin/node-red -u /mnt/dietpi_userdata/node-red (code=exited, status=1/FAILURE)
 Main PID: 10985 (code=exited, status=1/FAILURE)
Any ideas why?

DietPi v6.34.3 and APT updates up to date

Thanks
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: Node Red Failing

Post by Joulinar »

Hi,

you could check for some log file

Code: Select all

journalctl -u node-red
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Ian
Posts: 29
Joined: Thu Feb 28, 2019 12:45 pm

Re: Node Red Failing

Post by Ian »

Thanks apart from pinging Blynk Cloud every 15 seconds, I found this:

Code: Select all

Feb 11 05:12:10 DietPi node-red[795]: 11 Feb 05:12:09 - [info] [blynk-ws-client:Blynk Cloud] ping
Feb 11 05:13:04 DietPi node-red[795]: 11 Feb 05:13:03 - [red] Uncaught Exception:
Feb 11 05:13:07 DietPi node-red[795]: 11 Feb 05:13:06 - Error: WebSocket is not open: readyState 2 (CLOSING)
Feb 11 05:13:07 DietPi node-red[795]:     at WebSocket.send (/mnt/Crucial_120GB/dietpi_userdata/node-red/node_modules/ws/lib/websocket.js:322:19)
Feb 11 08:14:48 DietPi systemd[1]: Started Node-Red (DietPi).
Do you think it could be a problem with the Blynk WebSocket?
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: Node Red Failing

Post by Joulinar »

are you able to deactivate this Blynk Cloud connection?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Ian
Posts: 29
Joined: Thu Feb 28, 2019 12:45 pm

Re: Node Red Failing

Post by Ian »

Yes I've disconnected the connection and now what to see what happens.
User avatar
Joulinar
Posts: 4830
Joined: Sat Nov 16, 2019 12:49 am

Re: Node Red Failing

Post by Joulinar »

is node red working now if your restart the service?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply