Internal Server Error- Fresh Install

Hi all,

Posting here to document my attempts to resolve this issue, hopefully it can help other users with a similar issue. Thanks to mods who have helped me get this far.

I have a fresh install of HA that I cannot access through the browser by any method. It is listed as a wired (LAN) connection in my router UI and responds to pings, but that is all. I have tried:

  • 15-20 re-flashes
  • several re-downloads of 32bit and 64 bit images
  • several power supplies
  • several SD cards
  • several SD card readers
  • wifi and LAN install attempts
  • specifically allowing TCP traffic to port 8123 as per this guide
  • disabling windows firewall altogether

Debugging using this guide yielded the following report:

-- Logs begin at Fri 2018-06-22 11:11:49 UTC. --
Jun 22 11:47:10 hassio hassos-supervisor[552]: 18-06-22 11:47:10 WARNING (MainThread) [hassio.homeassistant] Fails install landingpage, retry after 30sec
Jun 22 11:47:40 hassio hassos-supervisor[552]: 18-06-22 11:47:40 INFO (SyncWorker_11) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag landingpage.
Jun 22 11:47:50 hassio hassos-supervisor[552]: 18-06-22 11:47:50 ERROR (SyncWorker_11) [hassio.docker.interface] Can't install homeassistant/raspberrypi3-homeassistant:landingpage -> 500 Server Error: Internal Server Error ("Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: read udp 192.168.1.103:42324->192.168.1.1:53: i/o timeout").

Would appreciate some pointers from more experienced folks. I’ve had HA working in the past and it seemed great, but I’m not sure I want to automate my whole life on something that breaks on a fresh install…

This appears to be a DNS lookup issue?

It appears that it can’t resolve the URL required to download hassio images.

1 Like

Thanks FM, I appreciate you taking the time.

It seems to be DNS problem associated with docker. This article suggests that these kind of errors are somewhat commonplace.

Am I able to run the kinds of tests they suggest for docker inside Hassos? This is my first foray into anything command-line related so please excuse the dumb questions. I don’t need the problems solved for me, just the right direction

You should be able to, since HassOS is just running Docker, the commands to test appear to be Docker only

Unless I am doing something wrong, I don’t seem to be able use the commands they suggest

hassio > $ docker run busybox ping -c 1 192.203.230.10
Error: unknown command "$" for "hassio"
Run 'hassio --help' for usage.
FATA[0000] Error while executing rootCmd: unknown command "$" for "hassio"

hassio > login
# $ docker run busybox ping -c 1 192.203.230.10
/bin/ash: $: not found

Pinging any ip address from within hassos is unsuccessful

hassio > login
# ping 8.8.8.8
No response from 8.8.8.8

Though I’m not sure that really tells me much more than I already knew
Is there a standard method for troubleshooting DNS errors using hassos?

$ isn’t a command. That indicates you are at a prompt.

If you can’t ping an IP address, it has nothing to do with DNS. Pinging an IP doesn’t involve DNS at all.

Thanks for that. I’ve been successfully trying a few docker diagnostic commands. Again not sure what they tell me yet

docker run busybox ping 192.203.230.10
Unable to find image 'busybox:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: read udp 192.168.1.103:54976->192.168.1.1:53: i/o timeout.

# nslookup index.docker.io
;; connection timed out; no servers could be reached

They are telling you the network is broken. Your device has no access to the outside world. It can’t ping an IP outside of it’s network (can you ping your router?), and it will never resolve any hostnames/DNS if you don’t fix the networking.

Thanks for your reply and sorry about the delay. I ended up giving up temporarily and had to re-image to try again.

After a reinstall I can successfully ping the router and an external IP (8.8.8.8) from inside the pi. All other devices on the network can connect to the internet just fine.

Checking the supervisor logs, I am getting very different reports:

Dec 10 22:34:30 hassio hassos-supervisor[1140]: 19-12-10 22:34:30 INFO (MainThre                                                                                                             ad) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
Dec 10 23:21:10 hassio hassos-supervisor[1140]: 19-12-10 23:21:10 INFO (MainThread) [hassio.host.info] Update local host information
Dec 10 23:21:10 hassio hassos-supervisor[1140]: 19-12-10 23:21:10 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
Dec 10 23:21:10 hassio hassos-supervisor[1140]: 19-12-10 23:21:10 INFO (MainThread) [hassio.host.services] Update service information
Dec 10 23:21:10 hassio hassos-supervisor[1140]: 19-12-10 23:21:10 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
Dec 10 23:21:11 hassio hassos-supervisor[1140]: 19-12-10 23:21:11 INFO (MainThread) [hassio.host.network] Update local network DNS information
Dec 10 23:21:11 hassio hassos-supervisor[1140]: 19-12-10 23:21:11 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
Dec 10 23:34:30 hassio hassos-supervisor[1140]: 19-12-10 23:34:30 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/hassio-addons/repository repository
Dec 10 23:34:30 hassio hassos-supervisor[1140]: 19-12-10 23:34:30 INFO (MainThread) [hassio.store.git] Update add-on https://github.com/home-assistant/hassio-addons repository
Dec 10 23:34:32 hassio hassos-supervisor[1140]: 19-12-10 23:34:32 INFO (MainThread) [hassio.store] Load add-ons from store: 62 all - 0 new - 0 remove

I’m pretty stumped- Same image file, same machine, same SD card and same router, same settings. However, I still can’t access the frontend.

Resetting the pi changed the supervisor output. Still can’t access the UI

-- Logs begin at Fri 2018-06-22 11:11:49 UTC. --
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (MainThread) [__main__] Run Hass.io
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (MainThread) [hassio.addons] Phase 'system' start 0 add-ons
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (MainThread) [hassio.addons] Phase 'services' start 0 add-ons
Dec 11 00:23:52 hassio hassos-supervisor[592]: 19-12-11 00:23:52 INFO (SyncWorker_3) [hassio.docker.interface] Start homeassistant/raspberrypi3-homeassistant
Dec 11 00:33:57 hassio hassos-supervisor[592]: 19-12-11 00:33:57 WARNING (MainThread) [hassio.homeassistant] Don't wait anymore of Home Assistant startup!
Dec 11 00:33:57 hassio hassos-supervisor[592]: 19-12-11 00:33:57 INFO (MainThread) [hassio.addons] Phase 'application' start 0 add-ons
Dec 11 00:33:57 hassio hassos-supervisor[592]: 19-12-11 00:33:57 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
Dec 11 00:33:57 hassio hassos-supervisor[592]: 19-12-11 00:33:57 INFO (MainThread) [hassio.core] Hass.io is up and running

Also, why would the ip address of Homeassistant be 172.30.32.1 when the pi is listed as 192.168.1.102 in my router

hassio > homeassistant info
arch: armv7
boot: true
custom: false
image: homeassistant/raspberrypi3-homeassistant
ip_address: 172.30.32.1
last_version: 0.102.3
machine: raspberrypi3
port: 8123
ssl: false
version: 0.102.3
wait_boot: 600
watchdog: true

Gday,

Did you have any luck? Im in the same boat but my DNS does work! Any help appreciated

I’m facing similar issue… After starting HomeAutomation server…after few minutes, Internet become inaccessible.

From unix, i ran following commands:

docker stats

This will give me all containers currently running. Then restart the hassio_dsn container using following command.

docker restart <containe_rid>

Internet gets restored. But again after few minutes, internet again becomes inaccessible.

Would really appreciate if anyone can suggest some permanent solution.(I’m new to HA).