Hy all,
I´m using NodeRed on several Pi´s for some time now. I had different setups and versions running, currently Im using TheThingBox 2.4.0.7 with NodeRed 0.15.2.
The setup was very similar on all devices. Node red is used as a gateway for serial data to any cloud platform. Data Input via serial port as a JSON-string, output to different platforms via REST or MQTT. The data rate is fairly low, one JSON-string every 30s.
On all installations I face the same issue: After some time Node Red stops working. This might also be a serial port issue, but sometimes i can even not reach the node red ui anymore.
As far as I can see this is not a memory issue, also a pi Mode one usually freezes earlier than a 2B. I had different approaches to find the reason, but without success. There is also nothing in the log files that gave any hint.
The only thing that works till now is to reset node red frequently. Currently I use a littel script that is placed in /etc/cron.hourly to restart node red every hour:
#!/bin/bash
set +e
systemctl stop thethingbox.service
killall node-red
wait
echo ThingBox Stopped
node /root/thethingbox/thethingbox.js > /dev/null 2>&1 &
echo ThingBox Started !!!!!!!!
There are several topics in this forum that report similar issues, but I´m not sure if this is a common issue.
Any suggestion how to find the reason??
Best regards,
Eckehard