HA-supervisor installation (2022.09.dev1703) on Ubuntu (20.04.5) failed - network access missing?

HA newbie here, stuck at installation. Intense googling did not help.

Goal: install HA with add-ons (MTTQ is a must, more to follow) on an old PC acting as a home server to run home smart gadgets.

PC: Intel Core2 Quad CPU Q8200, 8GB RAM, 6T raid1 hdd, Ubuntu 20.04.5 server, headless, dns, dhcp, smb, nfs, …

Context: as a newbie I have missed the difference between core and supervised and first installed core edition (as docker container). No problems at all, except MQTT was not available. Scratched core edition and followed guide on [GitHub - home-assistant/supervised-installer: Installer for a generic Linux system]. Failed to get localhost:8123 preparation page. Started digging and messing arround.

What looks good:

  • Ubuntu is updated and upgraded
  • dependencies are met (apparmor, jq, wget, curl, udisks2, libglib2.0-bin, network-manager, dbus, systemd-journal-remote)
  • docker platform looks good (installed and tested during successful ‘ha-core’ attempt)
  • os-agent replays to gdbus introspect (‘node /io/hass/os { interface org.freedesktop.DBus.Introspectable { methods:’…)
  • downloaded .deb from Release 1.2.2 · home-assistant/supervised-installer · GitHub
    /download/homeassistant-supervised.deb
  • dpkg -i homeassistant-supervised.deb played nicely, and finished with:
[info] Within a few minutes you will be able to reach Home Assistant at:
[info] http://homeassistant.local:8123 or using the IP address of your
[info] machine: http://192.168.0.254:8123
  • ha docker container was downloaded:
root@bielak:/fs/home/daemons/home_assistant# docker container ls -a
CONTAINER ID   IMAGE                                                   COMMAND    CREATED             STATUS                   PORTS     NAMES
218325c783c6   ghcr.io/home-assistant/amd64-hassio-supervisor:latest   "/init"    About an hour ago   Up About an hour                   hassio_supervisor
ef68098f6882   ubuntu                                                  "bash"     6 days ago          Exited (0) 2 hours ago             hungry_swirles
bfce78fd6db6   hello-world                                             "/hello"   6 days ago          Exited (0) 6 days ago              quirky_banzai
  • image is there:
root@bielak:/fs/home/daemons/home_assistant# docker image ls -a
REPOSITORY                                       TAG       IMAGE ID       CREATED         SIZE
ghcr.io/home-assistant/amd64-hassio-supervisor   latest    b1f30bcec501   25 hours ago    335MB
ghcr.io/home-assistant/home-assistant            stable    dc6d95cb9337   6 days ago      1.47GB
ubuntu                                           latest    2dc39ba059dc   2 weeks ago     77.8MB
hello-world                                      latest    feb5d9fea6a5   11 months ago   13.3kB

What looks bad:

Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.agent] Can't connect to OS-Agent#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.systemd] Can't connect to systemd#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.logind] Can't connect to systemd-logind#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.hostname] Can't connect to systemd-hostname#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.timedate] Can't connect to systemd-timedate#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.network] Can't connect to Network Manager#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.rauc] Can't connect to rauc#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[31m22-09-18 14:28:36 ERROR (MainThread) [supervisor.utils.dbus] Could not get introspection data after 3 attempts#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.dbus.resolved] Can't connect to systemd-resolved.#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[32m22-09-18 14:28:36 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[32m22-09-18 14:28:36 INFO (MainThread) [supervisor.jobs] 'NetworkManager.load' blocked from execution, host Network Manager not available#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[32m22-09-18 14:28:36 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}#033[0m
Sep 18 16:28:36 bielak 218325c783c6[14642]: #033[33m22-09-18 14:28:36 WARNING (MainThread) [supervisor.host.apparmor] AppArmor is not enabled on host#033[0m

My thoughts:

  • perhaps previous installation of ha-core messed something? some (mis)configuration left? however ha-supervisor runs in its own docker container and should be isolated…
  • could the fact that I have disabled IPv6 in kernel give such strange effects? well, IPv4 works just fine. could IPv6 be a hard dependency? it was not for ha-core…

Would you please advice how to diagnose and finally solve the problem?

Should I provide syslog with installation? If so what is the preferred method to publish 413 lines of text (44kB)?

root@bielak:/fs/home/daemons/home_assistant# docker container inspect hassio_supervisor
[
    {
        "Id": "218325c783c64c4bad6fb8210a800e21a5a4f0016950aedd2beea04926573b51",
        "Created": "2022-09-18T14:27:58.480991522Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 15260,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2022-09-18T14:28:00.64681336Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:b1f30bcec5013d77840cd53f864b0642a8327eea1db8e740974f796e7c5a9f7d",
        "ResolvConfPath": "/var/lib/docker/containers/218325c783c64c4bad6fb8210a800e21a5a4f0016950aedd2beea04926573b51/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/218325c783c64c4bad6fb8210a800e21a5a4f0016950aedd2beea04926573b51/hostname",
        "HostsPath": "/var/lib/docker/containers/218325c783c64c4bad6fb8210a800e21a5a4f0016950aedd2beea04926573b51/hosts",
        "LogPath": "",
        "Name": "/hassio_supervisor",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "unconfined",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/run/supervisor:/run/os:rw",
                "/run/udev:/run/udev:ro",
                "/etc/machine-id:/etc/machine-id:ro",
                "/usr/share/hassio:/data:rw",
                "/run/docker.sock:/run/docker.sock:rw",
                "/run/dbus:/run/dbus:ro"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "journald",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": [
                "apparmor=hassio-supervisor",
                "label=disable"
            ],
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": null,
            "ReadonlyPaths": null
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/d870810efb3595b071d8f256bf7156ab641b7b4973b24f84e81c3a2c225163aa-init/diff:/var/lib/docker/overlay2/0b3a68946af8c8aa1eec166b0b36406d35a441bd407d1a69dd754a4fca7beae9/diff:/var/lib/docker/overlay2/c226aff003712a1f2ae34f9d1c0e04541b0a9fd5c8edf1d564453ed17e67ac21/diff:/var/lib/docker/overlay2/325f02ba7c9ca4fd464e2c045b3c91d802360d4a6333073d934543800d864920/diff:/var/lib/docker/overlay2/2c76e88ee506570e84c7f9e81bd95c4b9ebf2a00c01df7b93fbeeb345a3654a5/diff:/var/lib/docker/overlay2/88d01f5e017cc3cd2f77f4d984034f2425752186ff60f694ffdd80ba18f2fd0f/diff:/var/lib/docker/overlay2/31da4a2eb94d551ed1f99a2abd95a070088961680d77698f2d7d082636d27790/diff:/var/lib/docker/overlay2/facad772ad857ac15fe25af1017774b766a1799fd872789f81e6268cb0bfa6af/diff:/var/lib/docker/overlay2/bf32d5dd70493d2e38a4f64ee38b58ae13e42f066bec48b872b68b29ddbc8bff/diff:/var/lib/docker/overlay2/c8c4a18d703e0fdbbb4a9339d83e9795c2eb821e7120e515db1e1702d68cc54f/diff:/var/lib/docker/overlay2/fb849e12b3b2ba36587216555f7ac091d7c99d359691b8db812ab4426100b526/diff:/var/lib/docker/overlay2/89b898ba46c5763830a88105e3455cdc6f59bb9793d922ba8ea4747b48529851/diff:/var/lib/docker/overlay2/5138bf16f772fd645be54e4590dab2a6d3ad2338e525bbbe2fa80055b5a5a1a2/diff:/var/lib/docker/overlay2/2e9c31c5fdca797e258b07be286c1a6abc4cf0b20274e25c7095015917359d9a/diff:/var/lib/docker/overlay2/3f0820b0d393b17882fa890085f792b2ee2adb43af0daee2ab696ae6849c985e/diff",
                "MergedDir": "/var/lib/docker/overlay2/d870810efb3595b071d8f256bf7156ab641b7b4973b24f84e81c3a2c225163aa/merged",
                "UpperDir": "/var/lib/docker/overlay2/d870810efb3595b071d8f256bf7156ab641b7b4973b24f84e81c3a2c225163aa/diff",
                "WorkDir": "/var/lib/docker/overlay2/d870810efb3595b071d8f256bf7156ab641b7b4973b24f84e81c3a2c225163aa/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/run/dbus",
                "Destination": "/run/dbus",  
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/run/supervisor", 
                "Destination": "/run/os",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
 
           {
                "Type": "bind",
                "Source": "/run/udev",
                "Destination": "/run/udev",  
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/etc/machine-id", 
                "Destination": "/etc/machine-id",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/usr/share/hassio",
                "Destination": "/data",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/run/docker.sock",
                "Destination": "/run/docker.sock",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "218325c783c6",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "SUPERVISOR_SHARE=/usr/share/hassio",
                "SUPERVISOR_NAME=hassio_supervisor",
                "SUPERVISOR_MACHINE=qemux86-64",
                "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "LANG=C.UTF-8",
                "S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
                "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
                "S6_CMD_WAIT_FOR_SERVICES=1",
                "S6_SERVICES_GRACETIME=10000",
                "SUPERVISOR_API=http://localhost"
            ],
            "Cmd": null,
            "Image": "ghcr.io/home-assistant/amd64-hassio-supervisor:latest",
            "Volumes": null,
            "WorkingDir": "/",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "io.hass.arch": "amd64",
                "io.hass.base.arch": "amd64",
                "io.hass.base.image": "homeassistant/amd64-base:3.16",
                "io.hass.base.name": "python",
                "io.hass.base.version": "2022.08.0",
                "io.hass.type": "supervisor",
                "io.hass.version": "2022.09.dev1703",
                "org.opencontainers.image.authors": "The Home Assistant Authors",
                "org.opencontainers.image.created": "2022-09-17 14:26:03+00:00",
                "org.opencontainers.image.description": "Container-based system for managing Home Assistant Core installation",
                "org.opencontainers.image.documentation": "https://www.home-assistant.io/docs/",
                "org.opencontainers.image.licenses": "Apache License 2.0",
                "org.opencontainers.image.source": "https://github.com/home-assistant/supervisor",
                "org.opencontainers.image.title": "Home Assistant Supervisor",
                "org.opencontainers.image.url": "https://www.home-assistant.io/",
                "org.opencontainers.image.version": "2022.09.dev1703"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "1c832f80958e7115a57713207f8c05f1afe27c5f62227286a170f4ce426cd68c",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/1c832f80958e",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,  
            "EndpointID": "66ffd8c91c5a0cb6f5db6fde529dae83f90dafcbea6ed30a222299ff98281fd7",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "7953d42d0add51332c6a3c3e80707d8aef03cfca2b9ef9e88f79f2dfe25c30f2",
                    "EndpointID": "66ffd8c91c5a0cb6f5db6fde529dae83f90dafcbea6ed30a222299ff98281fd7",
                    "Gateway": "172.17.0.1", 
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "", 
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                },
                "hassio": {
                    "IPAMConfig": {
                        "IPv4Address": "172.30.32.2"
                    },
                    "Links": null,
                    "Aliases": [
                        "supervisor",
                        "218325c783c6"
                    ],
                    "NetworkID": "430c52971dc9e08494a60d69aabf5aab5169356f1775830bc1b99b384e48ab66",
                    "EndpointID": "6a84bcd88cba3bfb906e80f87efadd2b3dab5c184f3d12d8c8fffcd66cb66654",
                    "Gateway": "172.30.32.1",
                    "IPAddress": "172.30.32.2",
                    "IPPrefixLen": 23,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "", 
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:1e:20:02",
                    "DriverOpts": null
                }
            }
        }
    }
]
root@bielak:/fs/home/daemons/home_assistant#

