System hangs after power failure

Had a power outage and HAS is now stuck in a startup phase.

System Health

Version core-2021.8.3
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
user root
Virtual Environment false
Python Version 3.9.6
Operating System Family Linux
Operating System Version 5.10.17-v8
CPU Architecture aarch64

System log gives this error:
ERROR (MainThread) [supervisor.utils.codenotary] Timeout while processing CodeNotary

You could try the ha supervisor repair command if you have access via SSH.

When did you last do a snapshot?

EDIT: ha. I just got the same error while trying to reload the supervisor to get the latest update.

ERROR (MainThread) [supervisor.utils.codenotary] Timeout while processing CodeNotary

Trying the repair command now…

EDIT2: Worked for me. Kind of. The error still occurs but it allowed me to upgrade to the 2021.8.6 core version.

last snapshot was only 7 hours ago.
ha supervisor command says it worked successfully

I’m still running core-2021.8.3, trying to update, when the tick box of create snapshot is on, the process fails instantly.

Take snapshot off and it just sits there doing nothing.

Edit:
Apparently:
‘HomeAssistantCore.update’ blocked from execution, no host internet connection

WTF??

So, HA Pi is on wired connection direct to the router. can’t find anything that might have changed… bit odd.

Just realised that after you asked about the snapshot I used the google backup addon to check, and it successfully connected.
So the lack of internet is some kind of additional problem…

So after a bit of searching, I discovered others had a similar problem, but related to DNS servers, I then found that my Pi-Hole had not restarted.
So, is my HA system now somehow dependent on the pi-hole??
Slightly amusing note, many sensors are listed as being last updated 27weeks ago.

Edit:
Everything else on my network works, just not HA.
TP link devices work via HA, but Tuya & HACS, no.

HACS is saying invalid token, probably related to that 27 weeks ago thing. Tried to restore snapshot, nothing happens.

So I was trying to “fix” the issue rather than just restoring a snapshot, gave up on that, and back up and running. Anyway, it brings to mind a question…

Was this problem in some way caused by the power outage messing with HA? And if so, is it recommended to shut down HA ( I assume the system/ shut down host) rather than just unplugging the raspberry?
And if I did a shutdown host, what then? does it automatically power back up when I plug the power back in or does it require an SSH command line to reboot?

Very much so. Just like any PC. A battery backup is recommended to prevent power outages causing issues. Even a cheap UPS like the Eaton 3s 700 can power your pi and router for an hour or more.

For a pi, yes. For a generic x86 install it depends on the BIOS settings.

1 Like