I run my Pi headless, it's in my loft monitoring the output from my growatt solar inverter.
It runs a cron
every 5 mins to update my data, no data no problem as the code handles this. I've stopped the cron
and it's still hangs.
Randomly, normally every few days it stops working and I have to unplug it as I can't login. I've taken a monitor in the loft as well and it's a black screen so I know it's frozen. The WiFi dongle isn't frozen as I've tried running it over an Ethernet cable and it still hangs.
I've replaced the SD card and the power supply.
The longest it's run for is about a month, the shortest is a few hours.
How do I find out what's causing it to hang?
journalctl
) if you can find something suspicious. – Ghanima Feb 19 '17 at 23:50