Node Red stops performing automations after period of time

Hey all

Within the last couple of weeks I’ve moved my setup to Node Red in a Docker container on the same pi as HASS.

I’ve noticed that the automations will eventually stop firing, resulting in device tracker alerts stopping, lights no longer turning on, my security notifications not sending… basically all of it.

I’ve got a health check on the docker which unfortunately doesn’t spot this as the Node Red instance remains entirely responsive.

Anyone ever had this before or can given me any hints about where to start debugging?

My not-very-great fix for this has been to just automatically restart Node Red every 30 minutes.

I got the same problem, instalation of Node Red goes well, then after several minutes,Node red stops…
If this is not being solved, I guess it will unusefull…

I don’t run hassio, but home assistant on docker, alongside a docker container for node-red and my node-red is stable as can be, aside from a bug in a previous version of home assistant pallette where it would restart node-red when it received a null value.

I uninstalled Node Red, because it is useless on Hassio. Keeps shutting down… not stable at all…

I had issues with it as an add-on, however as an independent install I have not had a problem with it and I’m using HassIO.

I’m actually on an independant install too, I don’t use HassIO, but it’s still unreliable for me… the UI will be completely responsive and I can deploy changes, but automations will not fire

I used a RPI 3 (Not Docker) with PiHole and Node Red. (No HA) and the Node Red would work after reboot for about 5 mins and then the CPU went to about 80% and crashed the Node Red.

So i started again with Docker and i didn’t include PiHole,
Node Red works perfectly CPU 1-2%.

Hm. I do have pihole too, but not on the same pi. My home assistant pi only runs nodered, influxdb, HASS, and grafana.

Try this to watch your CPU and other stuff using the Node Red Dasboard.

It uses node-red-contrib-cpu.

[{"id":"cb7fc596.828808","type":"inject","z":"e0191037.0d5e2","name":"","topic":"","payload":"","payloadType":"date","repeat":"20","crontab":"","once":true,"onceDelay":"2","x":210,"y":520,"wires":[["71e70f3f.e26bb","bac7334c.9f787","a39abdda.39e1c"]]},{"id":"a39abdda.39e1c","type":"exec","z":"e0191037.0d5e2","command":"cat /sys/class/thermal/thermal_zone0/temp","addpay":false,"append":"","useSpawn":"","timer":"","oldrc":false,"name":"getCPUtemp","x":470,"y":520,"wires":[["53b35b21.17d1a4"],[],[]]},{"id":"71e70f3f.e26bb","type":"exec","z":"e0191037.0d5e2","command":"free | grep Mem | awk '{print 100*($4+$6+$7)/$2}'","addpay":false,"append":"","useSpawn":"","timer":"","name":"Free Memory","x":470,"y":680,"wires":[["8bf140e5.f3d4d"],[],[]]},{"id":"bd2f6218.d1bdb","type":"exec","z":"e0191037.0d5e2","command":"df -h","addpay":false,"append":"","useSpawn":"","timer":"","name":"Disk Usage","x":470,"y":760,"wires":[["6faa176a.2a10e8"],[],[]]},{"id":"dc904cdf.e74ff","type":"inject","z":"e0191037.0d5e2","name":"","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"x":210,"y":760,"wires":[["bd2f6218.d1bdb"]]},{"id":"8bf140e5.f3d4d","type":"function","z":"e0191037.0d5e2","name":"String To Number","func":"var originalval = msg.payload;\nvar newval = \"\";\nnewval = parseFloat(originalval).toFixed(0)-0;\nmsg.payload = newval;\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":680,"wires":[["d92f2bce.934a58"]]},{"id":"d92f2bce.934a58","type":"ui_gauge","z":"e0191037.0d5e2","name":"Memory","group":"70d09e69.50051","order":4,"width":0,"height":0,"gtype":"gage","title":"Memory","label":"RAM","format":"{{value}}","min":0,"max":"500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":680,"wires":[]},{"id":"fdd8ad53.fbb3","type":"ui_gauge","z":"e0191037.0d5e2","name":"","group":"70d09e69.50051","order":5,"width":0,"height":0,"gtype":"gage","title":"Disk","label":"Usage","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":850,"y":760,"wires":[]},{"id":"6faa176a.2a10e8","type":"function","z":"e0191037.0d5e2","name":"function","func":"var re = /([0-9]{2})%/\nvar idx = msg.payload.search(re);\nvar str = msg.payload;\nif (idx >=0) {\n str = msg.payload.substring(idx, idx + 2);\n}\nmsg.payload = str;\nreturn msg;","outputs":1,"noerr":0,"x":680,"y":760,"wires":[["fdd8ad53.fbb3"]]},{"id":"b164f679.624058","type":"ui_gauge","z":"e0191037.0d5e2","name":"","group":"70d09e69.50051","order":3,"width":0,"height":0,"gtype":"gage","title":"Processor","label":"CPU","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":860,"y":600,"wires":[]},{"id":"a0e41fb2.2e23f","type":"ui_chart","z":"e0191037.0d5e2","name":"CPU Temp","group":"70d09e69.50051","order":2,"width":0,"height":0,"label":"CPU Temp","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":true,"ymin":"40","ymax":"60","removeOlder":"24","removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"x":870,"y":520,"wires":[[],[]]},{"id":"8673cec9.24457","type":"ui_gauge","z":"e0191037.0d5e2","name":"","group":"70d09e69.50051","order":1,"width":0,"height":0,"gtype":"gage","title":"CPU Temperature","label":"C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":890,"y":480,"wires":[]},{"id":"53b35b21.17d1a4","type":"function","z":"e0191037.0d5e2","name":"Payload /1000","func":"str = msg.payload\nmsg.payload = str/1000;\nreturn msg;","outputs":1,"noerr":0,"x":660,"y":500,"wires":[["8673cec9.24457","a0e41fb2.2e23f"]]},{"id":"bac7334c.9f787","type":"cpu","z":"e0191037.0d5e2","name":"","msgCore":true,"msgOverall":false,"x":470,"y":600,"wires":[["b164f679.624058"]]},{"id":"70d09e69.50051","type":"ui_group","z":"","name":"NUC","tab":"6f60567.936e0a8","order":1,"disp":true,"width":"6","collapse":false},{"id":"6f60567.936e0a8","type":"ui_tab","z":"","name":"NUC","icon":"dashboard"}]