Skip to content

[Bug]: update to openclaw 2026.7.1: gateway fails to start w/ error #108435

Closed

Description

@leder11011

openclaw-2026-07-15.log

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

gateway doesn't start with

  • systemd
  • ollama
  • manual launch

Error: gateway did not start on 127.0.0.1:18789

Pls have a look!

Steps to reproduce

  1. update to openclaw 2026.7.1
  2. openclaw gateway run --force

Expected behavior

CLI is available

Actual behavior

Starting gateway...
Error: gateway did not start on 127.0.0.1:18789

OpenClaw version

2026.7.1

Operating system

manjaro testing

Install method

npm

Model

qwen3.6:35b-a3b

Provider / routing chain

openclaw -> ollama -> qwen3.6

Additional provider/model setup details

No response

Logs

Screenshots, recordings, and evidence

No response

Impact and severity

regression and no workaround for starting service

Additional information

last known good version 2026.6

Activity

  1. c0ncatenate commented on Jul 15, 2026

    @c0ncatenate

    I’m seeing the same regression after upgrading from 2026.6.11 to 2026.7.1.

    In my case, the gateway also fails to start, but the logs show an earlier Codex plugin registration error:

    [plugins] codex failed during register:
    TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore')
    

    This is followed by:

    Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: brave, codex
    

    The gateway then refuses to become ready because the startup migrations did not complete cleanly. Running openclaw doctor --fix and restarting the gateway did not resolve it.

    I installed through npm and upgraded directly from 2026.6.11 to 2026.7.1.

  2. Tempest2488 commented on Jul 15, 2026

    @Tempest2488

    I am also facing the same exact issue

  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.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    on Jul 16, 2026
  4. clawsweeper commented on Jul 16, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 4, 2026, 10:10 PM ET / September 5, 2026, 02:10 UTC.

    Summary
    Keep open: released startup-warning improvements and the merged plugin-import fix do not establish resolution of the original no-Codex Manjaro failure, which the reporter explicitly reconfirmed on August 15.

    Reproducibility: no. high-confidence current-main reproduction is established. The original log could not be retrieved here, and the inspected migration tests do not reproduce the stock Manjaro/Ollama installation.

    Ways to help us reproduce this

    • Add expected vs actual behavior.

    Next step
    Retrieve the existing July 15 log first and match its earliest fatal error against released fixes; if still unresolved, obtain a redacted current-version foreground trace and gateway status --deep output before selecting a repair.

    Review details

    Best possible solution:

    Restore stock-install startup at the actual failing owner while preserving state and safety checks, with any necessary recovery exposed through a clear Doctor/Fix action.

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

    No high-confidence current-main reproduction is established. The original log could not be retrieved here, and the inspected migration tests do not reproduce the stock Manjaro/Ollama installation.

    Is this the best way to solve the issue?

    Unclear until the first fatal error identifies the failing owner. Blanket warning suppression is not a justified repair: advisory warnings already permit startup in v2026.9.1, while unsafe-state failures must remain blocking.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The original installation's fatal error has not been matched to an owned source path; the existing log was inaccessible during this review.
    • Persistence of the no-Codex failure on v2026.9.1 remains unknown, and the August 15 confirmation does not identify a newer tested version.

    Codex review notes: model internal, reasoning high; reviewed against 7d1e6227bd55.

    Label changes

    Label changes:

    • add P0: The reported upgrade leaves both supervised and foreground Gateway startup unavailable, with no working recovery reported for the original installation.
    • add impact:ux-release-blocker: The community user's post-update bot is blocked, and the remaining recovery path depends on terminal diagnostics or developer assistance.
    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • remove P1: Current review triage priority is P0, so this older priority label is no longer current.
    • remove issue-rating: 🦐 gold shrimp: Current issue advisory state no longer selects this label.

    Label justifications:

    • P0: The reported upgrade leaves both supervised and foreground Gateway startup unavailable, with no working recovery reported for the original installation.
    • impact:crash-loop: The issue concerns Gateway process availability, including failure to start and restart loops reported in the discussion.
    • impact:ux-release-blocker: The community user's post-update bot is blocked, and the remaining recovery path depends on terminal diagnostics or developer assistance.
    • maturity:stable: The broken existing foreground-startup contract belongs to Gateway runtime, M4 Stable, specifically its Gateway Lifecycle category.
    Evidence reviewed

    What I checked:

    • Original report remains distinct: The reporter explicitly states that the stock installation has no Codex plugin and still fails on 2026.7.1-2, then reconfirms the unresolved no-Codex failure on August 15. Other participants' recovery reports therefore cannot establish resolution of this installation. See [Bug]: update to openclaw 2026.7.1: gateway fails to start w/ error #108435 (comment) and [Bug]: update to openclaw 2026.7.1: gateway fails to start w/ error #108435 (comment).
    • Reviewed checkout and fetched-main distinction: The checkout is cd235ce, not the fetched-main SHA. Raw commit inspection identifies it as the immediate parent of fetched main 7d1e622; the inspected startup and migration files have no differences between these revisions. The origin URL identifies this repository as openclaw/openclaw. (cd235ceefe04)
    • Existing diagnostic attachment could not be inspected: The original July 15 log is linked in the report, but retrieval failed because this environment could not resolve github.com. The prepared media manifest records HTTP 404 for the quoted Windows screenshot; attempting its canonical attachment URL also failed DNS resolution. These are reviewer access limitations, not evidence that the reporter supplied no diagnostics. Live canonical-search attempts likewise could not connect to GitHub.
    • Current startup distinguishes warnings from blocking failures: Startup preflight records advisory migration warnings rather than rejecting readiness, while withholding successful migration checkpoints. Invalid configuration and blocking plugin-verification diagnostics still reject startup. The caller collects migration results in doctor-config-preflight.ts before invoking this completion boundary. (src/commands/doctor-config-preflight-startup.ts:133, cd235ceefe04)
    • Related improvement is released, not main-only: The v2026.9.1 tag resolves to ad6fe23 and contains the warning-only startup handling. Its startup-completion and warning-reporting modules match the checkout. This proves a relevant released improvement, but not that the original installation failed because of advisory warnings. (src/commands/doctor-config-preflight-startup.ts:133, ad6fe23aecb9)
    • Focused regression coverage inspected: The warning-only startup cases expect preflight to succeed, retain repair guidance, release the lease, and avoid certifying unfinished migrations; the adjacent migration-error case still expects rejection. These tests were read, not executed, and do not reproduce the reporter's installation. (src/commands/doctor-config-preflight.state-migration.test.ts:880, cd235ceefe04)

    Likely related people:

    • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    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. ChrisSeVa1 commented on Jul 16, 2026

    @ChrisSeVa1

    I reproduced this on Ubuntu 24.04 with both 2026.7.1 and 2026.7.2-beta.1.

    Environment
    Ubuntu 24.04
    npm installation
    systemd user gateway
    Previous working version: 2026.6.11
    External plugin: @openclaw/codex
    Gateway port: 18789
    Initial failure on 2026.7.1

    After upgrading from 2026.6.11 to 2026.7.1, the gateway entered a systemd restart loop.

    The fatal startup error was:

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

    • Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: codex
      Run "openclaw doctor --fix" against the mounted state/config, then restart the container.

    I stopped the gateway and ran:

    openclaw doctor --fix
    openclaw update repair

    Both completed, but the Codex metadata warning remained. A clean gateway start still failed with the same warning treated as fatal.

    Codex state was otherwise healthy

    After rollback, runtime inspection showed:

    plugin: codex
    version: 2026.6.11
    trustedOfficialInstall: true
    enabled: true
    activated: true
    status: loaded
    dependencyStatus.installed: true
    missing dependencies: none

    All six enabled plugins loaded successfully.

    Retest on 2026.7.2-beta.1

    I then tested 2026.7.2-beta.1, expecting the legacy-state migration changes from #107002 to resolve the startup lockout.

    The beta still did not resolve the existing Codex plugin install metadata conflict.

    More importantly, the beta migrated the shared state database:

    /home/ubuntu/.openclaw/state/openclaw.sqlite

    from schema version 1 to schema version 2.

    After downgrading the binary back to 2026.6.11, the CLI could no longer start:

    OpenClaw state database /home/ubuntu/.openclaw/state/openclaw.sqlite uses newer schema version 2; this OpenClaw build supports 1.

    The systemd service also remained written for the beta:

    Description=OpenClaw Gateway (v2026.7.2-beta.1)
    Environment=OPENCLAW_SERVICE_VERSION=2026.7.2-beta.1

    A binary-only rollback was therefore impossible. Recovery required restoring the full pre-beta ~/.openclaw backup, then reinstalling the 2026.6.11 gateway service and matching Codex plugin.

    Working recovery

    The system was restored only by:

    Stopping the gateway.
    Preserving the beta state directory separately.
    Restoring the complete pre-beta ~/.openclaw backup.
    Reinstalling openclaw@2026.6.11.
    Reinstalling @openclaw/codex@2026.6.11.
    Reinstalling the systemd gateway service.
    Expected behavior

    At minimum:

    doctor --fix should either reconcile the conflicting Codex install metadata or print the exact conflicting fields and a supported remediation.
    A retained legacy plugin-install warning should not permanently block gateway readiness when the installed plugin loads successfully.
    Prerelease upgrade documentation should explicitly warn that shared-state schema upgrades may require a full state backup for rollback.
    Ideally, provide a supported state-schema downgrade or export/import recovery path.
    Related
    #103076
    #107002
    Codex plugin install metadata conflict
    Shared SQLite schema migration from version 1 to version 2

  6. aurorabot-codex commented on Jul 17, 2026

    @aurorabot-codex

    Additional packaged reproduction on Windows after upgrading to stable 2026.7.1:

    • OpenClaw core: 2026.7.1 (2d2ddc4)
    • Node: v26.5.0
    • npm-managed @openclaw/codex@2026.7.1
    • Codex CLI: 0.144.5

    The gateway can start in this case, and both openclaw plugins registry --refresh and openclaw plugins doctor complete successfully. However, any CLI path that activates the Codex runtime command reproduces the registration failure:

    [plugins] codex failed during register ... TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore')
    

    Reinstalling the exact package through the official manager did not change the result:

    openclaw plugins install '@openclaw/codex@2026.7.1' --force --pin
    openclaw plugins registry --refresh
    openclaw plugins doctor
    openclaw codex --help

    The first three commands pass; the last command reproduces openSyncKeyedStore during plugin registration.

    A plugin-only rollback is a working mitigation on this host:

    openclaw plugins install '@openclaw/codex@2026.6.10' --force --pin
    openclaw plugins registry --refresh
    openclaw plugins doctor
    openclaw codex --help

    With core 2026.7.1 and Codex plugin 2026.6.10, the registration error disappears and plugin doctor remains clean. The final command then only emits the expected notice that codex is a runtime slash command rather than a CLI command.

    This narrows the issue to the packaged @openclaw/codex@2026.7.1 registration/runtime-state contract, independently of the shared plugin-index conflict described elsewhere in this issue.

  7. zihao-0227 commented on Jul 18, 2026

    @zihao-0227

    Same problem on Windows(Windows server 2022,npm vision)

    Try openclaw update command,Update fail,prompt gateway update error.

    Roll back to 2026.6.11,but gateway broken,openclaw doctorcan't fix this problem.

  8. zihao-0227 commented on Jul 18, 2026

    @zihao-0227

    Same problem on Windows(Windows server 2022,npm vision)Windows 系统出现相同问题(Windows server 2022,npm vision)

    Try openclaw update command,Update fail,prompt gateway update error.尝试执行 openclaw update 命令,更新失败,提示网关更新错误。

    Roll back to 2026.6.11,but gateway broken,openclaw doctorcan't fix this problem.回退到2026年6月11日,但网关出现故障,openclaw doctor命令无法修复该问题。

    These are some files I just sorted out.

    openclaw-bug-report-20260718-sanitized.zip

  9. 18 remaining items

  10. added
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    P1High-priority user-facing bug, regression, or broken workflow.
    and removed
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.
    on Aug 27, 2026
  11. added
    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.
    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.
    and removed
    P1High-priority user-facing bug, regression, or broken workflow.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    on Sep 5, 2026
  12. steipete commented on Sep 14, 2026

    @steipete
    Contributor

    Closing the Gateway-startup refusal as fixed by #135713 (8c5442c01bb), shipped in v2026.9.1: the web-search packaging problem in your log is now recorded as an advisory warning by the startup preflight (src/commands/doctor-config-preflight-startup.ts) instead of refusing startup. If the installed updater fails on the first hop, run npm i -g openclaw@latest, then openclaw doctor and openclaw gateway restart. Please reopen with the current first fatal startup error if a current release still refuses to start.

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.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.regressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions