core: Error updating ESPHome: Can't install ghcr.io/esphome/esphome-hassio:2023.4.3
The problem
Starting after the ESPHome 2023.3.2 release, updating of the Add-On stopped working. When I attempted to upgrade the ESPHome Add-on after ESPHome 2023.4.0 was released, it started returning an error. I am able to uninstall/reinstall the Add-on but updating always fails.
The error in the Hosts log leads me to believe it’s attempting to download a build for the wrong platform (ARMv6) and failing. I am at a loss on how to troubleshoot this further.
What version of Home Assistant Core has the issue?
2023.4.0+
What was the last working version of Home Assistant Core?
2023.3.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Home Assistant WebSocket API
Link to integration documentation on our website
https://www.home-assistant.io/integrations/websocket_api
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Below are the logs from the latest attempt to update the ESPHome Add-on.
Home Assistant Core logs:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/update.py:169
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:34:54 PM (2 occurrences)
Last logged: 2:35:44 PM
[1704455400] Error updating ESPHome: Can't install ghcr.io/esphome/esphome-hassio:2023.4.3: 404 Client Error for http+docker://localhost/v1.42/images/ghcr.io/esphome/esphome-hassio:2023.4.3/json: Not Found ("No such image: ghcr.io/esphome/esphome-hassio:2023.4.3")
[1521728168] Error updating ESPHome: Can't install ghcr.io/esphome/esphome-hassio:2023.4.3: 404 Client Error for http+docker://localhost/v1.42/images/ghcr.io/esphome/esphome-hassio:2023.4.3/json: Not Found ("No such image: ghcr.io/esphome/esphome-hassio:2023.4.3")
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 52, in _wrapper
raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: Can't install ghcr.io/esphome/esphome-hassio:2023.4.3: 404 Client Error for http+docker://localhost/v1.42/images/ghcr.io/esphome/esphome-hassio:2023.4.3/json: Not Found ("No such image: ghcr.io/esphome/esphome-hassio:2023.4.3")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 981, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 156, in async_install
await entity.async_install_with_progress(version, backup)
File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 417, 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 ESPHome: Can't install ghcr.io/esphome/esphome-hassio:2023.4.3: 404 Client Error for http+docker://localhost/v1.42/images/ghcr.io/esphome/esphome-hassio:2023.4.3/json: Not Found ("No such image: ghcr.io/esphome/esphome-hassio:2023.4.3")
Supervisor Logs:
23-05-03 14:34:05 INFO (SyncWorker_2) [supervisor.docker.interface] Cleanup images: ['ghcr.io/home-assistant/raspberrypi2-homeassistant:2023.4.6']
23-05-03 14:34:50 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 7efd0127
23-05-03 14:34:50 INFO (MainThread) [supervisor.backups.manager] Backing up 7efd0127 store Add-ons
23-05-03 14:34:50 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on 5c53de3b_esphome
23-05-03 14:34:50 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon 5c53de3b_esphome
23-05-03 14:34:51 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug 7efd0127 completed
23-05-03 14:34:51 INFO (SyncWorker_0) [supervisor.docker.addon] Updating image ghcr.io/esphome/esphome-hassio:2023.4.2 to ghcr.io/esphome/esphome-hassio:2023.4.3
23-05-03 14:34:51 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image ghcr.io/esphome/esphome-hassio with tag 2023.4.3.
23-05-03 14:34:53 ERROR (SyncWorker_0) [supervisor.docker.interface] Can't install ghcr.io/esphome/esphome-hassio:2023.4.3: 404 Client Error for http+docker://localhost/v1.42/images/ghcr.io/esphome/esphome-hassio:2023.4.3/json: Not Found ("No such image: ghcr.io/esphome/esphome-hassio:2023.4.3")
Host Logs:
May 03 21:34:53 homeassistant dockerd[473]: time="2023-05-03T21:34:53.828932024Z" level=info msg="Attempting next endpoint for pull after error: no matching manifest for linux/arm/v6 in the manifest list entries"
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (1 by maintainers)
I have the same issue, it was fine up until about version 2023.4.2 and then all subsequent updates have had the issue. What does work is ssh’ing into the host and issuing a docker pull command - eg for latest 2023.5.1 release I just did this:
docker pull ghcr.io/esphome/esphome-hassio:2023.5.1and the pull works fine and then doing the update works without issue, I have now done this about 3 times for different updates. I first thought it might be a platform issue as one of the other posters mentioned, but to me it’s as if the update is not even attempting to pull the image (or the pull silently fails) and then checking to see if the image is there. I do not have any issue with any other component updates, just ESPHome. If it matters I am running on raspberry pi Model B 2v1.2 using Home Assistant OS.
You can use “Advanced SSH & Web Terminal” and disable “Protection mode” in the addon settings. Then you are able to use
dockercommand simply on port 22 without need to log in directly to the host OS like Stephen suggest in the post above.