Addons section missing after upgrade

Hi guys,

not sure if this is the right place to ask or if Github would be better but I seem to have lost the Addons menu after updating HomeAssistant.
Basically what happened is that the update caused the /var/lib/docker partition to fill up to 100%, so I ended up rsync’ing the whole folder over to an iscsi mount.

Originally I had used the Hassio installer on Arch Linux for HomeAssistant so I have the Supervisor installed too. Here’s the docker container list:

# docker ps --all
CONTAINER ID   IMAGE                                                     COMMAND   CREATED        STATUS                    PORTS                                   NAMES
e5b36ffa1b84   homeassistant/amd64-hassio-supervisor                     "/init"   26 hours ago   Up 26 hours                                                       hassio_supervisor
71b8eb272944   ghcr.io/home-assistant/amd64-hassio-multicast:2022.02.0   "/init"   26 hours ago   Up 26 hours                                                       hassio_multicast
9fba7704b721   ghcr.io/home-assistant/amd64-hassio-audio:2022.07.0       "/init"   26 hours ago   Up 26 hours                                                       hassio_audio
46e3a184c608   ghcr.io/home-assistant/amd64-hassio-dns:2022.04.1         "/init"   26 hours ago   Up 26 hours                                                       hassio_dns
de6550e1d070   ghcr.io/home-assistant/amd64-hassio-cli:2022.11.0         "/init"   26 hours ago   Up 26 hours                                                       hassio_cli
e7fdff869963   homeassistant/amd64-addon-letsencrypt                     "/init"   27 hours ago   Exited (0) 27 hours ago                                           gracious_hamilton
72d91fdbe63b   homeassistant/amd64-addon-configurator:latest             "/init"   27 hours ago   Exited (0) 27 hours ago                                           angry_robinson
6a45afabcf1a   ghcr.io/home-assistant/qemux86-64-homeassistant           "/init"   29 hours ago   Up 26 hours                                                       homeassistant
c3f0f6060d3e   ghcr.io/home-assistant/amd64-hassio-observer:2021.10.0    "/init"   42 hours ago   Up 26 hours               0.0.0.0:4357->80/tcp, :::4357->80/tcp   hassio_observer

Although docker is showing that amd64-hassio-supervisor is running, it seems that HomeAssistant is not able to load it for some reason.

If I manually add: hassio: to the configuration.yaml file then I see these errors in the logs:

Setup failed for hassio: Integration failed to initialize.
4:25:48 PM – (ERROR) setup.py
Missing SUPERVISOR environment variable
4:25:48 PM – (ERROR) hassio

I have found these links but they are quite old and not really applicable to my situation I think:

Pretty much a more detailed log output shows this:

2023-02-26 16:27:38.038 INFO (MainThread) [homeassistant.components.http] Now listening on port 8123
2023-02-26 16:27:38.210 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=361 from 2023-02-26 16:25:47.665990+00:00)
2023-02-26 16:27:38.245 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.2 seconds
2023-02-26 16:27:38.248 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'hassio', 'bluetooth', 'webhook', 'ssdp', 'http', 'dhcp', 'network', 'api', 'usb', 'cloud', 'websocket_api', 'zeroconf'}
2023-02-26 16:27:38.249 INFO (MainThread) [homeassistant.setup] Setting up hassio
2023-02-26 16:27:38.249 ERROR (MainThread) [homeassistant.components.hassio] Missing SUPERVISOR environment variable
2023-02-26 16:27:38.250 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 0.0 seconds
2023-02-26 16:27:38.250 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Integration failed to initialize.
2023-02-26 16:27:38.253 INFO (MainThread) [homeassistant.setup] Setting up webhook
2023-02-26 16:27:38.253 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds
2023-02-26 16:27:38.275 INFO (MainThread) [homeassistant.setup] Setting up dhcp
2023-02-26 16:27:38.275 INFO (MainThread) [homeassistant.setup] Setup of domain dhcp took 0.0 seconds
2023-02-26 16:27:38.278 INFO (MainThread) [homeassistant.setup] Setting up network
2023-02-26 16:27:38.278 INFO (MainThread) [homeassistant.setup] Setup of domain network took 0.0 seconds

which unfortunately doesn’t tell me much other then what has already been said.

Does anyone have any ideas? Thanks.

Hmmm… I managed to fix it!

This is how:

 docker stop $(docker ps -a -q)
 docker rm $(docker ps -a -q)
 docker images -a
 docker rmi $(docker images -a -q)

First stop and remove the containers, then finally remove all the images.

Next up check the hassio.json file to see which images are actually needed:

cat /etc/hassio.json

Finally pull those images in through docker:

docker pull homeassistant/amd64-hassio-supervisor
docker pull homeassistant/qemux86-64-homeassistant

Then restart the hassio-supervisor service:

systemctl restart hassio-supervisor

and all should be back to the way it was!