Nodered keeps crashing on ha rpi

Please help, i can't find any more information about this. Since updating HA Core to 2026.8 my nodered integration keeps crashing every now and then. This is the error log i get:

9 Aug 23:19:03 - [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 "#<Object>".

    at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)

    at processPromiseRejections (node:internal/process/promises:475:17)

    at processTicksAndRejections (node:internal/process/task_queues:106:37)

Also it's disconnecting from mqtt broker. I don't know what to do, even with loglevel set to trace there's no additional information whatsoever. Anyone any idea?

If you installed node-red as an add-on in HA, it is probably an issue with the add-on itself.
I am running node-red stand alone with home assistant and have no issues (FWIW)

Start NR in Safe Mode (by ensuring the environment variable NODE_RED_ENABLE_SAFE_MODE is set to true, how you do this in Home Assistant you will need to ask the people that provide the plugin, as the Node-RED team don't use Home Assisant).

Assuming the editor comes up you can then start disabling tabs to try and help pin down which nodes are causing the problem.

The flows will be started on the next deploy, so if it crashes again the it will restart in safe mode again.

thx, i'll give it a try...

Guys, i got it. It was in my flow controlling my vacuum. Somehow the id of the vacuum got lost and nodered was trying to find the device every 30-60 minutes. The node issue was hidden, don’t know why. That also explained my peaks in cpu usage…
Now everything went back to normal, but I’ll keep an eye on that vacuum…