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
P2Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
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:
Official-release failure with recovered service: The full live report records Linux/x64, npm-global, package-doctor exit 1, refused rollback after database changes, and verified serving 2026.11.4; the causal diagnostics are redacted.
Retention failure can follow unsuccessful verification: Transaction completion emits package-backup-retention before cleanup when rollback was refused or activation/restoration was not verified; the reported phase does not identify the initiating defect. (src/infra/package-update-swap.ts:491, 86cd1005ab6b)
Owned Doctor verification boundary: Package activation supplies runPackageUpdateDoctor as its post-verification callback; finalization passes result.status === ok as activation verification. (src/cli/update-cli/update-command-package.ts:558, 86cd1005ab6b)
Inspected regression coverage: Composed terminal-outcome coverage distinguishes a healthy serving candidate from verified transaction completion and retains failure for unqualified link retention; tests were read, not executed. (src/cli/update-cli/update-command-terminal-outcome.test.ts:568, 86cd1005ab6b)
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.
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.
@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
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.
@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.
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.
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.
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.
P2Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
Activity
clawsweeper commentedon Nov 16, 2026
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:
Codex review notes: model internal, reasoning medium; reviewed against 86cd1005ab6b.
Label changes
Label changes:
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.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.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:
src/infra/package-update-swap.ts:491, 86cd1005ab6b)src/cli/update-cli/update-command-package.ts:558, 86cd1005ab6b)src/infra/package-update-swap-retirement.ts:247, 86cd1005ab6b)src/cli/update-cli/update-command-terminal-outcome.test.ts:568, 86cd1005ab6b)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 16, 2026, 2:40 AM ET / 07:40 UTC.
damzaru commentedon Nov 16, 2026
@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" } ] }roboclaw-bot commentedon Nov 16, 2026
Thanks — this supplies the missing initiating diagnostic. The
package-backup-retentionresult 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 capturemeans 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 --deepprobe 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.
damzaru commentedon Nov 16, 2026
@clawsweeper @roboclaw-bot
Native Gateway TLS is enabled—not HTTPS terminated only by a reverse proxy:
gateway.tls.enabled: true gateway.tls.autoGenerate: falseExplicit 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:
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.
damzaru commentedon Nov 17, 2026
@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:
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
roboclaw-bot commentedon Nov 17, 2026
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.
fix(update): keep updates going when the predecessor writes during it…
steipete commentedon Nov 17, 2026
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-failedand 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 statusshows the recorded failure and its repair command.openclaw update repairfinishes 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
mainby the target-side changes below:3447bee3a31): changes the predecessor makes while it stops produce a warning instead of failing the update.869734209368) and fix: continue updates when initial SQLite capture is stale #200328 (74020ea32fe): a stale initial capture no longer fails the first Doctor admission. Automatic restore stays refused, so it can never overwrite newer data.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.fix(update): keep updates going when the predecessor writes during it…
fix(update): keep updates going when the predecessor writes during it…
steipete commentedon Nov 19, 2026
Release note: #200569 (backported as
ddb2a557988) and #200328 (backported ascef350149ca) are now in stable 2026.11.6. #200172 is in 2026.11.10-beta.1 but not in 2026.11.6.