Repository navigation
Description
Problem
Two different distro projects both build an image called opencharly/openwebui — the
CachyOS box (distro-cachyos/box/openwebui) and the Fedora box
(distro-fedora/box/openwebui). They share one registry name, one local image namespace, and
one CalVer tag space, so an image tag no longer identifies an artifact. A deploy then silently
runs the wrong base.
Measured
Every local tag of that name, resolved by asking the image itself:
2026.293.2127 ID=cachyos
2026.293.2233 ID=fedora
2026.293.2242 ID=fedora
2026.293.2329 ID=fedora
2026.293.2337 ID=fedora
2026.293.2341 ID=fedora ← built by the CANONICAL distro-cachyos box
That last line is the sharp end: charly -C <distro-cachyos worktree> box build openwebui
generated a Containerfile whose base is
ARG BASE_IMAGE=ghcr.io/opencharly/cachyos-layer-agent-forwarding:<calver> — i.e. the build was
asked for a CachyOS image — and the resulting tag reports ID=fedora, with dnf in its
history. The CalVer minute is shared, so whichever publisher writes the tag last wins.
Downstream, the deploy is affected the same way. Deploying from the CachyOS project:
$ charly -C <distro-cachyos> deploy add openwebui openwebui --tag 2026.293.2125
Overlay image ready: openwebui-overlay:22e56c78906d
$ charly cmd openwebui "grep -m1 ^ID= /etc/os-release"
ID=fedora
and the overlay it generated was based on a tag nobody asked for:
$ grep -m1 '^FROM' .build/overlay-openwebui/Containerfile
FROM ghcr.io/opencharly/openwebui:2026.293.2337
Two defects, one cause
- The name collides across distro repos.
opencharly/openwebuiis published by both
distro-cachyosanddistro-fedorawith the same CalVer scheme. Nothing in the tag says
which distro built it, and nothing prevents two publishers from writing the same tag. deploy add --tagdid not control the base the overlay used. It reported
Overlay image ready, the container came up, and the base was neither the tag passed nor
the newest one at the time the command started. Whatever the resolver does, it is not what
the flag's help text says ("Image CalVer tag (empty = newest local CalVer)").
Why it matters
This is not a cosmetic mix-up: the two images have different package managers, different
interpreters, and different IDs. A user following the CachyOS box's own documentation gets a
Fedora container, and nothing in charly status, /etc/os-release inside it, or the deploy
output contradicts that until they look. In our case it took an explicit ID= assertion — the
same one check-openwebui-pod already carries for the base identity — to notice.
Suggested fix
- Disambiguate the name per distro, e.g.
opencharly/cachyos-openwebuivs
opencharly/fedora-openwebui(or a-cachyos/-fedorasuffix on the tag). The boxes are
deliberately comparable, but comparable ≠ interchangeable: the artifact identity should
carry the distro. - Make
deploy add --taghonest — either honor it for the base image, or reject it when
it cannot be honored, rather than silently deploying another tag. - Consider having the deploy print the resolved base digest + its
ID=(it already resolves
the image; the base identity is onegrepaway) so a mismatch is visible at deploy time.
Context
Found while moving a local Open WebUI deployment onto the freshly merged CachyOS box
(opencharly/distro-cachyos#147). The bed check-openwebui-pod in that repo already asserts
ID=cachyos + VERSION_ID, which is what proves the box is right; this issue is about the
deploy path being unable to reach it reliably.
Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 20, 2026
Refinement from the successful run, because the race matters for anyone working around this.
The collision is a race, not a certainty. What worked:
import: dc: <distro-cachyos worktree>, thencharly box build dc.openwebui) — the imported box keeps its own project defaults, so the output wasghcr.io/opencharly/openwebui:2026.293.2350, and that tag is genuinely CachyOS (ID=cachyos,pacmanin its history).--tag(the deploy takes the newest local CalVer): the overlay came out asFROM ghcr.io/opencharly/openwebui:2026.293.2350, and the running container reportsID=cachyos, serving 0.12.3, with a live completion through strata.So the tag space is not merely ambiguous — it is time-dependent: build-then-deploy in quick succession wins the race, and a gap (or a concurrent Fedora build) loses it. Earlier attempts in the same session landed on Fedora because 2329/2337/2341 had been written by other builds in between.
That makes the defect worse rather than better for a user: the same command sequence produces a different base depending on timing, and nothing reports which one you got. Both suggested fixes in the description stand — disambiguate the name, and make
deployprint the resolved base identity.Workaround used for the local deployment (documented so it is reproducible): import the canonical box,
box build, verifyID=cachyosbefore deploying, thendeploy addstraight after. It is a workaround, not a fix.Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)