Home Assistant stuck at preparing screen '500' error proxmox Supervised nuc

Hi, I’ve searched all over and I’m really struggling to find a solution to this problem. I can only find RPi threads.

I’ve got HA 6.0 installed on a VM through Proxmox.
The VM boots fine and in the console I get the Home Assistant CLI which looks to be in a ready state and I can send it commands.
HOWEVER…
If I go into my browser and go to the 8123 page, it constantly says “Preparing Home Assistant”

I use the command “su log” and can see that the setup is stuck in a constant cycle and keeps throwing this error:

ERROR (SyncWorker_2) [supervisor.docker.interface] Can’t install homeassistant/qemux86-64-homeassistant:2021.6.6: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2021.6.6&fromImage=homeassistant%2Fqemux86-64-homeassistant: Internal Server Error (“Get “https://registry-1-.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”).

Can anyone advise of a way round this? I’m completely new to HA and VM’s and I’m ready for launching the NUC out of the window!

Thanks in advance!

EDIT
I used Install Proxmox and virtualize Home Assistant - YouTube to install my VM and HA.
My current HA version is 6.0.
I have my NUC hardwired via ethernet with the wifi switched off (as far as I know).
Not sure if any of these factors have anything to do with it but may help someone help me.

Sounds like your VM has no internet access or DNS isn’t working.
Make sure your network config and bridging is correct.
If you login to the CLI and can ping 8.8.8.8 but not www.google.com then it’s a DNS issue.
edit /etc/resolve.conf and add the correct nameserver.
You can use Google’s, 8.8.8.8

Thanks.
I can’t ping either.
But I can in my PVE.

So I’m sure now that my HA VM can’t get access to the Internet. I’ve just no idea why, or how to fix it (literally a complete day 1 novice…).
I dont know if it is trying to use the wifi) which I’ve turned off in proxmox or the bios (can’t remember…) and thus I need to tell it (somehow) to look for the ethernet.
Or whether it’s got no network config at all and it needs programming in.

Can anyone help me here please?

Send a screenshot of your network config for the VM in Proxmox

Just the network tab? Or run a script and screenshot in the console?
Thanks!

No, just the tab

Does it look like this?


I finally managed to sort out my VPN, so we can compare :slight_smile:

it looks exactly like this except for mine has a tick in Firewall (as per JuanMTech’s install instructions).

So @SimonPth has been a massive help to me in trying to sort this issue, and at ridiculous times in the morning also - can’t thank him enough.
He’s managed to get my HA VM to see the internet again which is excellent.
If I ping Google or 8.8.8.8 I get the message “…is alive!”

Unfortunately I’m still unable to complete the initial setup of HA due to the following error:

21-06-27 10:09:00 INFO (SyncWorker_0) [supervisor.docker.interface] Updating image homeassistant/qemux86-64-homeassistant:landingpage to homeassistant/qemux86-64-homeassistant:2021.6.6
21-06-27 10:09:00 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image homeassistant/qemux86-64-homeassistant with tag 2021.6.6.
21-06-27 10:09:15 ERROR (SyncWorker_0) [supervisor.docker.interface] Can’t install homeassistant/qemux86-64-homeassistant:2021.6.6 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2021.6.6&fromImage=homeassistant%2Fqemux86-64-homeassistant: Internal Server Error (“Get https://registry-1.docker.io.v2/: net/http: request cancelled while waiting for connection (Client.Timeout exceeded while awaiting headers)”)
21-06-27 10:09:15 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant Installation. Retry in 30sec

Can anyone advise?

I’ve tried to downgrade my HA 6.1 version to 5.9 by “os upgrade 5.9” but it says I can’t as I have 6.1 installed.

Thanks a lot - I’m completely tearing my hair out. Spent soooo many hours trying to sort this all week.

The good thing about running Proxmox is that you can just shutdown that VM for the time being and try something else without effecting anything. So, I’d suggest that you try running this

bash -c "$(wget -qLO - https://github.com/tteck/proxmox_haos_vm/raw/master/install.sh)"

from the Proxmox shell and see if it works.

Thanks a lot for this suggestion. If I get stuck again I’ll give this a go.

Oddly enough, after days of tearing my hair out, the problem appears to have gone away (at least for now).

I read a few threads about possible issues with different routers:
1 - a particular brand of 5G router chucked up this problem.
2 - a provider router being used as wire only, then a 3rd party router being used to provide network around the house.

In the second scenario the suggestion was to connect the NUC directly to the provider router for update, before reconnecting it to the 3rd party.

I tried it. I thought it wouldn’t work as the IP’s would be all over the place, but when I reconnected to the 3rd party router - voila! I got the HA initial setup page!

I’m almost certain this problem will rear its head again whenever HA wants an update but for now, I’m set up on V 2021.6.6!