Constant failure while trying to install fresh Hassio

Hi Everyone,
For some time I hade a very well running os which worked fine but at some point (somewhere after I upgraded to v5.8) things started to work very weird (i.e. the whether addon just disappeared and I couldn’t brig it back) so I have decided to install fresh version.

The issue is that each install get stuck and the installation process in never ends (even after few hours).
(See log below)

I have the following setup:
RBP 4
4Gb RAM
SD card - Sandisk ultra 64Gb class 10
Windows OS

I did the following steps:

  1. Download v5.9 from the official site
  2. Format the SD card to FAT
  3. Flash the version using Balena
  4. Add my Wifi settings in the relevant file and place it in the correct folder hierarchy
  5. The installation started, I saw the installation web page in my browser

I have also tried :

  1. Flash different versions (4.2,5.3,5.5,5.6,5.8)
  2. Flash using wired connection

The logs I get:

Preparing Home Assistant
[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.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing... 
[10:44:21] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:44:21] INFO: Starting local supervisor watchdog...
Initializing Supervisor setup
Can't find Supervisor network, creating a new network
Initializing Supervisor Sentry
Creating Supervisor Add-on data folder at '/data/addons/data'
Attaching to Supervisor homeassistant/armv7-hassio-supervisor with version 2020.11.0
Connecting Supervisor to hassio-network
Setting up Supervisor
Starting API on 172.30.32.2
Updating local host information
Updating service information
Updating local network information
Updating PulseAudio information
Loading AppArmor Profiles: {'hassio-supervisor'}
Reloading local service hassos-apparmor.service
Attaching to homeassistant/armv7-hassio-dns with version 2020.11.0
Starting CoreDNS plugin
Starting DNS homeassistant/armv7-hassio-dns with version 2020.11.0 - 172.30.32.3
Updated /etc/resolv.conf
Attaching to homeassistant/armv7-hassio-audio with version 17
Starting Audio plugin
Starting Audio homeassistant/armv7-hassio-audio with version 17 - 172.30.32.4
Attaching to homeassistant/armv7-hassio-cli with version 2020.10.1
Starting CLI plugin
Starting CLI homeassistant/armv7-hassio-cli with version 2020.10.1 - 172.30.32.5
Attaching to homeassistant/armv7-hassio-observer with version 2020.10.1
Starting observer plugin
Starting Observer homeassistant/armv7-hassio-observer with version 2020.10.1 - 172.30.32.6
Attaching to homeassistant/armv7-hassio-multicast with version 3
Starting Multicast plugin
Starting Multicast homeassistant/armv7-hassio-multicast with version 3 - Host
Fetching update data from https://version.home-assistant.io/stable.json
cli does not have the latest version 2020.11.1, updating
Updating image homeassistant/armv7-hassio-cli:2020.10.1 to homeassistant/armv7-hassio-cli:2020.11.1
Downloading docker image homeassistant/armv7-hassio-cli with tag 2020.11.1.
Can't install homeassistant/armv7-hassio-cli:2020.11.1 -> 500 Server Error: Internal Server Error ("Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)").
CLI update failed
Can't update cli to 2020.11.1, the Supervisor healthy could be compromised!
Fetching update data from https://version.home-assistant.io/stable.json
Can't fetch versions from https://version.home-assistant.io/stable.json: Cannot connect to host version.home-assistant.io:443 ssl:default [Name does not resolve]
Loaded 0 Home Assistant secrets
Attaching to homeassistant/raspberrypi4-homeassistant with version landingpage
Starting HomeAssistant landingpage
Update pulse/client.config: /data/tmp/homeassistant_pulse
Starting Home Assistant homeassistant/raspberrypi4-homeassistant with version landingpage
Detect HassOS 5.5 / BootSlot A
Cloning add-on https://github.com/hassio-addons/repository repository
Cloning add-on https://github.com/home-assistant/hassio-addons repository
Loading add-ons from store: 66 all - 66 new - 0 remove
Found 0 installed add-ons
Found 0 snapshot files
Loaded 0 messages
Loaded 0 ingress sessions
Can't update Home Assistant access token!
Running Supervisor
Rauc: A - marked slot kernel.0 as good
Update Supervisor to version 2020.12.7
Downloading docker image homeassistant/armv7-hassio-supervisor with tag 2020.12.7.
Can't install homeassistant/armv7-hassio-supervisor:2020.12.7 -> 500 Server Error: Internal Server Error ("Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)").
Update of Supervisor failed!
Can't update Supervisor! This will break some Add-ons or affect future version of Home Assistant!
Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
Phase 'AddonStartup.SYSTEM' starting 0 add-ons
Phase 'AddonStartup.SERVICES' starting 0 add-ons
Phase 'AddonStartup.APPLICATION' starting 0 add-ons
All core tasks are scheduled
Started Supervisor hardware monitor
Supervisor is up and running
Home Assistant setup
Updating local host information
Updating image homeassistant/raspberrypi4-homeassistant:landingpage to homeassistant/raspberrypi4-homeassistant:2020.12.1
Downloading docker image homeassistant/raspberrypi4-homeassistant with tag 2020.12.1.
Fetching update data from https://version.home-assistant.io/stable.json
Updating service information
Updating local network information
Updating PulseAudio information
Can't install homeassistant/raspberrypi4-homeassistant:2020.12.1 -> 500 Server Error: Internal Server Error ("Get https://registry-1.docker.io/v2/homeassistant/raspberrypi4-homeassistant/manifests/2020.12.1: Get https://auth.docker.io/token?scope=repository%3Ahomeassistant%2Fraspberrypi4-homeassistant%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)").
Error on Home Assistant installation. Retry in 30sec

Thanks for your help

Can you select your code and hit the code button image?

Sorry but I’m not sure I understand what you meant to.
What I added is a piece of the log that I see in the installation web page.
The other piece is just some infinite loop of:
“can’t install homeassistant/raspberrypi4-homeassistant:2020.12.1 -> 500 Server Error: Internal Server Error (“Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”).
Error on Home Assistant installation. Retry in 30sec”

Oops, I meant logs, not code. There’s a button inside of the toolbar here:


If you edit your post, select the log, and then hit the button that looks like </>, then the logs will look better.

Yeh sorry, done.
Please take a look above.
Really appreciate any help.

It looks like it can’t connect to the DNS server.

Yes but why? how can I know what is the root cause and how to solve it.
Is it related to my router?

There are two URLs shown within the error message.

The second URL gets a token:

https://auth.docker.io/token?scope=repository%3Ahomeassistant%2Fraspberrypi4-homeassistant%3Apull&service=registry.docker.io

Which it supplies to the first URL:

https://registry-1.docker.io/v2/homeassistant/raspberrypi4-homeassistant/manifests/2020.12.1

If I try both of the URLs (in my browser), I get a response (in JSON format). Do you get a response when you try them in your browser?

Yes I am, the first one indeed returns some token while the second one return some error which related to authentication (I guess its because I didn’t transfer the token)

Well that seems promising and suggests there’s no problem resolving the URLs on your local network.

Another conclusion that I just figured out.
If I use my phone as access point somehow it works, means that the following setup works fine:

Router -> Phone (as AP which use the internet from the router) ->RBP

While the other setup cause authentications issues:
Router -> RBP

Any ideas what lead to that behavior?

I had the same (sort off):

After resetting my modem (which wasn’t doing anything, nor blocking) twice it got solved. No clue why. I’ve seen somebody else having issues with their modem (Fritzbox) but he was located in germany.

Till today idk what the cause of this is. You might want to check if resetting modem helps you?

I found also that is coming and going.
Will try to dig into that.