HA not starting after update

I’ve just updated my HA core Docker installation, from v2021.10.3 to the current release. After the update I couldn’t get access to the Lovelace GUI. The last entry in the log was:

2021-12-31 15:06:01 INFO (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Pool recreating
2021-12-31 15:06:01 INFO (MainThread) [custom_components.hacs] Executing task: store_hacs_data

I waited for 20 minutes, then decided it might be worth trying deleting home-assistant_v2.db (it was 1.6GB in size). So I stopped HA, deleted the database, rebooted, and tried restarting HA again. Now it is still not starting, but nothing is being written to the log either.
Any idea how I can recover things?
This is how I did the update:

sudo docker stop home-assistant
docker rm home-assistant
docker pull homeassistant/home-assistant
sudo docker run -d --name="home-assistant" --restart unless-stopped \
-v ~/homeassistant:/config -v /etc/letsencrypt:/etc/letsencrypt \
-v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant

Move back to the older version & restore your backup? If you do think your configuration is important enough not back things up, especially before upgrades, then I guess you need to manually recreate it.

So I repeated the process, but this time did the following before running the docker container:

sudo apt-get update
sudo apt-get upgrade

…and everything has started up this time
???

How did you upgrade? docker pull homeassistant/homeassistant:latest ?

Those commands just updates things outside the HA Docker container unless Docker itself needed updating.If so there should have been errors in the logs on the server.

This is how I upgraded:

1 Like

Perhaps Docker itself needed to be updated then.

Yes, maybe. I guess these things never work first time!