Skip to content

Update failure: package-backup-retention (2026.11.4) #200022

Closed

Description

@damzaru

OpenClaw update failure report

This report was explicitly reviewed and confirmed in OpenClaw.

  • OpenClaw version: 2026.11.4
  • Platform: linux/x64
  • Node version: 24.22.3
  • Update action: Gateway RPC: update.run (control-ui)
  • Installation method: npm-global
  • Update target: 2026.11.4
  • Failed phase: package-backup-retention
  • Rollback outcome: not attempted — Databases changed after snapshot capture: [redacted-path]
  • Recovery outcome: verified serving 2026.11.4
  • Recorded verification: version verified
  • Current health: Gateway answered on the recorded port (2026.11.4).
  • Recovery and verification above describe the update attempt, not a current instruction to stop or restart the Gateway.

Warnings

  • [redacted-diagnostic]

Bounded diagnostics

  • Result: error
  • Update mode: npm
  • Reason code: post-update-failed
  • Before version: 2026.11.3
  • After version: 2026.11.4
  • After build: 2026.11.4-release-d843d6af39a4-2026-11-15T22-45-53.485Z
  • Failed phase package-doctor: exit 1
  • Failing check openclaw doctor (command-failed): [redacted-diagnostic]
  • Failed phase [redacted-command]: exit 1
  • Failed phase package-backup-retention: exit 1
  • Failing check package-swap (swap-failed): [redacted-diagnostic]

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:needs-info
    impact:ux-friction
    issue-rating: 🦪 silver shellfish
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Nov 16, 2026
  2. clawsweeper commented on Nov 16, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    This issue records an official-release update failure; the redacted Doctor diagnostic prevents establishing a current fix or a shared root cause with another report.

    Reproducibility: no. high-confidence current-main reproduction is established: the report confirms a released update failure but omits the selecting Doctor diagnostic; no runtime reproduction was attempted.

    Next step
    Share the saved package-doctor stderrTail and failureFacts from openclaw update status --json, removing secrets while preserving diagnostic meaning, without rerunning the update or deleting backups.

    Review details

    Best possible solution:

    Resolve the initiating Doctor failure through its existing owner while preserving changed databases and recovery backups.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence current-main reproduction is established: the report confirms a released update failure but omits the selecting Doctor diagnostic; no runtime reproduction was attempted.

    Is this the best way to solve the issue?

    Diagnosing the first Doctor failure is the supported next step; Gateway health alone cannot justify suppressing transaction failures or changing retention policy.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The initiating Doctor error is redacted, so its cause and applicability of existing fixes remain unknown.

    Codex review notes: model internal, reasoning medium; reviewed against 86cd1005ab6b.

    Label changes

    Label changes:

    • add P2: Update finalization failed, but recovery verified the target version serving and no ongoing outage or data loss is established.
    • add impact:ux-friction: The Control UI reports a failed update despite recovered service, leaving completion uncertain and requiring additional diagnosis.
    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:needs-info: Current issue advisory state selects this label.

    Label justifications:

    • P2: Update finalization failed, but recovery verified the target version serving and no ongoing outage or data loss is established.
    • impact:ux-friction: The Control UI reports a failed update despite recovered service, leaving completion uncertain and requiring additional diagnosis.
    Evidence reviewed

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 16, 2026, 2:40 AM ET / 07:40 UTC.

  3. damzaru commented on Nov 16, 2026

    @damzaru
    Author

    @clawsweeper :
    { "phase": "package-doctor", "exitCode": 1, "durationMs": 372022, "termination": "exit", "signal": null, "killed": false, "stderrTail": "WARNING: Gateway maintenance drain deadline reached: resident shutdown budget unknown; latest root-request=unknown, cron-run=unknown; stopping with admitted work. In-flight work may be interrupted. The resident build cannot distinguish migrations/backups from ordinary work in this observation. Current lifecycle observation unavailable (Gateway TLS certificate unavailable). the next Gateway starts with a 330s service stop budget.\nPredecessor stop receipt publication could not be verified.\nSQLite receipt source changed after update capture.", "failureFacts": [ { "check": "openclaw doctor", "code": "command-failed", "message": "WARNING: Gateway maintenance drain deadline reached: resident shutdown budget unknown; latest root-request=unknown, cron-run=unknown; stopping with admitted work. In-flight work may be interrupted. Th" } ] }

  4. roboclaw-bot commented on Nov 16, 2026

    @roboclaw-bot
    Collaborator

    Thanks — this supplies the missing initiating diagnostic. The package-backup-retention result is downstream; Doctor first failed while trying to attribute the predecessor Gateway's stop receipt to the database captured for this update.

    In the 2026.11.4 receipt writer, SQLite receipt source changed after update capture means the observed database generation did not match the original capture (including its accepted empty-reader alternative). The publication message is that writer's refusal wrapper. This does not establish database corruption, identify an outside writer, or establish the same cause as another update report.

    The preceding drain warning is also useful: lifecycle inspection could not obtain a verified local TLS target. “TLS certificate unavailable” here does not by itself distinguish an unreadable certificate from a failed local HTTPS probe/pin check. The unknown work counts are unavailable observations, not evidence that no work was running.

    Please keep the original update record and retained backups; don't rerun the update just to reproduce this, delete recovery state, or disable TLS/receipt checks. One remaining configuration distinction will help select the correct owner: was native Gateway TLS enabled for this attempt, or was HTTPS terminated only by a reverse proxy? If convenient, include sanitized openclaw gateway status --deep probe diagnostics from the current healthy service (no tokens, private keys, or full config). This is a read-only check, not another update attempt.

    Keeping this open: recovered 11.4 service is useful evidence, but it does not verify the failed update transaction or a current-main fix.

  5. damzaru commented on Nov 16, 2026

    @damzaru
    Author

    @clawsweeper @roboclaw-bot
    Native Gateway TLS is enabled—not HTTPS terminated only by a reverse proxy:
    gateway.tls.enabled: true gateway.tls.autoGenerate: false

    Explicit certificate/key paths are configured; their values are omitted. Retained configuration backups from November 10 and November 16, plus the pre-repair snapshot, show the same settings. This does not establish whether the predecessor’s certificate/probe was usable at the failure instant.

    Fresh read-only openclaw gateway status --deep diagnostics, exit 0:
    `Service: systemd user (enabled)
    Config (cli): ~/.openclaw/openclaw.json
    Config (service): ~/.openclaw/openclaw.json

    Gateway: bind=lan (0.0.0.0), port=18789 (service args)
    Check target: wss://127.0.0.1:18789
    Dashboard: https://PRIVATE-IP:18789/
    Check note: bind=lan listens on 0.0.0.0 (all interfaces); checking via 127.0.0.1.

    CLI version: 2026.11.4
    Gateway version: 2026.11.4
    Runtime: running (pid 3000377, state active, sub running, last exit 0, reason 0)
    Last shutdown: stop (SIGTERM) at 2026-11-16T07:39:52.876Z
    Connectivity check: ok
    Capability: read-only
    Listening: *:18789

    Config warning:

    • plugins.entries.slack: plugin disabled (disabled in config) but config is present`

    For chronology: following the original failure, offline openclaw update repair --yes --json --timeout 900 completed finalization successfully at approximately 07:47 UTC. No database rollback was replayed. That recovery is separate from the failed transaction, not evidence of a current-main fix.

    This follow-up involved only read-only checks—no update/repair rerun, restart, backup deletion, TLS changes, or receipt-check changes. The successful current probe does not explain the original TLS-observation failure.

  6. damzaru commented on Nov 17, 2026

    @damzaru
    Author

    @roboclaw-bot @clawsweeper
    Follow-up from the same installation: updating 2026.11.4 → 2026.11.5 on November 17 produced a similar failure, but this time the gateway remained offline.

    Environment: Linux x86_64, Node 24.22.3, npm-global, systemd user service. Native Gateway TLS remains enabled, with automatic certificate generation disabled.

    Candidate Doctor and gateway startup validation passed. During live activation:

    • Doctor exited with code 1 after approximately 66 seconds.
    • The warning again reported unavailable lifecycle observation: “Gateway TLS certificate unavailable.”
    • Database rollback was refused because shared-state data changed after snapshot capture.
    • Final result: update-executor-settlement-failed.
      An additional verification diagnostic may be important:

    This OpenClaw build cannot open your existing data. Shared-state database schema: 36. Verifier-supported schema: 22. Refusing build: OpenClaw 2026.11.4 (d843d6a). Installed CLI: 2026.11.5.

    The saved run is terminal and failed, with no updater still running. However, the Control UI continues showing activation in progress and reconnecting.

    I cannot confirm that yesterday’s exact predecessor stop-receipt exception recurred. Could the retained older updater be attempting verification against the newly migrated schema?

    Sanitized evidence is attached. Inspection was read-only: no update retry, repair, restart, rollback, or backup deletion was performed. Recovery snapshots remain retained.

    sanitized-update-diagnostics.txt

  7. roboclaw-bot commented on Nov 17, 2026

    @roboclaw-bot
    Collaborator

    Thanks for the diagnostics; they pinpointed it. This is fixed on main by #200569 (3447bee3), which is not in a release yet.

    During a Control UI update, the new version's Doctor took its database snapshot before stopping the old Gateway. While shutting down, the old Gateway released its own lease in state/openclaw.sqlite. The stop receipt then saw a changed database and refused, so the update was marked failed even though the new version was serving. Changes made in that stop window now produce a warning and Doctor continues. Automatic restore of the outdated backup stays disabled, so it can never overwrite newer data. Changes after the updater holds exclusive control are still refused.

    Because the new version's own code runs this step, the fix applies to updates to a release that contains #200569, from any installed version. Your current installation needs no action.

  8. added a commit that references this issue on Nov 17, 2026
    3447bee
  9. steipete commented on Nov 17, 2026

    @steipete
    Contributor

    Follow-up for the 2026.11.4 → 2026.11.5 attempt where the Gateway stayed offline.

    Why it stayed offline. The 2026.11.5 Doctor migrated the shared state (schema 36), then refused rollback because the database changed after the snapshot was taken. The run was still owned by the 2026.11.4 updater, and its final verification uses 2026.11.4 code. That code cannot open schema-36 data ("Verifier-supported schema: 22"), so it settled as update-executor-settlement-failed and left the service stopped. The 2026.11.5 package and the migrated data are both in place. Do not reinstall 2026.11.4: it cannot open this data.

    Recovery (2026.11.5 CLI, same service account and state directory):

    openclaw update status
    openclaw update repair
    openclaw gateway status --deep

    openclaw update status shows the recorded failure and its repair command. openclaw update repair finishes the interrupted activation on the installed 2026.11.5. This is the same step that recovered this installation on 2026.11.4 yesterday. If repair refuses, follow the manual procedure in Alternative: manual npm, pnpm, or bun. It uses [email protected], the version already installed, and you should keep the recovery snapshots until the Gateway is healthy.

    Fix status. The snapshot-versus-stop race is fixed on main by the target-side changes below:

    None of these is in 2026.11.5; this was checked by ancestry against v2026.11.5, so they are not yet released. Because the target's own Doctor runs this step, they protect updates to the first release that contains them, from any installed version.

  10. added a commit that references this issue on Nov 18, 2026
    b9428a1
  11. added a commit that references this issue on Nov 19, 2026
    159b54e
  12. steipete commented on Nov 19, 2026

    @steipete
    Contributor

    Release note: #200569 (backported as ddb2a557988) and #200328 (backported as cef350149ca) are now in stable 2026.11.6. #200172 is in 2026.11.10-beta.1 but not in 2026.11.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-infoimpact:ux-frictionissue-rating: 🦪 silver shellfish

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions