Cannot install any core or add-on updates

To add to the continuing fiasco that is core-2022.12, to go with the hideous color changes and the doubling of CPU usage, I can no no longer install any updates.

This morning I got a notification of a new version core-2022.12.4 (currently on 12.3), so clicked install and nothing happed. So, SSH I to the box an do a ‘ha core update’ and after a few minutes of processing I get ‘command completed successfully’. However, still on the old version. So I rebooted the host and tried both methods again, still no luck

I also got a notification for an upgrade to the SSH add-on, same result…

Logger: homeassistant.core
Source: components/hassio/update.py:169
First occurred: 08:00:53 (2 occurrences)
Last logged: 08:02:20

Error executing service: <ServiceCall update.install (c:01GM57ZZ4EQ6EVD5TA52RHAJJ9): entity_id=['update.ssh_web_terminal_update'], backup=False>
Error executing service: <ServiceCall update.install (c:01GM582KHHK3XP7RR0G0JVZTSA): entity_id=['update.ssh_web_terminal_update'], backup=False>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 167, in async_install
    await async_update_addon(self.hass, slug=self._addon_slug, backup=backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 51, in _wrapper
    raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: Can't install ghcr.io/hassio-addons/ssh/aarch64:13.0.0: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=13.0.0&fromImage=ghcr.io%2Fhassio-addons%2Fssh%2Faarch64&platform=linux%2Farm64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1763, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 154, in async_install
    await entity.async_install_with_progress(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 413, in async_install_with_progress
    await self.async_install(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 169, in async_install
    raise HomeAssistantError(f"Error updating {self.title}: {err}") from err
homeassistant.exceptions.HomeAssistantError: Error updating SSH & Web Terminal: Can't install ghcr.io/hassio-addons/ssh/aarch64:13.0.0: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=13.0.0&fromImage=ghcr.io%2Fhassio-addons%2Fssh%2Faarch64&platform=linux%2Farm64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")

So, any ideas ?

It looks like transient error, your machine is trying to download images from GitHub but it is failing

getting something similar when trying to update from 2022.12.1 to 2022.12.4

22-12-13 10:07:03 INFO (SyncWorker_14) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/generic-x86-64-homeassistant with tag 2022.12.4.
22-12-13 10:07:35 ERROR (SyncWorker_14) [supervisor.docker.interface] Can’t install ghcr.io/home-assistant/generic-x86-64-homeassistant:2022.12.4: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=2022.12.4&fromImage=ghcr.io%2Fhome-assistant%2Fgeneric-x86-64-homeassistant&platform=linux%2Famd64: Internal Server Error (“Head “https://ghcr.io/v2/home-assistant/generic-x86-64-homeassistant/manifests/2022.12.4”: dial tcp 140.82.121.33:443: i/o timeout”)
22-12-13 10:07:35 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed

Could it be a rate limit error from github?

I cannot seem to get any official add-on installed, community based ones are installing fine. This occurs on an RPi 4, an ESXi instance and a fresh one I just created half an hour ago.

I have seen several posts with similar behaviour, but not a single solution, so I hope this thread gets some attention and points us to a solution…

Error I get is:

> 2022-12-13 23:27:28.874 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/core_configurator/install - 
> Can't install homeassistant/amd64-addon-configurator:5.4.2: 500 Server Error for 
> http+docker://localhost/v1.41/images/create?tag=5.4.2&fromImage=homeassistant%2Famd64-addon-configurator&platform=linux%2Famd64: 
> Internal Server Error ("error parsing HTTP 408 response body: invalid character '<' looking for beginning of value: 
> "<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"")
```

Can you check the logs of docker service give more information?

From home assistant stand point, it is making a call to local docker service to create image and docker service is failing to do so.

https://docs.docker.com/engine/api/v1.41/#tag/Image/operation/ImageCreate

This one specifically says that, it is failing to reach github endpoints (140.82.121.33) to download the release. Any port or ip restriction you have locally?

I would love to if I knew how to :)…
Keep in mind that I cannot install SSH to get access, so frontend and the HA console is all I have to work with. I will try to find out how to get to the docker service logs on HA.

Could it have something to do with the MTU size? I have a new house with a new ISP and this one uses PPOE on a vlan. MTU is set to 1500 as per their instruction.

Reason I mention this is because I was trying to tinker with docker on a ubuntu VM to run Uptime Kuma following a tutorial (new to linux based stuff and especially docker).
I ran into a similar problem and found some post that mentioned setting MTU for docker network to a low value (1400 I believe). I followed that instruction and it could download the image.

Maybe it is the network indeed, but I have no idea how to set these kind of parameters in HA

this vlan and subnet has allow any to internet. The FW logs show no blocks.

My problem was related to network issues: MTU/MSS in combination with DNS from Google not using the DF flag correctly.

MTU and MSS clamping fixed and changing to Cloudflare for DNS solved the issue and all seems to run well now and all sites are reachable.

Thanks for the help!

1 Like