HomeAssistant won't start (0.52.1) / SSH accessible querying logs = API error [SOLVED]

In between tinkering with HA before bedtime and waking up this morning, it appears that I’ve possibly created an issue and HA won’t start up.

I rebooted by pulling the power cable before I went to bed (because ever since installing hass.io, the restart via GUI option has been unreliable, working only around 50% of the time) but didn’t check it had come back up.

I opened my phone this morning, tried to navigate to the web interface and ever so briefly got a password protection box (my install has no password protect - some web page caching quirk maybe?) before reloading the page again and it timed out / gave a ‘page not found’.

Another hard reboot and the same page not found error.

I can SSH into the box but ‘hassio homeassistant logs’ just hangs and then says “API error”.

Any ideas?

I also get API error sometimes but haven’t bothered to investigate.

If you are using Frenck’s SSH plugin (https://github.com/hassio-addons/repository
) then the home assistant log is located at /config/home-assistant.log , you should be able to spot the errors in there.

I you are not, then I am not sure how to access the underlying file system.

HTH

I was able to SSH in and ‘cd /config’ and ‘cat home-assistant.log’, and that pointed me to a line in automations.yaml (I thought I’d used the ‘check configuration’ option before rebooting - either it returned valid when it wasn’t or I simply forgot).

Thank you - back up and running now.