LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Sandbox images can't be pulled

Open Fr4nzD13trich opened this issue 6 days ago • 2 comments

LocalAI version: 5.0.1

Environment, CPU architecture, OS, and Version:

Linux Devuan Excalibur (Trixie based) Host, LocalAI in Docker

Describe the bug

Sandbox (KVM) fails to pull images from quay.io with error MANIFEST_UNKNOWN: manifest unknown due to a mismatch in digests. Looking through the sandbox-guest repo I have searched for this particular tag, which I couldn't find there. Also trying to pull it directly from the host returned:

Error response from daemon: manifest for quay.io/go-skynet/sandbox-guest@sha256:4374535ce9bbd911c208cf221fb052613cf3cc00f3008fa9da36f88b756ef5fc not found: manifest unknown: manifest unknown

This particular image is "Base", though all others fail as well, whilst I'm able to pull tags/digests I have actually found inside the repo.

In Sandbox WebUI settings it states that kvm is ready by the way.

To Reproduce

  • Install kvm dependecies on host maschine
  • Setup Local AI with Docker Compose
  • Install Sandbox addon
  • Try to run commands from chat

Expected behavior

Execution of commands from chat

Logs

local-ai  | Nov 25 21:27:22 INFO  [sandbox] Nov 25 21:27:22 WARN  sandbox: image pull failed image="quay.io/go-skynet/sandbox-guest@sha256:4374535ce9bbd911c208cf221fb052613cf3cc00f3008fa9da36f88b756ef5fc" error=chv: ociimage: pull quay.io/go-skynet/sandbox-guest@sha256:4374535ce9bbd911c208cf221fb052613cf3cc00f3008fa9da36f88b756ef5fc: GET https://quay.io/v2/go-skynet/sandbox-guest/manifests/sha256:4374535ce9bbd911c208cf221fb052613cf3cc00f3008fa9da36f88b756ef5fc: MANIFEST_UNKNOWN: manifest unknown; map[] caller={caller.file="github.com/mudler/LocalAI/addons/sandbox/internal/profiles/delivery.go"  caller.L=285 } 

Fr4nzD13trich avatar Nov 25 '26 22:11 Fr4nzD13trich

Thanks for the report and for checking the digests by hand, that pointed straight at the cause.

The 5.0.1 release workflow built the sandbox guest images twice for the same commit, once on the tag push and once on the release event. Both runs pushed the same sha-<commit> tags, and the builds are not byte-identical, so the second push moved the tags. The Sandbox package that was published had been stamped with the first digests. With no tag left pointing at them, quay stopped serving them, which is the MANIFEST_UNKNOWN you saw for base, media and office.

The three images are back: they are tagged v5.0.1, media-v5.0.1 and office-v5.0.1, and quay.io/go-skynet/sandbox-guest@sha256:4374535c… (and the media and office digests) pull again. You don't need to change anything. Retry a command from chat. If the profile shows "failed", wait for the retry backoff (about 5 minutes) or restart LocalAI.

A fix for the release workflow follows on master, so that a tag a release depends on is never moved again, plus a release check that every digest a release stamps can be pulled.

mudler-agent avatar Nov 25 '26 23:11 mudler-agent

The release workflow fix is on master:

  • 5c1e273a1: the release catalog pins the package digests the registry actually holds, not the ones a re-run built locally.
  • ab75504a0: a release builds the guest images once and tags them v<version>, media-v<version> and office-v<version>, tags that are never moved. The release event reuses them instead of building again. A release check now fails before the catalog is uploaded if any package or guest image digest it stamps cannot be pulled.
  • 19a08da06: the tag-push and release-event runs no longer wait on each other.

The 5.0.1 images were restored earlier, as noted above, so this can be closed. If the Sandbox still fails to pull on 5.0.1, please reopen.

mudler-agent avatar Nov 25 '26 23:11 mudler-agent