Skip to content

Update failure: database-schema-preflight (2026.9.4) #149259

Closed as not planned
Closed as not planned

Description

@phucmep91-debug

OpenClaw update failure report

This report was explicitly reviewed and confirmed in OpenClaw.

  • OpenClaw version: 2026.9.4
  • Platform: linux/x64
  • Node version: 24.21.0
  • Update target: exact target unavailable; mode: unknown
  • Failed phase: database-schema-preflight
  • Rollback outcome: verified safe to restart

Bounded diagnostics

  • Result: error
  • Update mode: unknown
  • Reason code: database-schema-preflight

Activity

  1. added
    P0
    clawsweeper:needs-info
    impact:ux-release-blocker
    issue-rating: 🦪 silver shellfish
    on Sep 15, 2026
  2. clawsweeper commented on Sep 15, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep open: this official-release update failure remains unclassified, and the merged diagnostic correction explicitly does not establish recovery for this installation.

    Reproducibility: no. high-confidence reproduction identifies this installation's failure: the linked stock reproduction establishes a matching report shape, while its actual target and refusal remain unknown; no runtime reproduction was performed in this review.

    Next step
    Obtain redacted lastRun.origin.nextAction and lastRun.target from openclaw update status --json before another update overwrites history, plus openclaw config validate, to identify the safe recovery path.

    Review details

    Best possible solution:

    Provide visible Doctor or Fix recovery for repairable update failures while preserving protection against incompatible database downgrades.

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

    No high-confidence reproduction identifies this installation's failure: the linked stock reproduction establishes a matching report shape, while its actual target and refusal remain unknown; no runtime reproduction was performed in this review.

    Is this the best way to solve the issue?

    The shipped diagnostic correction is appropriate, but neither it nor similar reports establish which recovery or source repair this installation needs.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The missing target and saved refusal prevent distinguishing invalid configuration, an intentional incompatible-schema refusal, and a database inspection failure.

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

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P0: The reported update is blocked without actionable in-product recovery, and identifying a safe next step requires terminal diagnostics or support.
    • impact:ux-release-blocker: The generated report provides neither the underlying refusal nor a visible recovery action for completing the update.
    Evidence reviewed

    What I checked:

    • Unclassified official-release failure: The report identifies 2026.9.4 on Linux and verified safe rollback, but omits the target and underlying refusal; the full discussion contains no reporter response supplying them.
    • Discussion distinguishes matching symptoms from diagnosis: The follow-up at Update failure: database-schema-preflight (2026.9.4) #149259 (comment) reports a stock invalid-config reproduction and corrects the earlier interpretation of mode unknown; it requests saved target/refusal details and config validation to classify this installation.
    • Current configuration and schema boundaries: Configuration admission delegates to createUpdateConfigFailure, while schema checks separately report incompatible versions and inspection failures; the phase alone cannot identify this report's cause. (src/cli/update-cli/schema-preflight.ts:128, e28a63d8b99e)
    • Installed-updater recovery limitation: The current guide documents 2026.9.4's misleading phase and mode, identifies lastRun.origin.nextAction and lastRun.target, and explains why a candidate cannot repair an installed updater refusing before staging: https://docs.openclaw.ai/cli/update. (docs/cli/update.md:142, e28a63d8b99e)
    • Merged correction has explicitly limited scope: fix(update): report invalid config instead of database schema failures #149571 merged the invalid-config classification correction, but its body explicitly says the related individual reports remain unclassified and does not claim to resolve them all. (e6e52c9cc831)
    • Diagnostic correction release inclusion: GitHub comparison places the diagnostic commit in v2026.9.6 with behind_by zero, and the release endpoint confirms publication; this establishes shipment of diagnostics, not resolution of the unknown refusal. (e6e52c9cc831)
    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 October 20, 2026, 10:25 AM ET / 14:25 UTC.

  3. steipete commented on Sep 15, 2026

    @steipete
    Contributor

    Thanks for the report. database-schema-preflight means the 2026.9.4 updater refused to activate the candidate because its check of the state database's schema did not pass, and it rolled back cleanly ("verified safe to restart"), so your Gateway should still be serving as before. Update mode: unknown means the refusal happened before the updater resolved how OpenClaw is installed, and the bounded report does not say which check tripped, so please add, with hostnames and tokens redacted:

    1. openclaw update status --json; it records the target version and the preflight's refusal reason.
    2. The lines under database-schema-preflight in the newest update log (~/.openclaw/logs/update-*.log, or the update section of openclaw-<date>.log).
    3. openclaw doctor (without --fix) and openclaw gateway status --deep.
    4. Whether this state directory was ever run by a newer build than 2026.9.4 (a nightly, a main checkout, or a downgrade). The preflight refuses when the database is already at a newer schema than the candidate understands; that is the one case where blocking is correct, because the data would be at risk, and the supported path is to run a build at least as new as the one that last wrote the database.

    If it is not that case, the refusal reason from step 1 tells us which check to fix. Two improvements for this class are already on main for the next release: the refusal now names the found and supported schema versions and the writer build, and the generated report will carry the reason instead of only the phase.

  4. steipete commented on Sep 16, 2026

    @steipete
    Contributor

    Follow-up after reproducing this report shape on a stock 2026.9.4 install: an invalid or unreadable openclaw.json (an unknown top-level key, or a core field that fails validation) makes the 2026.9.4 updater refuse with exactly this database-schema-preflight / mode: unknown report before it inspects any database, and the shipped report drops the reason. One correction to my note above: 2026.9.4 records mode: unknown for every early package refusal even after it resolved the target, so that field does not mean install detection failed.

    Two commands tell us which case yours is, no log digging needed:

    1. openclaw update status --json — lastRun.origin.nextAction and lastRun.target carry the refusal reason if this run is still the latest.
    2. openclaw config validate — if it reports a problem, fix it (or run openclaw doctor --fix for retired fields) and run openclaw update again; that is the reproduced cause.

    If the config validates cleanly and nextAction names a database with a schema newer than the target supports, keep running a build at least as new as the one that last wrote it. The next release names the exact reason in this report (#149571) instead of the database phase.

  5. openclaw-barnacle commented on Oct 20, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  6. added
    stale
    on Oct 20, 2026
  7. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Oct 20, 2026
  8. removed
    stale
    on Oct 21, 2026
  9. steipete commented on Oct 27, 2026

    @steipete
    Contributor

    Closing as stale. The 2026.9.3/9.4 updater dropped the refusal reason from this report, and the two known causes behind it (an invalid openclaw.json reported as a schema refusal, #147771; duplicate Windows database paths, #147762) are fixed since 2026.9.5, where the refusal names the exact field or store. Nothing was changed by this refusal.

    Because the first update step runs the installed 9.3/9.4 updater, please move past it with one manual hop: after a verified backup, stop the Gateway with openclaw gateway stop, install with the package manager that owns the install (npm 12 or 11.16+: npm i -g openclaw@latest --allow-scripts=openclaw; npm 11.15 and earlier: drop --allow-scripts=openclaw), run openclaw doctor --fix, refresh the service with openclaw gateway install --force, then run openclaw gateway start and check openclaw gateway status --deep (steps: https://docs.openclaw.ai/install/updating/update-methods#alternative-manual-npm-pnpm-or-bun). If an update from a current release still refuses at database-schema-preflight, please open a new report with the refusal lines from openclaw update status --json.

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

    P0clawsweeper:needs-infoimpact:ux-release-blockerissue-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