Twice today alone my HA locked up. I couldn’t log in to the web GUI, the Samba share, or SSH. The only way to fix it was to unplug my Rpi3 and plug it back in. Everything would work great for a few hours then lock up again. Any idea what the issue could be?
As you have supplied zero information, no logs, no system logs, no system performance metrics, my complete guess is:
Solar flares.
There are no logs to share that I know of. The system just crashes. When I reboot the logs start over. Is there a way for me to find the logs from the system before it crashes?
Usually the first thing to blame is the SD Card.
Yes, keep a close eye on it beforehand.
With no other info apart from it being a RPi, I’m going to say either the SD card is full, database is corrupt or SD card is dying. I suggest ensuring you have a backup saved elsewhere ASAP
My guess : insufficient power supply. I have seen this behavior before with RbPi’s, hanging without reason. Replace the power supply with a better one fixed it.
I agree it’s likely the power supply and that can also lead to sad-card problems.
Back when I was running on a RPi (for about 1.5 ~ 2 yrs) I never had the power supply fail me. I would think that if it’s been running fine for ‘x’ amount of time, the culprit is more likely to be SD card. Either way, back up the config now!
I suggest whilst its up and running you do a backup, before you need to change the title of post to HELP HA has died and i don’t have anything to recover.
Except Pascal (hassio dev) says 95% it’s caused by the power supply.
I’m not sparking (no pun or personal reference intended ) any flames here but think it worthwhile saying that I too ran HA on a RPi for about 18 months using an unbranded 2A power supply with no problems.
I don’t doubt the advice for one second but just thought I’d add another ‘data point’ and for what it’s worth before even wondering about the cause, take the advice of @aidbish!!
I had a RbPi 1 running fine for 3 years (first 2 years just running pi-hole, later pi-hole + mosquitto) All of a sudden DNS does not resolv anymore. Can ping the RbPi, but can’t access pi-hole and can’t ssh in. First once a month, later more frequent. Just to be sure, prepared a new sd-card (was not running from an sd-card, just to boot). Did not solve it. Replacing the power supply was what fixed the problem.
I just take Pascals views seriously. I never had an issue with either the SD card or Powersupply but I used good cards and I got a power supply rated at 3A max… always been a proponent of exceeding minimum spec.
Thanks for the replies, guys.
I do daily backups to Google Drive, so no problem there. I’m currently using a 2.5A power supply, so that could be the issue. I’m just going to get a new SD card and a new power supply to make sure the issue is fixed.
What OS are you using?
Adding my 2 cents to this, as I literally had the same thing happen in the past week. Twice I found my RasPi3 had completely locked up/frozen, after running for many, many months without incident, requiring an unplug/replug. Current uptime is now 3 and a half days without any further incident.
Running up-to-date Raspbian Stretch (9.11), Home Assistant ver 0.102.0.dev20191028 running in docker container, with official RasPi power supply. I generally update all packages and docker images every two weeks (due again about now).
My first guess was the SD card might be on its way out but, now that I’ve seen this post, I’m second-guessing that. After as many years in tech as I have, I find it hard to believe in coincidences like this.
That said, all my backups are current (including docker containers), so might just order a new SD card in preparation.
As I said, just tossing my 2 cents in…