Hi all
My installation refused to update to the latest version - 2022.10.3 recently. Reason being that my system was unhealthy due to an unsupported installion. I had installed Portainer years ago and it just sat there for a long time and I was able to get by with it hanging around until now. I followed some steps to rectify the situation and despite removing the addon AND removing the extra (Deepstack) container I had created with Portainer; my Supervisor log still reports…
22-10-14 10:47:16 ERROR (MainThread) [supervisor.resolution.evaluations.container] Found image in unhealthy image list 'hassioaddons/portainer-amd64' on the host
you can also issue the command docker image prune to clear out unused images. The reason your docker image rm command failed is you typed the name of the image wrong. you added a hyphen between “amd” and “64”
At one stage I issued the following command to overcome an update issue …
ha jobs options --ignore-conditions healthy
I have since reset this (I thought) with
ha jobs reset
# then
ha supervisor restart
But for some reason when my system comes back up - I am running an Unsupported installation!
Home Assistant Supervisor reports…
Healthy = true
Supported = Unsupported
And I have this in my Supervisor logs…
22-10-14 15:45:40 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will make the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>}
Unhealthy doesn’t work like unsupported. Supervisor doesn’t have rechecks for unhealthy, it doesn’t go away while supervisor is running. Once you’ve fixed the issue you need to restart supervisor with with ha supervisor restart. Or just reboot the host if you find that easier.
Unhealthy doesn’t persist so supervisor will start with a clean bill of health and won’t mark it unhealthy again.
Hey. Sorry for slow response. Maybe I was not clear earlier - I was able to clear Unhealthy with a Supervisor restart. My problem was that I could not clear Unsupported.
ha jobs reset
… was meant to undo me ignoring healthy conditions. But it did not. No amount of Supervisor reboots, OS restarts or cache clearing would get rid of it…
I run my installation on VirtualBox, so luckily I had a disk backup that was clear of my having set
ha jobs options --ignore-conditions healthy
So, I rolled back my installtion. Of course this meant I had to repeat the whole process of removing docker containers and images.
All is well now. Glad I finally got around to doing it. Thanks for your help.