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

Green: Initial installation fails with "Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3" (Not Found) #4738

Closed
agners opened this issue Nov 30, 2023 · 4 comments
Labels

Comments

@agners
Copy link
Member

agners commented Nov 30, 2023

Describe the issue you are experiencing

Starting a Home Assistant Green, then plugging out power ~3 minutes in, then starting the unit again leads to situation where Home Assistant Green seems not to be able to recover from:

23-11-30 14:46:51 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2023.11.3.
23-11-30 14:46:59 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")
23-11-30 14:46:59 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec

Screenshot from 2023-11-30 14-23-18

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Home Assistant Green start
  2. Unplug power at the "wrong" moment
  3. Start Green again

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

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/udev.sh
[13:22:39] INFO: Using udev information from host
cont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun supervisor (no readiness notification)
services-up: info: copying legacy longrun watchdog (no readiness notification)
s6-rc: info: service legacy-services successfully started
[13:22:39] INFO: Starting local supervisor watchdog...
23-11-30 13:22:44 INFO (MainThread) [__main__] Initializing Supervisor setup
23-11-30 14:22:45 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: green
23-11-30 14:22:45 INFO (MainThread) [supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/aarch64-hassio-supervisor with version 2023.11.6
23-11-30 14:22:45 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state initialize
23-11-30 14:22:45 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-30 14:22:45 INFO (MainThread) [__main__] Setting up Supervisor
23-11-30 14:22:45 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
23-11-30 14:22:45 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.manager] Connected to system D-Bus.
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.agent] Load dbus interface io.hass.os
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
23-11-30 14:22:45 INFO (MainThread) [supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
23-11-30 14:22:46 INFO (MainThread) [supervisor.host.services] Updating service information
23-11-30 14:22:46 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-11-30 14:22:46 WARNING (SyncWorker_0) [supervisor.host.sound] Can't update PulseAudio data: Failed to connect to pulseaudio server
23-11-30 14:22:46 INFO (MainThread) [supervisor.host.network] Updating local network information
23-11-30 14:22:46 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
23-11-30 14:22:46 INFO (MainThread) [supervisor.docker.monitor] Started docker events monitor
23-11-30 14:22:46 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-11-30 14:22:47 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-cli with version 2023.10.0
23-11-30 14:22:47 INFO (MainThread) [supervisor.plugins.cli] Starting CLI plugin
23-11-30 14:22:47 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning hassio_cli application
23-11-30 14:22:47 INFO (MainThread) [supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/aarch64-hassio-cli with version 2023.10.0 - 172.30.32.5
23-11-30 14:22:48 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-dns with version 2023.06.2
23-11-30 14:22:48 INFO (MainThread) [supervisor.plugins.dns] Starting CoreDNS plugin
23-11-30 14:22:48 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning hassio_dns application
23-11-30 14:22:49 INFO (MainThread) [supervisor.docker.dns] Starting DNS ghcr.io/home-assistant/aarch64-hassio-dns with version 2023.06.2 - 172.30.32.3
23-11-30 14:22:49 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
23-11-30 14:22:49 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-audio with version 2023.10.0
23-11-30 14:22:49 INFO (MainThread) [supervisor.plugins.audio] Starting Audio plugin
23-11-30 14:22:49 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning hassio_audio application
23-11-30 14:22:50 INFO (MainThread) [supervisor.docker.audio] Starting Audio ghcr.io/home-assistant/aarch64-hassio-audio with version 2023.10.0 - 172.30.32.4
23-11-30 14:22:50 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-observer with version 2023.06.0
23-11-30 14:22:50 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-multicast with version 2023.06.2
23-11-30 14:22:50 INFO (MainThread) [supervisor.plugins.multicast] Starting Multicast plugin
23-11-30 14:22:50 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning hassio_multicast application
23-11-30 14:22:51 INFO (MainThread) [supervisor.docker.multicast] Starting Multicast ghcr.io/home-assistant/aarch64-hassio-multicast with version 2023.06.2 - Host
23-11-30 14:22:51 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 0 Home Assistant secrets
23-11-30 14:22:51 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/green-homeassistant with version landingpage
23-11-30 14:22:51 INFO (MainThread) [supervisor.homeassistant.core] Starting HomeAssistant landingpage
23-11-30 14:22:51 INFO (SyncWorker_0) [supervisor.docker.manager] Starting homeassistant
23-11-30 14:22:51 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 11.0 / BootSlot A
23-11-30 14:22:53 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
23-11-30 14:22:53 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
23-11-30 14:22:53 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
23-11-30 14:22:54 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 71 new - 0 remove
23-11-30 14:22:54 INFO (MainThread) [supervisor.addons] Found 0 installed add-ons
23-11-30 14:22:54 INFO (MainThread) [supervisor.backups.manager] Found 0 backup files
23-11-30 14:22:54 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
23-11-30 14:22:54 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state setup
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-30 14:22:54 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - setup
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-30 14:22:54 INFO (MainThread) [__main__] Running Supervisor
23-11-30 14:22:54 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
23-11-30 14:22:54 INFO (MainThread) [supervisor.addons] Phase 'initialize' starting 0 add-ons
23-11-30 14:22:54 INFO (MainThread) [supervisor.addons] Phase 'system' starting 0 add-ons
23-11-30 14:22:54 INFO (MainThread) [supervisor.addons] Phase 'services' starting 0 add-ons
23-11-30 14:22:54 INFO (MainThread) [supervisor.core] Skipping start of Home Assistant
23-11-30 14:22:54 INFO (MainThread) [supervisor.addons] Phase 'application' starting 0 add-ons
23-11-30 14:22:54 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
23-11-30 14:22:54 INFO (MainThread) [supervisor.core] Supervisor is up and running
23-11-30 14:22:54 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant setup
23-11-30 14:22:54 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/green-homeassistant:landingpage to ghcr.io/home-assistant/green-homeassistant:2023.11.3
23-11-30 14:22:54 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2023.11.3.
23-11-30 14:22:54 INFO (MainThread) [supervisor.host.info] Updating local host information
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
23-11-30 14:22:54 INFO (MainThread) [supervisor.host.services] Updating service information
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
23-11-30 14:22:54 INFO (MainThread) [supervisor.host.network] Updating local network information
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.module] Create new suggestion create_full_backup - system / None
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.module] Create new issue no_current_backup - system / None
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-11-30 14:22:54 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-11-30 14:22:54 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-11-30 14:22:54 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-11-30 14:22:55 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-11-30 14:22:55 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
23-11-30 14:22:55 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-11-30 14:23:02 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")
23-11-30 14:23:02 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
23-11-30 14:23:32 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/green-homeassistant:landingpage to ghcr.io/home-assistant/green-homeassistant:2023.11.3
23-11-30 14:23:32 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2023.11.3.
23-11-30 14:23:38 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")
23-11-30 14:23:38 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
23-11-30 14:24:08 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/green-homeassistant:landingpage to ghcr.io/home-assistant/green-homeassistant:2023.11.3
23-11-30 14:24:08 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2023.11.3.
23-11-30 14:24:15 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")
23-11-30 14:24:15 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
23-11-30 14:24:45 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/green-homeassistant:landingpage to ghcr.io/home-assistant/green-homeassistant:2023.11.3
23-11-30 14:24:45 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2023.11.3.
23-11-30 14:24:52 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2023.11.3: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")
23-11-30 14:24:52 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
2

System Health information

N/A

Supervisor diagnostics

No response

Additional information

Kernel continuously reports this:

[ 1777.922875] overlayfs: overlapping lowerdir path

Manual pull fails likewise:

# docker pull ghcr.io/home-assistant/green-homeassistant:2023.11.3
2023.11.3: Pulling from home-assistant/green-homeassistant
579b34f0a95b: Already exists
a34d8bb056f4: Already exists
bfcab69cd352: Already exists
5b023a9efaa6: Already exists
1be41ab7b1fd: Already exists
18b7d6887b15: Already exists
1560fe89542e: Already exists
04e32178c96e: Already exists
66eb76fe3481: Already exists
05c9e4c92833: Already exists
c12b1a9e8c74: Already exists
4f4fb700ef54: Already exists
1cb0833299de: Already exists
7ed3998dcd08: Already exists
88068b8a9dd9: Already exists
f3c14ba347b6: Already exists
c4655a22b50d: Already exists
42e1d6602087: Already exists
6f33eb7ce4b6: Already exists
89607cfe5182: Already exists
493593a9a580: Already exists
b9cad01964fa: Already exists
ca97bab40359: Already exists
0fb010223fd4: Extracting  12.95kB/12.95kB
0fb010223fd4: Extracting  12.95kB/12.95kB
5914acd0d1a3: Download complete
804222c0b3c5: Download complete
f4a153e06c6c: Download complete
a65b10db0abf: Download complete
38c6f5c3899b: Download complete
failed to register layer: error creating overlay mount to /mnt/data/docker/overlay2/0411d0e444c59fd326877ab4b4310df7558c406005af1ebe19249d8e610f9aca/merged: too many levels of symbolic links
# ha supervisor repair
Command completed successfully.
23-11-30 14:54:46 INFO (MainThread) [supervisor.core] Starting repair of Supervisor Environment
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale containers
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale images
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale builds
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale volumes
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale networks
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Fix stale container on hassio network
23-11-30 14:54:46 INFO (SyncWorker_4) [supervisor.docker.manager] Fix stale container on host network
23-11-30 14:54:46 INFO (MainThread) [supervisor.addons] Found 0 add-ons to repair
23-11-30 14:54:46 INFO (MainThread) [supervisor.supervisor] Repairing Supervisor 2023.11.6
23-11-30 14:54:46 INFO (MainThread) [supervisor.core] Finished repair of Supervisor Environment

Pulling after the command still fails.

Also, the image is not yet listed in the Docker storage:

# docker image ls
REPOSITORY                                         TAG           IMAGE ID       CREATED        SIZE
ghcr.io/home-assistant/aarch64-hassio-supervisor   2023.11.6     9d39069cf04e   2 days ago     403MB
ghcr.io/home-assistant/aarch64-hassio-supervisor   latest        9d39069cf04e   2 days ago     403MB
ghcr.io/home-assistant/aarch64-hassio-audio        2023.10.0     0e25e5266546   4 weeks ago    162MB
ghcr.io/home-assistant/green-homeassistant         landingpage   afd748e8487a   6 weeks ago    6MB
ghcr.io/home-assistant/aarch64-hassio-cli          2023.10.0     4c05e98d6e3b   7 weeks ago    129MB
ghcr.io/home-assistant/aarch64-hassio-dns          2023.06.2     9dd40b04adb7   5 months ago   140MB
ghcr.io/home-assistant/aarch64-hassio-multicast    2023.06.2     b06077afe00c   5 months ago   125MB
ghcr.io/home-assistant/aarch64-hassio-observer     2023.06.0     1b4771b44876   5 months ago   7.49MB
@agners agners added the bug label Nov 30, 2023
@agners
Copy link
Member Author

agners commented Nov 30, 2023

Trying to pull the image while having this corruption actually leads to the "Not Found" error from Docker. So we probably can't improve error handling much here 😢

>>> import docker
>>> def pull_docker_image(image_name):
...     client = docker.from_env()
...     try:
...         image = client.images.pull(image_name)
...         print(f"Successfully pulled image: {image_name}")
...     except docker.errors.APIError as e:
...         print(f"Error pulling image: {e}")
... 
>>> # Replace the image name with the one you provided
>>> image_to_pull = "ghcr.io/home-assistant/green-homeassistant:2023.11.3"
>>> 
>>> pull_docker_image(image_to_pull)
[ 1479.965199] overlayfs: overlapping lowerdir path
Error pulling image: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2023.11.3/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2023.11.3")

@agners
Copy link
Member Author

agners commented Nov 30, 2023

Further investigation on my corrupted device I've concluded that Docker is not able to recovery from this situation. It seems that Docker isn't really aware of the (partially) downloaded image, and the corrupted layer/fragments are just stuck in the overlay2 storage. Downloading any image which has layers based on those corrupted layers fails.

ℹ️ ℹ️ ℹ️
The cleanest way to resolve this problem for Home Assistant OS installations is to start over. If you have a running and configured system, take a full backup, download the backup and start with a new installation. The backup does not contain Docker layers, hence the new installation will guaranteed to have a clean slate.
ℹ️ ℹ️ ℹ️


That being said, some technical details: The corruption seems to be a known issue in upstream Docker, see moby/moby#42964.

With hints from the above issue, I was able to come up with a script which clears the corrupted layer metadata/cache ids:
https://gist.github.com/agners/c5ae781c828dbf76c4cc1e4588c034a5

The script can be used from the Home Assistant OS shell available on port 22222 (see SSH access to the host). With the following command it can be executed on the shell directly:

⚠️ ⚠️ ⚠️ I recommend to make a backup of your system, this script potentially corrupts the Docker storage such that your system won't start anymore 🙈 I've tested this script on a single machine, and it worked, but that doesn't mean it works generally!

sh <(curl -fsSL https://gist.githubusercontent.com/agners/c5ae781c828dbf76c4cc1e4588c034a5/raw/bcb623cc2fa5da0a6864b9c72e2ac8ccbe9316c3/prune-corrupted-layer-metadata.sh)

It will print something like:

WARNING: This script attempts to clear corrupted Docker overlay2 storage metadata.
Use with caution, as it may result in data loss. Ensure you have backups before running this script.
Found 16 cache IDs with size 0. Do you want to continue and delete them? (yes/no)
yes
Summary: Deleted 16 cache directories and 16 LayerDB directories.

ℹ️ After running the script a system reboot is necessary!


There is a bugfix for this problem merged upstream, see moby/moby#46703. This is part of Docker 24.0.7, which will be in Home Assistant OS 11.2 (see home-assistant/operating-system#2883). However, this fix does not address already corrupted images/layers! So that means if you are in this state, HAOS 11.2 will not fix your problem. But future updates, even in the face of power outages should no longer lead to such corruptions.

While the error appears in Supervisor, this is mostly a Operating System issue. But from Supervisor side not a lot can be done here. Since a mitigation is documented, and a fix to make this issue not occur anymore will be in HAOS 11.2, I close this as resolved.

@jensjakobandersen
Copy link

This worked for me, with the addition of running ha banner from the command line to get started - and waiting patiently for the HAOS to update the supervisor.

Thank you very much @agners .

I have closed #4709

@Daz42
Copy link

Daz42 commented Dec 6, 2023

Unfortunately didn't work for me, I got:

Error: Directory /mnt/data/docker/overlay2 does not exist.

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

3 participants