I’m an issue currently where Hass is dying every couple of days and I’m struggling to figure out why.
The main issue is that logs don’t persist through restarts so I’ve got no way of investigating the problem! When it crashes I can’t even get onto the host Resin.io OS via SSH, so I end up power cycling the Pi. When everything comes back up I have no visibility of what went wrong .
Does anyone have any way of persisting the logs for Hass.io? I’m considering trying to create a Splunk (or similar) add-on, but I don’t know when I’m going to find time to get something like that working. It would be awesome if someone already had a solution to this problem?
Apologies I hadn’t realised that you were looking for a long-term solution. I assumed you just wanted to troubleshoot the issue as a 1 time thing. Perhaps a shell script to store a copy with an hourly automation?
Was this solved? I have the same issue. I need to restart the PI to get hassio back up and running again. I need an older log to figure out what is going on.