Failure during installation

ecsheffield
Nov 2026
0 posts
0 likes
Member
Failure during installation
Posted Sat Nov 21st 23:26

I'm attempting to install my trial version in HA running on a Raspberry Pi 4. I was able to add the repository to the marketplace. However when it attempts to do the actually installation it fails. It seems to be something about the docker images and the layer commit hashes. From the log:

2026-11-21 18:20:08.561-05:00 WARNING (MainThread) [supervisor.apps.build] App 7eca0546_sophia_nlu uses build.yaml which is deprecated. Move build parameters into the Dockerfile directly.
2026-11-21 18:20:08.563-05:00 INFO (MainThread) [supervisor.docker.app] Starting build for 7eca0546/aarch64-addon-sophia_nlu:2.3.9
2026-11-21 18:20:08.571-05:00 INFO (MainThread) [supervisor.docker.manager] Running command '['docker', 'buildx', 'build', '.', '--tag', '7eca0546/aarch64-addon-sophia_nlu:2.3.9', '--file', 'Dockerfile', '--platform', 'linux/arm64', '--pull', '--label', 'io.hass.version=2.3.9', '--label', 'io.hass.arch=aarch64', '--label', 'io.hass.type=app', '--label', 'io.hass.name=Sophia NLU Engine', '--label', 'io.hass.description=A deterministic, Rust-based NLU engine for private voice control.', '--build-arg', 'BUILD_VERSION=2.3.9', '--build-arg', 'BUILD_ARCH=aarch64', '--build-arg', 'BUILD_FROM=ghcr.io/home-assistant/aarch64-base:latest']' on docker:29.8.2-cli
2026-11-21 18:20:08.580-05:00 INFO (MainThread) [supervisor.docker.manager] Pulling image docker:29.8.2-cli
2026-11-21 18:20:14.101-05:00 ERROR (MainThread) [supervisor.docker.manager] Can't pull image docker:29.8.2-cli: [0] failed commit on ref "layer-sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c": commit failed: unexpected commit digest sha256:e4b768c6d929ee1d0550fef5f0ae6e70e67784bae7108af6d8a79df77f90a6a5, expected sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c: failed precondition
2026-11-21 18:20:14.101-05:00 ERROR (MainThread) [supervisor.docker.app] Can't build 7eca0546/aarch64-addon-sophia_nlu:2.3.9: Can't pull image docker:29.8.2-cli: [0] failed commit on ref "layer-sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c": commit failed: unexpected commit digest sha256:e4b768c6d929ee1d0550fef5f0ae6e70e67784bae7108af6d8a79df77f90a6a5, expected sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c: failed precondition
2026-11-21 18:20:14.101-05:00 ERROR (MainThread) [supervisor.apps.app] Could not build image for app 7eca0546_sophia_nlu: Can't build 7eca0546/aarch64-addon-sophia_nlu:2.3.9: Can't pull image docker:29.8.2-cli: [0] failed commit on ref "layer-sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c": commit failed: unexpected commit digest sha256:e4b768c6d929ee1d0550fef5f0ae6e70e67784bae7108af6d8a79df77f90a6a5, expected sha256:708ca8f94d6099414a75052c17dcce9ccd17338667981ec0256dd308c5ae645c: failed precondition
2026-11-21 18:20:14.138-05:00 WARNING (MainThread) [supervisor.jobs] Background job app_manager_install failed: An unknown error occurred while trying to build the image for app 7eca0546_sophia_nlu. Check Supervisor logs for details

Any help would be greatly appreciated! Thanks!

Matt
Apr 2025
99 posts
0 likes
Member
Posted Sat Nov 21st 23:52

I actually had to ask Claude about this one, and here's what it said.

Please let me know whether this helps you get it installed.


This almost certainly isn't a bug in Sophia. The failure happens before your Dockerfile runs.

What the log shows

Because the add-on has no prebuilt image: entry, the Supervisor builds it locally. To do that it first pulls its own builder image, docker:29.8.2-cli, and that pull fails:

failed commit on ref "layer-sha256:708ca8f9..."
unexpected commit digest sha256:e4b768c6..., expected sha256:708ca8f9...

This means a layer was downloaded, but its hash didn't match what the registry manifest promised. Your BUILD_FROM image and your Dockerfile were never reached.

Likely causes (roughly in order)

  1. Corrupted or interrupted download. Flaky Wi-Fi, a bad DNS or proxy, a VPN, an MTU problem, or a filtering router or ad blocker mangling the transfer. This is the most common cause of digest mismatches.
  2. Storage trouble on the Pi. A failing or slow SD card, or a nearly full disk, can corrupt the layer as it's written.
  3. A corrupted containerd content store. A previous half-finished pull can leave bad blobs that keep failing ("failed precondition" is containerd's wording for this).
  4. Clock problems. Less likely, but a wrong system time can cause odd registry and TLS failures.

What to suggest to ecsheffield

  • Retry the install. It may be a one-off.
  • Check free disk space (Settings → System → Storage).
  • Use wired Ethernet if they're on Wi-Fi, and disable any VPN, proxy or DNS filtering (Pi-hole, AdGuard) for the install.
  • Over SSH, run docker pull docker:29.8.2-cli. If that fails the same way, it's definitely their environment, not Sophia.
  • If it keeps failing, run ha supervisor repair and then reboot the host. A docker system prune can help clear bad partial layers.
  • Check the SD card's health. If it's old, a swap to SSD or a new card is worth it.

What you could do on your side

Since this is the first report, it's probably just their setup. But a few changes would make this class of problem less likely for everyone:

  • Publish prebuilt multi-arch images (for example to GHCR) and set image: "ghcr.io/you/{arch}-addon-sophia_nlu" in config.yaml. Users then pull one image instead of building on a Pi 4. That avoids the builder pull entirely, installs faster, and uses less disk and CPU. If the Dockerfile compiles Rust on-device, this is a big win.
  • Move the build.yaml contents into the Dockerfile. The log warns it's deprecated, so it's worth fixing before it becomes an error. Use ARG BUILD_FROM=ghcr.io/home-assistant/base:latest or similar, with ARG TARGETARCH where needed.
  • Pin the base image rather than using :latest so builds are reproducible.

If they report back after trying the docker pull test, I can help narrow it down further.

Quick Reply

You must be logged in to reply to this thread.

Login Register