Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor fails to update Core 2022.4.1 to Core 2022.4.5 due to "Internal Server Error" and "read: connection refused". #3582

Closed
tdejneka opened this issue Apr 20, 2022 · 1 comment
Labels

Comments

@tdejneka
Copy link

Describe the issue you are experiencing

Supervisor fails to upgrade Core 2022.4.1 to Core 2022.4.5 due to "Internal Server Error" and "read: connection refused" (see logs below).

Host machine is Raspberry Pi3 running Home Assistant Supervised on Debian 10 with latest Supervisor and Core 2022.4.1.

What is the used version of the Supervisor?

supervisor-2022.04.0

What type of installation are you running?

Home Assistant Supervised

Which operating system are you running on?

Debian

What is the version of your installed operating system?

Debian GNU/Linux 11 (bullseye)

What version of Home Assistant Core is installed?

core-2022.4.1

Steps to reproduce the issue

Simply agree to perform upgrade. Operation fails moments after clicking Install button. Errors reported in Supervisor's log (see below).

Screenshot from 2022-04-20 12-30-15

Anything in the Supervisor logs that might be useful for us?

22-04-20 12:02:27 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2022.4.5
22-04-20 12:02:27 INFO (SyncWorker_3) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/raspberrypi3-homeassistant:2022.4.1 to ghcr.io/home-assistant/raspberrypi3-homeassistant:2022.4.5
22-04-20 12:02:27 INFO (SyncWorker_3) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/raspberrypi3-homeassistant with tag 2022.4.5.
22-04-20 12:02:27 ERROR (SyncWorker_3) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/raspberrypi3-homeassistant:2022.4.5: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2022.4.5&fromImage=ghcr.io%2Fhome-assistant%2Fraspberrypi3-homeassistant&platform=linux%2Farm64: Internal Server Error ("Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io on [::1]:53: read udp [::1]:43736->[::1]:53: read: connection refused")
22-04-20 12:14:34 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed

Additional information

No response

@tdejneka tdejneka added the bug label Apr 20, 2022
@tdejneka
Copy link
Author

The wired connection profile named "Supervisor eth0" lacked an entry in its DNS servers field. Without a DNS server address, the machine was unable to resolve anything (confirmed when the machine couldn't even resolve deb.debian.org during an attempt to run apt update).

I know I never modified the connection profile so some recent update must have. I can't say for sure whether it was a Debian update or a Supervisor update but something definitely removed the reference to the DNS server.

I ran sudo nmtui and here's the screenshot showing the missing entry.

Screenshot from 2022-04-23 10-06-14

I added my local DNS server's address, restarted the host machine, and then it was able to resolve deb.debian.org and ghcr.io. Afterwards, I was able to upgrade to 2022.4.6.

More information about the debugging process here:
https://community.home-assistant.io/t/supervisor-fails-to-update-core-2022-4-1-to-core-2022-4-5-due-to-internal-server-error-and-read-connection-refused/414046/4?u=123

@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant