This is a new thing, but not sure if it is related to a specific version of NR or HA. Running HA 2025.2.4, NR 19.0.2, and periodically I find flows not running and look and the add-on has crashed. Upon restart it picks up and runs fine for a while.
Below is the latest crash’s footprint in the log. The data above is routine output from a frequently run flow that is quite chatty so it is not unusual see there; it is a flow I tweak frequently so I want a lot of output.
I do not THINK that these crashes come with the UI of NR open, and as these have occurred before I am unable to find any likely proximate cause, there is nothing happening that appears to correlate to a crash.
How can I find more info to find the cause?
In particular, is there a simple way to make a watchdog for NR, maybe an automation that checks every few minutes to see if the add-on is running? (Is there a status that HA automations can “see”)?
This would both allow me to restart it, and also perhaps be more likely to find the situation causing the crash.
Any ideas? Anyone else having this?
Linwood
PS. I use a fair number of function nodes, but have not done anything deeper in terms of modifications to, calls to, or tweaking NR, it is vanilla and run as an add-on to an HAOS installation of HA.
22 Feb 20:34:41 - [warn] [function:Manage Everything when Something Changes ] No zones show any need - resetting to turn off
22 Feb 20:35:20 - [warn] [function:Manage Everything when Something Changes ] diffAvg = -3.4999999999999964, We have decided we should Heat; Zones cooling = 0, Zones heating = 0
22 Feb 20:35:20 - [warn] [function:Manage Everything when Something Changes ] No zones show any need - resetting to turn off
22 Feb 20:35:45 - [warn] [function:Manage Everything when Something Changes ] diffAvg = -3.549999999999997, We have decided we should Heat; Zones cooling = 0, Zones heating = 0
22 Feb 20:35:45 - [warn] [function:Manage Everything when Something Changes ] No zones show any need - resetting to turn off
22 Feb 20:36:00 - [warn] [function:Manage Everything when Something Changes ] diffAvg = -3.5749999999999993, We have decided we should Heat; Zones cooling = 0, Zones heating = 0
22 Feb 20:36:00 - [warn] [function:Manage Everything when Something Changes ] No zones show any need - resetting to turn off
22 Feb 20:39:49 - [red] Uncaught Exception:
22 Feb 20:39:49 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "3".
at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
at processPromiseRejections (node:internal/process/promises:475:17)
at processTicksAndRejections (node:internal/process/task_queues:106:32)
[20:39:49] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[20:39:49] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service nodered: stopping
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service nodered successfully stopped