Repository navigation
Description
Problem / motivation
Update Center offers latest on the selected channel (for current beta testers: v2.14.1-beta.1 → v3.4.2-beta.1) behind one orange Update. That click moves Core only. There is no updater row, and the running sidecar replaces itself only after the new Core is healthy.
The first DuckDB hop and other large Core hops require updater same-tag first. That is already documented in docs/self-update.md (manual FTW_UPDATER_IMAGE_TAG pin, then Core). The UI does not enforce it.
What a 2.14 box actually does today if someone clicks through:
- The 2.14 updater (30-minute readiness, no
GET /capabilities) pulls and recreates Core at latest 3.x. - Core
v3.2.1+ asks the sidecar for protocol 1 andpreserve_core_on_readiness_failurebefore opening data. The old updater cannot answer. Core exits withupdate ftw-updater firstand does not migrate. - The old updater waits, then rolls the Core image back. The site stays on 2.14. Data is usually untouched — but the household did not upgrade, and the orange button still looks like the way forward.
v3.2.0-beta.1does not have that refuse-before-data guard. Hitting that image (or any Core that starts DuckDB under a 30-minute sidecar) is the unsafe case covered by fix(updater): protect long first DuckDB migrations from image-only rollback #1164.
People who want 3.x therefore have no in-app path. The working path is a full .ftwbak off-box and SSH: pin ftw-updater to the target tag, then Core to the same tag. Most testers will take 2 → 3, so “stay on healthy 2.14” is not the product answer.
Reported from Discord #dev (2026-09-12): xorath asked for this as the product gap (“UC should block until updater is ok”), not a manual compose runbook as the default.
Desired result
Update Center must not start a Core update to a target that needs updater capabilities the running sidecar does not advertise.
- Probe updater
GET /capabilities(protocol 1,preserve_core_on_readiness_failure: true) before offering or dispatching a Core hop that requires that contract (DuckDB / schema 3, and any later hop that depends on the same sidecar behaviour). - Block the Core update in both UI and
POST /api/version/update(old clients must not skip the gate). - Show clear copy: the updater has to be on the same target tag first; Core is not updated yet; data has not been migrated. Point at the existing updater-first compose steps. Do not imply that pressing Update again will fix it.
- When the running updater already satisfies the target, keep today’s one-click Core update. No extra confirmation theatre for a capable pair.
- After a successful Core update, today’s post-health updater self-replace stays as the way a capable pair stays matched. This issue is the pre-hop gate, not a replacement for self-replace.
Related, not the same: #1164 (long first DuckDB import vs 30-minute image-only rollback). That issue is the sidecar timeout/rollback fix. This issue is that Update Center must not offer the hop until that sidecar is already the one that will supervise it.
Alternatives considered
- Stay on 2.14 if it is healthy. Fine for sites that do not need 3.x. It does not help the people who want to upgrade.
- Document SSH only. Already in
docs/self-update.md. Necessary as the 2.14 operator path (see boundaries). Not enough as the only product behaviour while the orange button still dispatches latest Core. - Add an updater row and let the operator click twice. Useful later, not the asked result. The request is block Core until capabilities are ready, not a second unmarked button that can still be skipped.
- Rely on new Core refusing to start. Safe for data on 3.2.1+ vs an old sidecar, but it is a failed update after the operator already committed. The button still looks like a valid 2 → 3.4 path.
- Ship the guard only in 3.x and expect 2.14 to pick it up via Update. That is the same chicken-and-egg: 2.14’s orange button is what would have to install the Core that contains the guard.
Evidence and source material
- Discord
#dev, 2026-09-12: 2.14.1 healthy; orange Update is Core-only; updater not shown; xorath: most boxes will take 2 → 3, so this should be solved in product. docs/self-update.md— updater-first for manual updates and first DuckDB upgrade;v3.2.0-beta.1is not the fixed updater.go/internal/updateipc/capabilities.go— Core already knows how to refuse an unsafe sidecar after it has been started as the new image.go/cmd/ftw-updater/self_replace.go— sidecar replacement is best-effort after Core is healthy; it cannot run if that Core never becomes ready.- 2.14.1 updater readiness timeout is 30 minutes; the fixed updater waits up to six hours and leaves Core + data in place on readiness failure.
- Latest published beta at the time of this issue:
v3.4.2-beta.1. Latest GitHub stable remainsv2.3.2. Sites on 2.14.x are on the beta channel.
Boundaries, failure behavior and proof
In scope
- Gate Core update (check + Update Center +
POST /api/version/update) on running updater capabilities vs what the selected target requires. - Copy that names the updater-first step and does not start Core.
- Tests: old sidecar / missing
/capabilities/ wrong protocol → no Core dispatch; capable sidecar → dispatch unchanged.
Out of scope
- Retrofitting this gate into already-shipped 2.14 Core via the same orange button. The guard can only run in Core that is already installed. Boxes still on 2.14 without it keep the documented SSH updater-first path (
FTW_UPDATER_IMAGE_TAGto the target,--no-deps ftw-updater, then Core). - Changing DuckDB import, six-hour timeout, or image-rollback policy (fix(updater): protect long first DuckDB migrations from image-only rollback #1164).
- Host OS / Docker engine updates.
- Requiring a full
.ftwbakin the UI as a substitute for the updater gate (backup remains required for the hop; it does not replace the sidecar contract).
Failure stays safe
- If capabilities are missing, unknown, or stale: do not pull or recreate Core. Leave 2.x data and images as they are.
- If the sidecar is unreachable: same block (do not treat “socket up” as “safe for DuckDB”).
- Native installs with self-update disabled stay out of this flow.
Proof
- Unit/API:
POST /api/version/updatereturns a conflict/explicit error and does not call the sidecar when capabilities are insufficient for a schema-3 (or later) target. GET /api/version/check(or equivalent) must not presentupdate_availableas an actionable Core hop in that state; UI tests assert the orange Update does not start Core and shows the updater-first copy.- Capable pair (protocol 1 +
preserve_core_on_readiness_failure): existing one-click Core update still starts. - Fixture named in acceptance: 2.14 + old updater → no blind latest-3.4; capable pair → ordinary one-click remains.
Area
- Self-update / deploy
- Web UI
- HTTP API
Activity
frahlg commentedon Oct 28, 2026
The Docker updater sidecar is gone. Native updates refuse a schema change instead (docs/self-update.md).
🤖 Generated with Claude Code