home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.79k stars 654 forks source link

Error updating blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first #4429

Closed BartKoopmans closed 1 year ago

BartKoopmans commented 1 year ago

The problem

when trying to update from 2023.6.3 to 2023.7.1 I get following error: [547849012880] Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first

What version of Home Assistant Core has the issue?

core-2023.6.3

What was the last working version of Home Assistant Core?

core-2023.6.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

Logger: homeassistant.components.websocket_api.http.connection Source: components/hassio/update.py:305 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 12:19:04 (4 occurrences) Last logged: 12:28:29

[547849012880] Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 303, in async_install await async_update_core(self.hass, version=version, backup=backup) File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 52, in _wrapper raise HassioAPIError(data["message"]) homeassistant.components.hassio.handler.HassioAPIError: 'HomeAssistantCore.update' blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first

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 205, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1950, 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 811, in entity_service_call future.result() # pop exception if have ^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, 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 305, in async_install raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (websocket_api) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `websocket_api` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign websocket_api` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


websocket_api documentation websocket_api source (message by IssueLinks)

frenck commented 1 year ago

Hi @BartKoopmans 👋

Could you share the output of the ha info command? (run it from a terminal)

And is there anything else useful maybe in the Supervisor logs?

../Frenck

BartKoopmans commented 1 year ago
[core-ssh ~]$ ha info
arch: aarch64
channel: stable
docker: 23.0.6
features:
- reboot
- shutdown
- services
- network
- hostname
- timedate
- os_agent
- haos
- resolved
- journal
- disk
- mount
hassos: "10.3"
homeassistant: 2023.6.3
hostname: homeassistant
logging: info
machine: raspberrypi4-64
operating_system: Home Assistant OS 10.3
state: running
supervisor: 2023.07.1
supported: true
supported_arch:
- aarch64
- armv7
- armhf
timezone: Europe/Brussels
BartKoopmans commented 1 year ago

Nothing special for the rest @frenck in the logs... Only thing maybe related could be this, however not sure if I saw this as well yesterday when I first tried:

_Logger: homeassistant.components.media_player Source: runner.py:179 Integration: Mediaspeler (documentation, issues) First occurred: 12:18:24 (2 occurrences) Last logged: 12:18:24_

Setup of media_player platform dlnadmr is taking over 10 seconds.

mdegat01 commented 1 year ago

Can you take a look at your supervisor logs? Go to logs and change to supervisor at the top. Please share those from around the time this update failed.

BartKoopmans commented 1 year ago

New to HomeAssistant, apologies ;-) Just tried to update again, this is logged:

23-07-07 18:10:36 INFO (SyncWorker_2) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/aarch64-hassio-cli:2023.05.0 to ghcr.io/home-assistant/aarch64-hassio-cli:2023.06.0 23-07-07 18:10:36 INFO (SyncWorker_5) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/aarch64-hassio-dns:2022.04.1 to ghcr.io/home-assistant/aarch64-hassio-dns:2023.06.2 23-07-07 18:10:36 INFO (SyncWorker_2) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-cli with tag 2023.06.0. 23-07-07 18:10:36 INFO (SyncWorker_1) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/aarch64-hassio-audio:2023.04.2 to ghcr.io/home-assistant/aarch64-hassio-audio:2023.06.0 23-07-07 18:10:36 INFO (SyncWorker_5) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-dns with tag 2023.06.2. 23-07-07 18:10:36 INFO (SyncWorker_0) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/aarch64-hassio-multicast:2022.02.0 to ghcr.io/home-assistant/aarch64-hassio-multicast:2023.06.2 23-07-07 18:10:36 INFO (SyncWorker_1) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-audio with tag 2023.06.0. 23-07-07 18:10:36 INFO (SyncWorker_0) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-multicast with tag 2023.06.2. 23-07-07 18:10:37 ERROR (SyncWorker_5) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-dns:2023.06.2: 500 Server Error for http+docker://localhost/v1.42/images/ghcr.io/home-assistant/aarch64-hassio-dns:2023.06.2/json: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument") 23-07-07 18:10:37 ERROR (MainThread) [supervisor.plugins.dns] CoreDNS update failed 23-07-07 18:10:37 ERROR (SyncWorker_2) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-cli:2023.06.0: 500 Server Error for http+docker://localhost/v1.42/images/ghcr.io/home-assistant/aarch64-hassio-cli:2023.06.0/json: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument") 23-07-07 18:10:37 ERROR (MainThread) [supervisor.plugins.cli] CLI update failed 23-07-07 18:10:37 ERROR (SyncWorker_0) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-multicast:2023.06.2: 500 Server Error for http+docker://localhost/v1.42/images/ghcr.io/home-assistant/aarch64-hassio-multicast:2023.06.2/json: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument") 23-07-07 18:10:37 ERROR (MainThread) [supervisor.plugins.multicast] Multicast update failed 23-07-07 18:10:37 ERROR (SyncWorker_1) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-audio:2023.06.0: 500 Server Error for http+docker://localhost/v1.42/images/ghcr.io/home-assistant/aarch64-hassio-audio:2023.06.0/json: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument") 23-07-07 18:10:37 ERROR (MainThread) [supervisor.plugins.audio] Audio update failed 23-07-07 18:10:37 WARNING (MainThread) [supervisor.jobs] 'HomeAssistantCore.update' blocked from execution, was unable to update plugin(s) cli, dns, audio, multicast and all plugins must be up to date first

frenck commented 1 year ago

Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument

Seems like your storage is having issue.

You could try to restart your machine and run ha supervisor repair from a terminal afterwards.

../Frenck

BartKoopmans commented 1 year ago

success, thanks! I think I'll look for a SSD iso micro SD moving forward.

BartKoopmans commented 1 year ago

Problem solved, exploring further...