Why the choice for Ubuntu and not the supported Debian?

Because I already have decent Ubuntu server and I would have to buy new hardware to run Debian (or HaOS, for that matter). I am considering purchase of RPi 4, but first wanted to explore Ubuntu path (unsupported but known to work).
BTW: I have repeated installation procedure on my laptop, running Ubuntu 22.04.1 Desktop. And it worked just fine (HA-supervised installed and MQTT add-on added). So I think that it can be done also on server.

After too many hours debugging this problem and no new hints I have decided to upgrade my Ubuntu to 22.04.1 LTS. And miraculously on the new server instance (same hardware and environment!) standard Home Assistant Supervised installation steps [GitHub - home-assistant/supervised-installer: Installer for a generic Linux system] provided working and stable HA. I have installed MQTT Broker and Zigbee2MQTT and paired all my Zigbee gadgets.

Problem solved (sort of).

Hi,
I’m in your same condition. I’m with ubuntu 22.04.1 LTS but when I run command:
dpkg -i homeassistant-supervised.deb
it gives me error
[error] Ubuntu 22.04.1 LTS is not supported!

As also said here

I wanted to ask you: how did you install with success, since you have the same version of my operating system?

Thanks in advance

I managed to make it work!
from this page Releases · home-assistant/supervised-installer · GitHub
I was downloading 1.4.1 instead I tried to download 1.3.1 and got another error:

dpkg: dependency problems prevent configuration of homeassistant-supervised:
 homeassistant-supervised depends on docker-ce; however:
  Package docker-ce is not installed.

which sounded strange to me, I think it’s because when I installed ubuntu server I put the X on docker and it installed it via snap. So now I installed with apt install docker-ce, following this guide

in this way I think I messed up a bit with docker (it’s the first time I use docker), maybe I overwritten what I had, because it removed a container I had (pihole). But no matter, homeassistant container remained.
I then tried to install the 1.4.1 version of homeassistant-supervised.deb but it still didn’t work. So I stayed with 1.3.1 and it worked! It installed successfully.
It gave me an error that I couldn’t ping something, I think it was due to some problem with the pihole I had. Rebooting and fiddling around a bit it went and rebooting again it installed correctly. After reboot, I waited about half an hour before reconfiguring homeassistant. The installation of the supervisor took quite a while in fact.

I also followed this guide a bit

---- update:
since home assistant was reporting many critical problems, I decided to format everything and install debian

I thought esp’s were only supported on Debian