Node Red Failing

Hello

Every couple of days Node Red seems to keep failing.

[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

Hi,

you could check for some log file

journalctl -u node-red

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

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?

are you able to deactivate this Blynk Cloud connection?

Yes I’ve disconnected the connection and now what to see what happens.

is node red working now if your restart the service?