Unable to install HAOS on raspberry pi 4 with micro sd card

Hi All

This morning I started what I though would be a pretty fast and simple process to install HAOS on the raspberry pi I bought for this task months ago. I currently run a virtual instance of HA ona SYnology NAS but have decided to move it to a dedicated pi instead.

I have tried installation probably 5 times now and it keeps failing. Initially I was trying to restore a backup from my existing install rahter than creating users ect but I’ve abandoned that now.

I was also initially trying to install to a USB SSD drive (using the argon 40 case) but I assumed this was probably the issue so I have abandoned that as well.

Now I am just trying to get HAOS running from a freshly flashed micro SD card using the Pi imager (the images says it’s installing 2023-06-15). I updated the pi firmware and I ensured that it’s default boot is from the SD card.

I get to the onboarding screen in the webpage that says Preparing Home Assistant. Some of the logs that stood out to me:

[supervisor.utils.whoami] Whoami service failed with SSL verification: Cannot connect to host services.home-assistant.io:443 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1002)’)]

[supervisor.core] Fatal error happening on load Task <coroutine object Core._adjust_system_datetime at 0x7fa83505e0>: cannot access local variable ‘data’ where it is not associated with a value

23-04-04 10:58:30 ERROR (MainThread) [supervisor.store] Can’t add repository core due to ‘GitRepo.clone’ blocked from execution, no supervisor internet connection

at at the bottom and endless cycle of:

23-04-04 11:07:42 WARNING (MainThread) [supervisor.jobs] ‘Updater.fetch_data’ blocked from execution, no supervisor internet connection
23-04-04 11:07:42 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec

At this point I really can’t see what I have done wrong. I have what I would expect to be basically the most common pi setup…

I have searched for all these errors and have found people with similar error messags but mostly it seems to be when people are updating and the fixes involve using the cli which I can’t get to.

Help much appreciated!

1 Like

Looks like the RPI4 can’t reach the internet.
Can you contact the local IP adress of Home Assistant?

Yes, my pi is headless. I am looking at the webpage served by the pi on my desktop. Desktop has internet connection.

If I leave the onboarding screen running for long enough it does eventually give me a screen where I can create an account. If I create an account and go into settings there is a message:

Unhealthy system - Setup failed
System is currently unhealthy because setup failed to complete. There are a number of reasons this can occur, use the link to learn more and how to fix this.

I did see this issue before and the more info screen talks about DBUS - I thought that this might be due to the USB SSD drive I was using but I am getting the same issue on the SD card.

The RPi Foundation Imager is usually rather good at getting recent OS images directly from publishers, and checking they are written correctly. Note the hidden advanced menu which doesn’t work with HASS, but is good for RPiOS.

To test the hardware and network, I’ve a suggestion.

Use the imager to install the generic RPi OS with desktop to a uSD card, then add a screen and keyboard.

Check the desktop has Internet access via a browser, and note the IPv4 address (terminal, ip a) as it might be useful later (although mDNS usually works fine).

I’m guessing you are using a wired network, and have a local DHCP server, so the hostname will change, but the IPv4 and IPv6 will likely be the same (as the MAC is unchanged - same hardware)
Also look for any signs of PSU brownouts (thunder icon appears), and disk issues. As you mention an Argon case, that seems less likely than a bad uSD.

Once you have a working device on RPiOS, try installing to SSD in the Argon case, then move to HASSOS.

1 Like