[SOLVED] Docker install on a RPi4: unable to connect

Hello,
i’ve just installed Hassio on docker on RPi4 using the 64bit architecture, following this tutorial https://www.home-assistant.io/hassio/installation/#debianubuntu

Now i can’t access home assistant throught it’s ip:port as i get the error: ERR_CONNECTION_REFUSED

CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS               NAMES
************        homeassistant/armv7-hassio-dns:1        "coredns -conf /conf…"   4 minutes ago       Up 4 minutes                            hassio_dns
************         homeassistant/armv7-hassio-supervisor   "/bin/entry.sh pytho…"   15 minutes ago      Up 5 minutes                            hassio_supervisor

The logs of the supervisor container are revealing the following:
The * in the ip’s are numbers.

19-12-19 19:13:54 INFO (MainThread) [__main__] Initialize Hass.io setup
19-12-19 19:13:54 INFO (MainThread) [hassio.docker.network] Can't find Hass.io network, create new network
19-12-19 19:13:55 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 193
19-12-19 19:13:55 INFO (SyncWorker_0) [hassio.docker.supervisor] Connect Supervisor to Hass.io Network
19-12-19 19:13:55 INFO (MainThread) [__main__] Setup HassIO
19-12-19 19:13:55 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-12-19 19:13:55 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-12-19 19:13:56 WARNING (MainThread) [hassio.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
19-12-19 19:13:56 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
19-12-19 19:13:56 INFO (MainThread) [hassio.host.info] Update local host information
19-12-19 19:13:56 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-12-19 19:13:56 INFO (MainThread) [hassio.host.services] Update service information
19-12-19 19:13:56 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-12-19 19:13:56 INFO (MainThread) [hassio.host.network] Update local network DNS information
19-12-19 19:13:56 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
19-12-19 19:13:56 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}19-12-19 19:13:56 INFO (MainThread) [hassio.host.services] Reload local service hassio-apparmor.service
19-12-19 19:13:56 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-12-19 19:13:56 INFO (MainThread) [hassio.dns] No CoreDNS plugin Docker image homeassistant/armv7-hassio-dns found.
19-12-19 19:13:56 INFO (MainThread) [hassio.dns] Setup CoreDNS plugin
19-12-19 19:13:56 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/armv7-hassio-dns tag 1.
19-12-19 19:14:05 INFO (MainThread) [hassio.dns] CoreDNS plugin now installed
19-12-19 19:14:05 INFO (MainThread) [hassio.dns] Update resolv from Supervisor
19-12-19 19:14:05 WARNING (MainThread) [hassio.dns] Ignore invalid DNS Server: dns://fd00::e228:****:****:****
19-12-19 19:14:05 INFO (MainThread) [hassio.dns] Start CoreDNS plugin
19-12-19 19:14:05 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.*.*
19-12-19 19:14:09 INFO (SyncWorker_5) [hassio.docker.dns] Start DNS homeassistant/armv7-hassio-dns with version 1
19-12-19 19:14:09 INFO (MainThread) [hassio.homeassistant] No Home Assistant Docker image homeassistant/raspberrypi4-64-homeassistant found.
19-12-19 19:14:09 INFO (MainThread) [hassio.homeassistant] Setup HomeAssistant landingpage
19-12-19 19:14:09 INFO (SyncWorker_2) [hassio.docker.interface] Pull image homeassistant/raspberrypi4-64-homeassistant tag landingpage.
19-12-19 19:14:18 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository
19-12-19 19:14:18 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository
19-12-19 19:14:18 INFO (MainThread) [hassio.store] Load add-ons from store: 62 all - 62 new - 0 remove
19-12-19 19:14:18 INFO (MainThread) [hassio.addons] Found 0 installed add-ons
19-12-19 19:14:18 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
19-12-19 19:14:18 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files
19-12-19 19:14:18 INFO (MainThread) [hassio.discovery] Load 0 messages
19-12-19 19:14:18 INFO (MainThread) [hassio.ingress] Load 0 ingress session
19-12-19 19:14:18 INFO (MainThread) [hassio.secrets] Load Home Assistant secrets: 0
19-12-19 19:14:18 INFO (MainThread) [__main__] Run Hass.io
19-12-19 19:14:18 INFO (MainThread) [hassio.api] Start API on 172.30.*.*
19-12-19 19:14:18 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons
19-12-19 19:14:18 INFO (MainThread) [hassio.addons] Phase 'system' start 0 add-ons
19-12-19 19:14:18 INFO (MainThread) [hassio.addons] Phase 'services' start 0 add-ons
19-12-19 19:14:20 INFO (SyncWorker_4) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi4-64-homeassistant with version landingpage
19-12-19 19:14:26 ERROR (MainThread) [hassio.homeassistant] Home Assistant has crashed!
19-12-19 19:14:26 INFO (MainThread) [hassio.addons] Phase 'application' start 0 add-ons
19-12-19 19:14:26 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-12-19 19:14:26 INFO (MainThread) [hassio.core] Hass.io is up and running
19-12-19 19:14:26 INFO (MainThread) [hassio.homeassistant] Setup Home Assistant
19-12-19 19:14:26 INFO (SyncWorker_15) [hassio.docker.interface] Update image homeassistant/raspberrypi4-64-homeassistant:landingpage to homeassistant/raspberrypi4-64-homeassistant:0.103.2
19-12-19 19:14:26 INFO (SyncWorker_15) [hassio.docker.interface] Pull image homeassistant/raspberrypi4-64-homeassistant tag 0.103.2.
19-12-19 19:16:19 INFO (SyncWorker_15) [hassio.docker.interface] Clean homeassistant application
19-12-19 19:16:19 INFO (MainThread) [hassio.homeassistant] Home Assistant docker now installed
19-12-19 19:16:19 INFO (MainThread) [hassio.homeassistant] Start Home Assistant
19-12-19 19:16:22 INFO (SyncWorker_5) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi4-64-homeassistant with version 0.103.2
19-12-19 19:16:27 ERROR (MainThread) [hassio.homeassistant] Home Assistant has crashed!
19-12-19 19:16:27 ERROR (MainThread) [hassio.homeassistant] Can't start Home Assistant!
19-12-19 19:16:27 INFO (SyncWorker_6) [hassio.docker.interface] Cleanup images: ['homeassistant/raspberrypi4-64-homeassistant:landingpage']
19-12-19 19:24:24 INFO (MainThread) [__main__] Stopping Hass.io
19-12-19 19:24:24 INFO (MainThread) [hassio.api] Stop API on 172.30.*.*
19-12-19 19:24:24 INFO (MainThread) [hassio.misc.forwarder] Stop DNS forwarding
19-12-19 19:24:24 INFO (MainThread) [hassio.core] Hass.io is down
19-12-19 19:24:24 INFO (MainThread) [__main__] Close Hass.io
19-12-19 19:24:49 INFO (MainThread) [__main__] Initialize Hass.io setup
19-12-19 19:24:49 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 193
19-12-19 19:24:49 INFO (MainThread) [__main__] Setup HassIO
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-12-19 19:24:49 WARNING (MainThread) [hassio.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.NetworkManager - /org/freedesktop/NetworkManager/DnsManager
19-12-19 19:24:49 INFO (MainThread) [hassio.host.info] Update local host information
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-12-19 19:24:49 INFO (MainThread) [hassio.host.services] Update service information
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-12-19 19:24:49 INFO (MainThread) [hassio.host.network] Update local network DNS information
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
19-12-19 19:24:49 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'}19-12-19 19:24:49 INFO (MainThread) [hassio.host.services] Reload local service hassio-apparmor.service
19-12-19 19:24:49 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-12-19 19:24:49 INFO (SyncWorker_1) [hassio.docker.interface] Attach to homeassistant/armv7-hassio-dns with version 1
19-12-19 19:24:49 INFO (MainThread) [hassio.dns] Update resolv from Supervisor
19-12-19 19:24:49 WARNING (MainThread) [hassio.dns] Ignore invalid DNS Server: dns://fd00::e228:****:****:****
19-12-19 19:24:49 INFO (MainThread) [hassio.dns] Start CoreDNS plugin
19-12-19 19:24:49 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.*.*
19-12-19 19:24:49 INFO (SyncWorker_1) [hassio.docker.interface] Clean hassio_dns application
19-12-19 19:24:51 INFO (SyncWorker_1) [hassio.docker.dns] Start DNS homeassistant/armv7-hassio-dns with version 1
19-12-19 19:24:51 INFO (SyncWorker_0) [hassio.docker.interface] Attach to homeassistant/raspberrypi4-64-homeassistant with version 0.103.2
19-12-19 19:24:52 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository
19-12-19 19:24:52 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository
19-12-19 19:24:52 INFO (MainThread) [hassio.store] Load add-ons from store: 62 all - 62 new - 0 remove
19-12-19 19:24:52 INFO (MainThread) [hassio.addons] Found 0 installed add-ons
19-12-19 19:24:52 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
19-12-19 19:24:52 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files
19-12-19 19:24:52 INFO (MainThread) [hassio.discovery] Load 0 messages
19-12-19 19:24:52 INFO (MainThread) [hassio.ingress] Load 0 ingress session
19-12-19 19:24:52 INFO (MainThread) [hassio.secrets] Load Home Assistant secrets: 0
19-12-19 19:24:52 INFO (MainThread) [__main__] Run Hass.io
19-12-19 19:24:52 INFO (MainThread) [hassio.api] Start API on 172.30.*.*
19-12-19 19:24:52 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons
19-12-19 19:24:52 INFO (MainThread) [hassio.addons] Phase 'system' start 0 add-ons
19-12-19 19:24:52 INFO (MainThread) [hassio.addons] Phase 'services' start 0 add-ons
19-12-19 19:24:52 INFO (SyncWorker_1) [hassio.docker.interface] Start homeassistant/raspberrypi4-64-homeassistant
19-12-19 19:24:58 ERROR (MainThread) [hassio.homeassistant] Home Assistant has crashed!
19-12-19 19:24:58 INFO (MainThread) [hassio.addons] Phase 'application' start 0 add-ons
19-12-19 19:24:58 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-12-19 19:24:58 INFO (MainThread) [hassio.core] Hass.io is up and running

Logs of the hassio container:

.:53
2019-12-19T20:24:52.390+01:00 [INFO] CoreDNS-1.6.1
2019-12-19T20:24:52.397+01:00 [INFO] linux/arm, go1.12.7, 1fda570
CoreDNS-1.6.1
linux/arm, go1.12.7, 1fda570
2019-12-19T20:24:52.665+01:00 [INFO] 172.30.*.*:* - 38170 "AAAA IN version.home-assistant.io. udp 43 false 512" NOERROR qr,rd,ra 149 0.023192297s
2019-12-19T20:24:52.665+01:00 [INFO] 172.30.*.*:* - 37133 "A IN version.home-assistant.io. udp 43 false 512" NOERROR qr,rd,ra 125 0.023251592s

Thank you for your support :smiley:

Hi Mondmonarch,
I don’t know your experience with Linux. But you chose a quite difficult way.
Howe about start with standard installation on RPi 4: https://www.home-assistant.io/hassio/installation/
Will give you fast success. Maybe worth a try?

Connection is refused because there is no HomeAssistant container… has it pulled the image? Have you waited long enough to see if it starts or not?

Hi honikos,
I’ve basic experience with Linux and quite a few projects done on my pi. I already have a default installation running on my pi3 but I don’t like the limited access / missing proper ssh CLI, as I want to have also other things running, besides home assistant. Also bad experience with a python virtual env. Could you give me a recommendation for my case?

I thought this would be done by

curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi4-64

I have waited quite a time and restarted it, but still no success

Update:

i got it working, using this command:

docker run --init -d --name="home-assistant" -e "TZ=Europe/Berlin" -v /Users/pi/homeassistant:/config -p 8123:8123 homeassistant/home-assistant:stable

it pulled the image ‘homeassistant/home-assistant:stable’

now i 've got three containers running.
It seems to me, that on start the original container boots, but somehow crashes:

pi@himbipi4:~ $ docker ps --filter "status=exited"
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                     PORTS               NAMES
0b02b5506eda        homeassistant/raspberrypi4-64-homeassistant:0.103.2   "/bin/entry.sh pytho…"   46 hours ago        Exited (1) 3 minutes ago                       homeassistant

pi@himbipi4:~ $ docker ps --all
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                     PORTS                    NAMES
55a0ed883239        homeassistant/armv7-hassio-dns:1                      "coredns -conf /conf…"   6 minutes ago       Up 6 minutes                                        hassio_dns
d1872fa151a1        homeassistant/home-assistant:stable                   "/bin/entry.sh pytho…"   12 minutes ago      Up 3 minutes               0.0.0.0:8123->8123/tcp   home-assistant
0b02b5506eda        homeassistant/raspberrypi4-64-homeassistant:0.103.2   "/bin/entry.sh pytho…"   46 hours ago        Exited (1) 3 minutes ago                            homeassistant
d2c4b1f02337        homeassistant/armv7-hassio-supervisor                 "/bin/entry.sh pytho…"   46 hours ago        Up 6 minutes                                        hassio_supervisor

Is it okay, that i use home-assistant:stable (generic version??) instead of the specific version raspberrypi4-64-homeassistant?
Anything else i should do?

Thank you in advance :smiley:

So you fixed it :grinning: .I have no experience with docker - containers.
Till sommer I used homeassistant in venv on original Raspbian - Debian. It worked quite stable an you are the full master of the installation. But in the end the quality, the spirit of the developers and the convenience from Hass.io Image convinced me. Now I have more time do dive into the deep of homeassistant :wink:

The next time you restart, your configuration will be gone.

You started up a standard Home Assistant container, not connected to HASSIO.

How should this be fixed?

How should what be fixed?

what: every time at a (re)start the correct configuration is used.

So you’re saying you tried to “fix” it by running the docker command manually like the other guy did?

If so, you just reboot. Let hassio handle what it’s supposed to handle.