You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
box build over 10 minutes dies as signal: killed: the plugin LEAF cap is unstated in the error and undocumented in the message #1003
A charly box build that legitimately runs longer than 10 minutes is cancelled
mid-flight and reports only:
charly: error: command "build": building openwebui: building openwebui: buildctl build … --output …:
signal: killed: #1 [internal] load build definition from Containerfile
Nothing in that message names a time bound, and the buildkit side looks like a crash
rather than a cancellation:
level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Canceled
desc = mount callback failed on /run/user/1000/containerd-mount…:
failed to record upperdir changes (close error: failed to close tar writer: context canceled)"
Mechanism (measured)
charly/charly/plugin_activity.go:272:
constpluginLeafCapDefault=10*time.Minute
charly box build is dispatched as a host→plugin LEAF call, so provider_invoke.go
wraps it with that deadline. A build that outlives it is cancelled — signal: killed
on buildctl, context canceled inside the mount callback — and the partial export
leaves junk in the buildkit export dir.
It is overridable (CHARLY_PLUGIN_LEAF_CAP=120m made the same build complete), but
nothing tells the operator that: the failure names neither the cap nor the variable.
Why it matters
The builds most likely to exceed 10 minutes are exactly the ones with no alternative:
a first-ever base image (fresh multi-hundred-MB base pull + full package install), a
pixi/pip layer that installs a large Python app, a cold buildkit cache. Two attempts
were lost to this here before the cap was found by reading the source.
Suggested fix
Name the bound in the error: when the leaf cancellation is a cap expiry, say plugin leaf cap 10m exceeded for command "build" — raise it with CHARLY_PLUGIN_LEAF_CAP.
The activity tracker already knows which bound fired (it distinguishes the idle window
from the total cap), so the classification exists — only the message ignores it.
Consider defaulting box build/check run leaves higher than 10m, or setting the cap
from an explicit budget on the verb, since a cold image build is expected to be long.
Context
Hit while building the Open Web UI image on the CachyOS base after refreshing the base
digest (opencharly/distro-cachyos): the new-digest base build alone is a full package
install, and the pixi/pip layer adds several minutes more.
Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
What landed:pluginLeafCapDefault raised 10m → 2h, and a leaf-cap expiry now identifies
itself instead of surfacing as signal: killed / context canceled from inside the plugin's
children:
host->plugin build after 2h0m0s: plugin leaf cap exceeded (a host→plugin leaf call has no
host-visible progress to guard on, so the total-duration bound is the only guard; raise it with
CHARLY_PLUGIN_LEAF_CAP): context deadline exceeded
Both identities survive the wrap (errors.Is(err, errPluginLeafCap) and errors.Is(err, context.DeadlineExceeded)), and an uncapped call is never rewritten.
Why 2h and not "raise it a bit": the longest legitimate leaf is a cold multi-stage image build
or a full assembled bed with its rebuild legs, both of which can pass an hour on a slow venue or a
cold cache. It stays finite because a leaf has no progress signal, so the #474 wedge guarantee
needs some bound — the precise idle guard still owns the plugin→plugin path, which does have one.
Evidence: core gate green on the final tree (go vet, full go test), the disposable bed check-charly-vm PASSED (11 steps, driver_version 2026.293.2010), and the merge from origin/main
is proven not to touch the changed surface (empty diff on all four files).
Tier, honestly:analysed on a live system, not fully tested and validated. The new wrapper's
branch did not fire in any live run — every leaf reachable on demand here finishes in milliseconds,
and four attempts to force an expiry (box list boxes, box generate, box validate, a remote --repo resolve, at 1ns/1s caps) all completed because those dispatches take the reverse-channel
path, not the leaf path. The behaviour is pinned by tests that fail without the change, and that is
what the tier says.
Split out of the same investigation and still open: #1005 (the opencharly/openwebui name collision
across distro repos, and deploy add --tag not controlling the base).
Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity
fix(plugin): raise the leaf cap to a bound a cold build can meet, and…
aitrawog commentedon Oct 21, 2026
Fixed by #1004, merged.
What landed:
pluginLeafCapDefaultraised 10m → 2h, and a leaf-cap expiry now identifiesitself instead of surfacing as
signal: killed/context canceledfrom inside the plugin'schildren:
Both identities survive the wrap (
errors.Is(err, errPluginLeafCap)anderrors.Is(err, context.DeadlineExceeded)), and an uncapped call is never rewritten.Why 2h and not "raise it a bit": the longest legitimate leaf is a cold multi-stage image build
or a full assembled bed with its rebuild legs, both of which can pass an hour on a slow venue or a
cold cache. It stays finite because a leaf has no progress signal, so the #474 wedge guarantee
needs some bound — the precise idle guard still owns the plugin→plugin path, which does have one.
Evidence: core gate green on the final tree (
go vet, fullgo test), the disposable bedcheck-charly-vmPASSED (11 steps,driver_version 2026.293.2010), and the merge fromorigin/mainis proven not to touch the changed surface (empty diff on all four files).
Tier, honestly:
analysed on a live system, notfully tested and validated. The new wrapper'sbranch did not fire in any live run — every leaf reachable on demand here finishes in milliseconds,
and four attempts to force an expiry (
box list boxes,box generate,box validate, a remote--reporesolve, at 1ns/1s caps) all completed because those dispatches take the reverse-channelpath, not the leaf path. The behaviour is pinned by tests that fail without the change, and that is
what the tier says.
Split out of the same investigation and still open: #1005 (the
opencharly/openwebuiname collisionacross distro repos, and
deploy add --tagnot controlling the base).Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)