Cant update docker version on RaspPi3 when system is unhealthy?

I am running Home Assistant on a RPi3 its been working great for almost 2 years now. Its making use of separate docker containers for homeassistant , supervisor, samba and ssh+teminal. But HA recently decided the system was ‘unhealthy’ and wants an update of the docker iteslf (current its at version 19.xx and needs to goto 20.xx).
But as HA is unhealthy it wont let me update or run Samba or SSH addons or install new addons.
I can get to the physical console and get to the HA CLI and then use the login command to get to the host command line.
I then tried apt command …but there is no apt installed? What?
There is not even a curl command available to pull down the docker install script?
How am I meant to update Docker?
Any suggestions?

What version of HAOS are you running?

hi, i think you should try apk insread of apt (alpine linux).
And i think your system is unhealthy because u updated the container manualy (docker pull, watchtower…), u have to do it with the supervisor only, else it update it, without adding security labels or environnement variables, to your home-assistant container.

I am running HAOS 5.10

Then it is haos you need to update I think. The most recent is 9.4

tomdudu38. Thanks for the reply.
I tried apk but its not there either…I cant find any package management tools (at least that I recognise) at all in usr/bin or /sbin.
I believe the system went unhealthy because the newer versions of homeassistant need a newer version of docker.
(But once the system was unhealthy I did successfully do a docker pull of the latest homeassistant and although this is successfully started it doesnt see the supervisor ,addons or backups…so this is a separate problem to look into once I have updated docker!!!.)

I see that the HA docs page here states that Min version docker version required is 20.10.17. (I have 19.03.13)
It also states that " If you are running an older version of our Home Assistant OS, update it (Docker??) in the Configuration panel." But I have no configuration panel…I think that was retired in past versions of HA right? I am not aware of any options to update it from Settings…I would also find it strange that HA could update the docker instance from within a container running in that docker!

Any other suggestions…
Wondering if I should just reload latest HAOS + HA + Supervisor and restore from backup…

Thanks nickrout,
Is there a way to update the haos? Or is it best to just reinstall (as I just suggested in my own last post!!)

Back up. Move the backup to another computer.

Then ssh in and type

ha os update
1 Like

It in this sentence refers to Home Assistant OS, not Docker. It’s telling you to update Home Assistant OS.

HAOS comes with pre-configured versions of all the software it requires. Therefore it does not come with a package manager because installing/updating any other software could only mess things up.

Follow what nickrout showed above. Alternatively, assuming you have access to the HA UI still, you can go to settings. You should see that you have an update available for the operating system, click the option to update. If you skipped it previously then go to settings → system → updates, click the 3-dot menu in the top right and say “show skipped updates”.

1 Like

Thanks @nickrout , that worked great. I have now an updated version of HA OS and docker version is now 20.10.8. (which is still earlier than the 20.10.17 listed …but at least its the right major !)

Next I faced the problem I mentioned earlier:

When the system was unhealthy I did successfully do a docker pull of the latest homeassistant and although this is successfully started it doesnt see the supervisor ,addons or backups.

(so @CentralCommand I didnt have anything listed in settings → system → updates 3 dots were not shown!)
The supervisor and addon docker containers were there and running, but didn’t seem to be ‘connected’ to the supervisor.
Using docker ps I noted my supervisor name is ‘hassio_supervisor’ (The standard is just ‘supervisor’ I think).
To 'reconnect ’ I tried these steps:

  • Used CLI command ha backups to list my previous backups and found the id (or slug) of a recent backup.

  • Used CLI command ha backups restore --addons core_configurator – endpoint hassio_supervisor

This completed successfully and rebooted. I think that using the ‘endpoint’ option reconnected my supervisor to HA as I could then go into the GUI and could see the addons and updates again.
I had to update HA OS again about three times (but from the GUI now) to get to current (which then raised my docker version to 20.10.19).
So the system is healthy again and fully operational!!!
Thankyou all for your assistance!

1 Like