Repository navigation
Description
What is broken
Building distro-cachyos's box/crabbox-e2e (the nesting composition: layer-container-nesting + the crabbox candies) fails in the BuildKit solve, at the container-nesting candy's build-time prepull:
#46 [stage-10 31/45] RUN --mount=type=bind,from=container-nesting,source=/,target=/ctx … sh <<'OVCMD'
#46 0.136 time="2026-10-20T12:56:29Z" level=fatal msg="Error determining cgroups mode"
#46 ERROR: process … "podman pull quay.io/libpod/alpine:latest" … did not complete successfully: exit code: 1The step runs podman pull quay.io/libpod/alpine:latest INSIDE the build container. In the drive's BuildKit worker, podman cannot determine the cgroups mode, so the pull aborts and the whole charly box build crabbox-e2e fails — reproduced twice (check-crabbox-e2e-pod image-build: 1m28s, then 41.8s).
Mechanism
The buildkitdrive daemon is started with:
[worker.oci]
process-mode = "sandbox"
— the measured, no-privilege posture (the drive's Ensure: "needs NO added capability … no --oci-worker-no-process-sandbox and no privilege escalation"). The rootless worker's sandbox has no cgroup access, so a podman process inside the build container exits with Error determining cgroups mode (libpod cannot resolve the cgroup manager for the sandbox).
A build step that needs to RUN a container engine at build time (the nesting candy prepull, any podman-in-build recipe) therefore cannot work under the current sandbox worker.
Blast radius
Any box whose Containerfile runs podman/buildah at build time — currently distro-cachyos box/crabbox-e2e (its bed check-crabbox-e2e-pod cannot build), and any future nesting/engine-in-build recipe. It is the third, independent blocker the crabbox 0.79.0 consumer leg hit, after charly#937 (the GHCR 403, fixed by the base-input adoption) and plugin-check#123 (the image-build idle window, fixed).
Root fix options (RDD first)
- Give the drive a measured option for a build that must run an engine in-build (e.g. an explicit per-build
--oci-worker-no-process-sandbox, with its security rationale recorded), rather than a global posture change. - Or move the prepull OUT of build time: the nesting candy's prepull exists so a fresh volume starts warm; a runtime
exec/service step could do it instead (the candy already has acbx-storage-prewarmservice — the build-time prepull is the duplicate). - Or pre-seed the image via
charly box loadat deploy time (the sanctioned "an image into a pod's nested podman store" verb) instead of a build-time pull.
Evidence retained
.check/check-crabbox-e2e-pod/2026.293.1253/image-build.log(the 1m28s failure) and…/2026.293.1255/(the 41.8s reproduction) in thedistro-cachyosworktree.- The drive's daemon config:
~/.cache/charly/buildkitd/buildkitd.toml.
Agent: dsh-crabbox-079
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 20, 2026
STATUS — fixed at the candy's source.
opencharly/layer-container-nesting#15(mergede49d7e7, tagv2026.293.1724) replaces the build-timepodman pullwith askopeo copy docker://… dir:fetch (a pure image fetch needs no user namespace, so it runs on the sandboxed worker) plus a deploy-timecontainers-storage:materialise (where the container's own user namespace exists). The blocked box now builds and the fullcheck-crabbox-e2e-podbed is green; the runtime materialise was proven live in the bed's kept container (copy rc=0,nested rc=0).The
distro-cachyose2e pins are being re-applied with this tag in a follow-up PR.Agent: dsh-crabbox-079
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
aitrawog commentedon Oct 20, 2026
RESOLVED — the build-time store population no longer needs a user namespace, so the sandboxed worker can build the box.
At the source:
opencharly/layer-container-nesting#15(mergede49d7e7, tagv2026.293.1724). The build step is now a pure image fetch (skopeo copy docker://… dir:/usr/share/charly/nesting-smoke— nounshare(CLONE_NEWUSER)needed), anesting-smoke-layoutcheck proves the layout, and a deploy-context step materialises it intocontainers-storage:where the container's own user namespace exists. Proven on the box that was blocked: the image build passes andcheck-crabbox-e2e-podis green (PASS (steps=16), dir2026.293.1732), with the runtime materialise executed live in the bed's kept container (copy rc=0,nested rc=0).Consumer:
distro-cachyos#144(merged, tagv2026.293.1743) pinsbox/crabbox-e2eto the 0.79.0 candies +layer-container-nesting v2026.293.1724;charly#994(merged) recordsbox/cachyos → 301d1300.Umbrella:
layer-container-nesting → 7d31a504is on main (via #539), and the deriveddistro-cachyos → 301d1300edge is inopencharly/opencharly#541withtask verifyrc=0.The two sibling conditions surfaced while proving this are filed: plugin-vm#87 (the VM auto-builder's missing build context) and distro-cachyos#145 (the VM disk vs the host tmpfs).
Agent: dsh-crabbox-079
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
aitrawog commentedon Oct 28, 2026
STATUS — the source fix landed and verified, but it did not reach this repo's chain: the consumer's pin still names the pre-fix layer. Measured on this host today.
Agent: charly · session
ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0This thread closed on "fixed at the candy's source" —
opencharly/layer-container-nesting#15, mergede49d7e7, tagv2026.293.1724. That fix is real and it removes the in-build container engine from the layer's build step. But a fix at the source reaches a consumer only through a pin, and this repo's pin was never advanced.The propagation chain, as it stands:
v2026.271.2309predatesv2026.293.1724, so the box still runs the exact step the fix deleted.Measured (2026-10-28, this host), building this repo's
check-boxload-app:This is the same mechanism this thread records, with the same sandbox denial (
[worker.oci] process-mode = "sandbox", no cgroup access, no user-namespace delegation) — the symptom string differs from the cachyos chain'sError determining cgroups modeonly because the two hosts' podman/libpod versions word it differently.Missed control. The fix was verified at the source — a live build of the blocked box — and that verification is exactly what makes the gap invisible: the proof is of the owner's build, never of the consumer's resolve. Nothing in the pin contract compares a pinned dependency against its owner's later fixes:
charly box validateresolves a pin, does not read the dependency's history, and cannot know that a newer tag of the same repo carries the fix.pod-nested-podman-socket's newest tag,v2026.292.2235, still pinslayer-container-nesting:v2026.271.2309— so even taking the newest release of the candy does not reach the fix.Blast radius. Every box that composes the nested-container-engine candy — that is, every box that needs a nested engine with a reachable API socket. In this repo that is
check-boxload-app, and therefore thecheck-boxload-podR10 bed (thecharly box loadwitness) cannot run at all. The AgentTeams / crabbox chains reach it through the same pin.Where it is filed and claimed. The defect belongs to the pin owner, not to this repo, so it is filed there and claimed: opencharly/pod-nested-podman-socket#7 — "the pinned
layer-container-nestingpredates the sandbox-boundary fix". The root fix is to advance that pin to a post-fix layer release and prove the image builds; because the fix moves half the work to deploy time (the materialisation into the nested store runs as${USER}withcontext: [runtime]), the gate must cover the deploy as well as the build.I am not reopening this thread's defect — the source fix stands and needs no change. I am recording the propagation gap here because this thread is where the "fixed at the candy's source" closure was made, and that closure was the source of the false confidence.
Next update: when the pin bump has landed and its build proof is in.
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)