I have used the Raspberry Pi Imager Application and installed Home Assistant on both a Raspberry Pi 5 and Raspberry Pi 4.
Version: 12.1 & 12.3 on the Raspberry Pi 5
Version: 12.3 on the Raspberry Pi 4
Both boot up fine until:
[supervisor.docker.interface] Can’t install ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2024.5.4: 500 Server Error for … fromImage=ghcr.io%2Fhome-assistant%2Fraspberrypi4-64-homeassistant&platform=linux%2Farm64: Internal Server Error (“Get … request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”)
Had to slightly edit the message because of the community limitations on links in a post
The Raspberry Pi 5 installs fail on an almost identical line
At this point, the OS keeps looping on this line and never gets any farther.
When I had installed 12.1 on the Pi 5, it did see that there was a 12.3 update (which suggests that there is at least some connectivity) I think the dns and internet connection are working, but maybe not. It is definitely connected to my router which is definitely connected to the internet.
I do appreciate the attempts to help. Just frustrating to not even be able to start up home assistant
Assuming this is a connection/dns issue, how do I debug this on the PI? I have access to the console, but it is an unfamiliar environment for me? Is there a way to pull up a bash shell from the console?
As @francisp mentions, this looks like a DNS issue.
However:
This is adjusting the DNS server on Supervisor level (used by Home Assistant Core, Add-ons etc.).
The problem is on the OS side. When your router is not providing a default DNS server, the OS should fall back to 1.1.1.1 automatically. But maybe this DNS server is blocked by your router/ISP/country. To double check if 1.1.1.1 is indeed not available, you can explicitly set this DNS server using (replace x with a IP which is not assigned by your routers DHCP range):
ha network update end0 --ipv4-method static --ipv4-address 192.168.41.x/24 --ipv4-nameserver 1.1.1.1
Alternatively, try a different DNS server, e.g. the Google DNS server:
ha network update end0 --ipv4-method static --ipv4-address 192.168.41.x/24 --ipv4-nameserver 8.8.8.8
You can use ha supervisor restart to make the Supervisor start again and try to fetch Home Assistant Core.