[SOLVED] HA image installed via Supervisored Installer failing with "exec user process caused: exec format error"

I’m rewriting this whole post as I pin-pointed the issue is the image is failing to run for reasons I cannot figure out:

root@venus-ha:/home/pi/Downloads# docker logs homeassistant
standard_init_linux.go:228: exec user process caused: exec format error

That is an arch. type error.

:man_shrugging:

root@venus-ha:/home/pi/Downloads# docker pull ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7
2022.4.7: Pulling from home-assistant/raspberrypi3-64-homeassistant
Digest: sha256:8196827ca7fadfbd9e82f18fb9705bde9ee31a0d91a3ad0e580a14b95dec6251
Status: Image is up to date for ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7
ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7

According to the image, it is an arm64 image:

pi@venus-ha:~/Downloads $ docker inspect ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7
[
    {
        "Id": "sha256:eab0c8d7adabd968fcad9958b31c17c28fa96001eeac10dd8a820ba0ee49ec46",
        "RepoTags": [
            "ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7"
        ],
       // [....]
        "Architecture": "arm64",
        "Os": "linux",
        "Size": 1278612041,

My CPU Info:

pi@venus-ha:~/Downloads $ cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 76.80
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
// [snip]
Hardware	: BCM2835
Revision	: a22082
Serial		: 00000000fbdf1ae1
Model		: Raspberry Pi 3 Model B Rev 1.2

I downgraded the Supervised installer to 1.0.2, and it installed arm7 based images, except for homeassistant:

pi@venus-ha:~/Downloads $ docker images
REPOSITORY                                             TAG         IMAGE ID       CREATED         SIZE
ghcr.io/home-assistant/raspberrypi3-64-homeassistant   2022.4.7    eab0c8d7adab   8 days ago      1.28GB
homeassistant/armv7-hassio-supervisor                  2022.04.0   ee2b73959439   4 weeks ago     274MB
homeassistant/armv7-hassio-supervisor                  latest      ee2b73959439   4 weeks ago     274MB
ghcr.io/home-assistant/armv7-hassio-supervisor         latest      ee2b73959439   4 weeks ago     274MB
ghcr.io/home-assistant/armv7-hassio-multicast          2022.02.0   d491cf19fe51   2 months ago    58.8MB
ghcr.io/home-assistant/armv7-hassio-cli                2021.12.0   4701925805eb   4 months ago    66.9MB
ghcr.io/home-assistant/armv7-hassio-observer           2021.10.0   a880edc5261d   6 months ago    65.9MB
ghcr.io/home-assistant/armv7-hassio-audio              2021.07.0   e586552c248b   9 months ago    82MB
ghcr.io/home-assistant/armv7-hassio-dns                2021.06.0   fb6e6fa93a72   10 months ago   77.3MB

Everybody is running, except homeassistant:

pi@venus-ha:~/Downloads $ docker ps -a
CONTAINER ID   IMAGE                                                           COMMAND                  CREATED        STATUS                   PORTS                                   NAMES
459a7d210bc5   ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7   "/init"                  3 hours ago    Exited (1) 3 hours ago                                           homeassistant
d5bf31905872   ghcr.io/home-assistant/armv7-hassio-multicast:2022.02.0         "/init"                  3 hours ago    Up 3 hours                                                       hassio_multicast
1501005fb47d   ghcr.io/home-assistant/armv7-hassio-audio:2021.07.0             "/init"                  3 hours ago    Up 3 hours                                                       hassio_audio
0a6778a3de37   ghcr.io/home-assistant/armv7-hassio-dns:2021.06.0               "/init"                  3 hours ago    Up 3 hours                                                       hassio_dns
a5087e017300   ghcr.io/home-assistant/armv7-hassio-cli:2021.12.0               "/init /bin/bash -c …"   3 hours ago    Up 3 hours                                                       hassio_cli
1ba16444330b   ghcr.io/home-assistant/armv7-hassio-observer:2021.10.0          "/init"                  21 hours ago   Up 3 hours               0.0.0.0:4357->80/tcp, :::4357->80/tcp   hassio_observer
d6fe5fbf69aa   ghcr.io/home-assistant/armv7-hassio-supervisor                  "/init"                  21 hours ago   Up 3 hours                                                       hassio_supervisor

Anybody have any ideas what’s going on?

What do you know, armv7 is exactly what’s going on:

pi@venus-ha:~/Downloads $ docker run ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

The image from Docker Hub works, though:

Status: Downloaded newer image for homeassistant/home-assistant:latest
docker.io/homeassistant/home-assistant:latest
pi@venus-ha:~/Downloads $ docker run homeassistant/home-assistant:latest 
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.

I’m going to close this issue myself. It appears there is a prompt on initial install where you select your arch type. I don’t recall it, but maybe it did come up and I selected 64 ? I found this prompt when I --purge the package and re-installed. This time, I did see it and selected the standard raspberrypi 3 and it’s now working!

Hello,

I’m facing this exact same issue only when i try to install samba, the remaining packages work. DO you have any idea on how i can sort this out? Did it happened with you on all packages?

I am having the same issue after attempting to upgrade my hass core to 2022.12.7. Google search leads me to this thread. Initially, I am not sure what does --purge mean. But now I think I understand. The following is what I did to reinstall home assistant supervised and it seems to resolve the issue.

sudo dpkg --purge homeassistant-supervised
# then I deleted the "homeassistant" container and related image
sudo reboot
cd /path/to/homeassistant_supervised.deb
sudo dpkg -i ./homeassistant_supervised.deb

During the installation process, there is a interactive window showing up asking you to choose your platform. In my case, I select “raspberrypi4”.

Now, I can see all the docker containers starting, including the “homeassistant” container:

$ docker ps -a                               
CONTAINER ID   IMAGE                                                           COMMAND                  CREATED          STATUS         PORTS                                                                                                      NAMES
1b3a1c08b5a9   zigbee2mqtt/zigbee2mqtt-armv7:1.18.1-1                          "/init"                  6 minutes ago    Up 6 minutes   0.0.0.0:8485->8485/tcp, :::8485->8485/tcp                                                                  addon_7ad98f9c_zigbee2mqtt
b18bd6bcb5f0   ghcr.io/hassio-addons/log-viewer/armv7:0.14.0                   "/init"                  6 minutes ago    Up 6 minutes   0.0.0.0:192->80/tcp, :::192->80/tcp                                                                        addon_a0d7b954_logviewer
c9a8a6466602   homeassistant/armv7-addon-configurator:5.4.2                    "/init"                  6 minutes ago    Up 6 minutes                                                                                                              addon_core_configurator
e2b3e542f45a   homeassistant/armv7-addon-ssh:9.6.1                             "/init"                  6 minutes ago    Up 6 minutes                                                                                                              addon_core_ssh
47f912bc6eac   homeassistant/armv7-addon-samba:10.0.0                          "/init"                  6 minutes ago    Up 6 minutes                                                                                                              addon_core_samba
7c3895b5d579   homeassistant/armv7-addon-zwave_js:0.1.74                       "/init"                  6 minutes ago    Up 6 minutes                                                                                                              addon_core_zwave_js
7422c38a67e0   ghcr.io/hassio-addons/influxdb/armv7:4.5.0                      "/init"                  7 minutes ago    Up 6 minutes   0.0.0.0:8086->8086/tcp, :::8086->8086/tcp, 0.0.0.0:8087->80/tcp, :::8087->80/tcp                           addon_a0d7b954_influxdb
8a4ca4075264   homeassistant/armv7-addon-mosquitto:6.1.3                       "/init"                  7 minutes ago    Up 7 minutes   0.0.0.0:1884->1884/tcp, :::1884->1884/tcp, 0.0.0.0:8883-8884->8883-8884/tcp, :::8883-8884->8883-8884/tcp   addon_core_mosquitto
3248da82fd26   ghcr.io/home-assistant/raspberrypi4-homeassistant:landingpage   "/usr/bin/landingpage"   7 minutes ago    Up 7 minutes                                                                                                              homeassistant
e655442a8fbb   ghcr.io/home-assistant/armv7-hassio-multicast:2022.02.0         "/init"                  7 minutes ago    Up 7 minutes                                                                                                              hassio_multicast
1d2ff4f79d31   ghcr.io/home-assistant/armv7-hassio-audio:2022.07.0             "/init"                  7 minutes ago    Up 7 minutes                                                                                                              hassio_audio
9c15b9a6e833   ghcr.io/home-assistant/armv7-hassio-dns:2022.04.1               "/init"                  7 minutes ago    Up 7 minutes                                                                                                              hassio_dns
5d07e68dc718   ghcr.io/home-assistant/armv7-hassio-cli:2022.11.0               "/init"                  7 minutes ago    Up 7 minutes                                                                                                              hassio_cli
561c70b5f7c5   ghcr.io/home-assistant/armv7-hassio-supervisor:latest           "/init"                  7 minutes ago    Up 7 minutes                                                                                                              hassio_supervisor
c297af2e5f8d   ghcr.io/home-assistant/armv7-hassio-observer:2021.10.0          "/init"                  58 minutes ago   Up 8 minutes   0.0.0.0:4357->80/tcp, :::4357->80/tcp                                                                      hassio_observer

Purge removes the cache. When you install a package, it will cache settings for reinstalls in the event of a failed install. Purge removes that.