Skip to content

[Bug]: 2026.7.1 gateway fails to start, impossible sqlite version for ubuntu #107607

Closed

Description

@Nattle

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

sqlite 3.51.3 is not available on ubuntu today, 3.46.1-9 is the lastest version in LTS and normal. making update impossible.

Steps to reproduce

  1. update to 2026.7.1 on ubuntu
  2. gateway silently fails to start

Expected behavior

  1. OC should not require a sqlite version greater than commonly available.
  2. update script should check for failing dependencies
  3. gateway should be clear on startup WHY it's failing to start

Actual behavior

  1. update proceeds without warning
  2. gateway emits no reasonable error on startup,
  3. doctor doesn't output anything useful

OpenClaw version

2026.7.1

Operating system

Ubuntu 26.04

Install method

npm global

Model

codex

Provider / routing chain

local network

Additional provider/model setup details

No response

Logs

Screenshots, recordings, and evidence

No response

Impact and severity

No response

Additional information

No response

Activity

  1. Nattle commented on Jul 14, 2026

    @Nattle
    Author

    I was able to install sqlite3 manually with:

    wget http://ftp.us.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.53.3-1_amd64.deb
    wget http://ftp.us.debian.org/debian/pool/main/s/sqlite3/sqlite3_3.53.3-1_amd64.deb
    
    sudo dpkg -i libsqlite3-0_3.53.3-1_amd64.deb
    sudo dpkg -i sqlite3_3.53.3-1_amd64.deb
    
  2. Nattle commented on Jul 14, 2026

    @Nattle
    Author

    according to cli codex, this was the issue:

    Root cause was the legacy installs.json containing older Brave/Codex 2026.5.27 records while SQLite contained 2026.7.1. I quarantined that stale index and refreshed the registry.

  3. added
    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.
    impact:crash-loopCrash, hang, restart loop, or process-level availability failure.
    impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    on Jul 14, 2026
  4. clawsweeper commented on Jul 14, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 14, 2026, 8:50 PM ET / July 15, 2026, 00:50 UTC.

    Summary
    Keep this issue open for targeted evidence collection. The original Ubuntu SQLite-package diagnosis is contradicted by the reporter’s later plugin-registry diagnosis, but the reported post-update gateway startup blocker remains unresolved and current main is not proven to repair that state automatically.

    Reproducibility: no. The report gives a high-level update-and-start sequence, but no fatal log, doctor output, conflicting record sample, or controlled confirmation distinguishes the SQLite-package theory from the later plugin-metadata theory.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Include the exact command, prompt, or workflow that triggered it.
    • Add expected vs actual behavior.

    Next step
    Do not queue an implementation until a redacted startup failure bundle and the conflicting plugin records identify the fatal code path; likely related people are shakkernerd (high confidence), Vincent Haupert (medium), and steipete (medium).

    Review details

    Best possible solution:

    Reproduce the conflicting file/SQLite plugin-record state on v2026.7.1 or current main, then make startup report the exact conflict and provide an idempotent in-product repair—preferably automatic reconciliation or a clearly offered Doctor/Fix action—without requiring package downloads or manual state-file edits.

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

    No. The report gives a high-level update-and-start sequence, but no fatal log, doctor output, conflicting record sample, or controlled confirmation distinguishes the SQLite-package theory from the later plugin-metadata theory.

    Is this the best way to solve the issue?

    Unclear. Better dependency messages would help generally, but the narrow maintainable fix depends on proving whether startup should reconcile conflicting plugin records, direct Doctor to repair them, or merely expose a hidden fatal error.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The fatal gateway error and exact owner path remain unknown because the report contains no startup logs or doctor output.
    • The reporter performed two different recovery actions—installing Debian SQLite packages and quarantining plugin metadata—so neither action can yet be isolated as necessary or sufficient.
    • Manually installing Debian packages from outside the Ubuntu distribution or deleting registry state could introduce unsupported system or plugin-state changes and should not become the documented recovery path.

    Codex review notes: model internal, reasoning high; reviewed against 525db34f80f4.

    Label changes

    Label changes:

    • remove maturity:stable: Current issue review selected no maturity labels.

    Label justifications:

    • P0: A supported npm update reportedly left the gateway unable to start, and recovery required manual system-package or internal-state intervention.
    • impact:crash-loop: The reported failure prevents the gateway process from reaching a usable running state after upgrade.
    • impact:ux-release-blocker: The user had no actionable startup or doctor guidance and resorted to package installation and manual plugin-index quarantine.
    Evidence reviewed

    What I checked:

    • Reporter diagnosis changed: The report initially blamed an unavailable SQLite version, but the reporter later said stale installs.json records conflicted with newer SQLite-backed records and that quarantining the stale index restored operation.
    • System SQLite version is not established as the release requirement: OpenClaw documents Node's built-in SQLite as the preferred state database path, while the v2026.7.1 release includes Linux gateway smoke validation; this does not support closing the issue, but it makes the claimed Ubuntu package-version requirement unlikely to be the demonstrated root cause. Public docs: docs/help/environment.md. (docs/help/environment.md, 525db34f80f4)
    • Plugin metadata conflict is a recognized state condition: Current documentation describes persisted plugin installation records and doctor-managed plugin state, while related repository discussion documents conflicting file and SQLite plugin metadata as a real migration condition. Public docs: docs/plugins/plugin-management.md. (docs/plugins/plugin-management.md, 525db34f80f4)
    • Current main is not proven to fix this startup failure: No supplied log identifies the fatal startup exception, no linked fix PR owns this report, and the available current-main documentation still treats plugin-index conflict handling as diagnostic or repair state rather than proving automatic recovery. (525db34f80f4)
    • Release context: The affected release is v2026.7.1 at 2d2ddc43d0dcf71f31283d780f9fe9ff4cc04fe4; available release notes include Linux gateway smoke coverage but no identified fix for the reporter's conflicting plugin-record state. (CHANGELOG.md, 2d2ddc43d0dc)

    Likely related people:

    • shakkernerd: Recent merged work credited to this contributor covers plugin installation indexes, cold registry behavior, and gateway startup planning around persisted plugin metadata. (role: recent plugin-registry contributor; confidence: high; files: src/plugins/install-index.ts, src/plugins/discovery.ts, src/plugins/loader.ts)
    • Vincent Haupert: Repository history and discussion connect this contributor to the persisted plugin installation-record design and conflict handling between file and SQLite state. (role: plugin install-state contributor; confidence: medium; files: src/plugins/install-index.ts, src/commands/doctor.ts)
    • steipete: Recent plugin registry and startup-index changes were committed or merged through this account, making it a useful routing candidate for the intended upgrade behavior. (role: reviewer and merger of adjacent registry work; confidence: medium; files: src/plugins/install-index.ts, src/plugins/loader.ts)
    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.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  5. added
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    and removed
    maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.
    on Jul 15, 2026
  6. Nattle commented on Jul 15, 2026

    @Nattle
    Author

    Root cause summary

    An OpenClaw update left plugin installation metadata inconsistent between two state stores:

    • Legacy index: ~/.openclaw/plugins/installs.json
    • Current shared SQLite state: ~/.openclaw/state/openclaw.sqlite

    The legacy index contained older Brave and Codex records (2026.5.27), while SQLite contained updated records (2026.7.1). It also retained an Honcho record that was no longer needed.

    During startup, OpenClaw detected conflicting metadata for brave, codex, and openclaw- honcho. Its migration logic preserved the legacy index rather than resolving or removing it, then treated the incomplete migration as fatal:

    OpenClaw startup migrations did not complete cleanly; refusing to report the gateway ready.

    Neither openclaw doctor --fix nor openclaw plugins registry --refresh resolved the conflicting legacy file.

    The issue was fixed by backing up and quarantining the stale installs.json, refreshing the registry from SQLite/current installations, leaving Honcho uninstalled, and re-enabling Brave. Afterward, plugin diagnostics reported no issues and the gateway started normally on OpenClaw 2026.7.1.

  7. steipete commented on Jul 27, 2026

    @steipete
    Contributor

    Thank you for posting the actual diagnosed root cause. The failure was conflicting legacy plugins/installs.json versus canonical state/openclaw.sqlite, rather than Ubuntu's system SQLite version. This exact upgrade blocker is fixed on main by #107961 (ef110e9): doctor and startup preserve authoritative SQLite records, merge genuinely missing legacy entries, archive conflicting retired metadata, and converge cleanly on reruns. The merged proof includes the exact conflicting-install regression, 141 passing migration tests, a packaged gateway upgrade, repeated successful doctor runs, and a healthy gateway readiness probe. Closing as completed; thank you for documenting the real cause.

  8. locked as resolved and limited conversation to collaborators on Sep 26, 2026
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

    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions