Repository navigation
Closed
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A 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.Thin issue quality; more reproduction proof or environment detail is needed.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
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
- update to openclaw 2026.7.1
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
Reacted by clawsweeper, ZikiaH Sun and Patrick
Reacted by Shad0w, c0ncatenate, Sophia_Amadeus and clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A 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.Thin issue quality; more reproduction proof or environment detail is needed.maturity:stableBroken existing behavior primarily owned by an M4/M5 scorecard surface.Broken existing behavior primarily owned by an M4/M5 scorecard surface.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Priority
None yet
Activity
c0ncatenate commentedon Jul 15, 2026
I’m seeing the same regression after upgrading from
2026.6.11to2026.7.1.In my case, the gateway also fails to start, but the logs show an earlier Codex plugin registration error:
This is followed by:
The gateway then refuses to become ready because the startup migrations did not complete cleanly. Running
openclaw doctor --fixand restarting the gateway did not resolve it.I installed through
npmand upgraded directly from2026.6.11to2026.7.1.Tempest2488 commentedon Jul 15, 2026
I am also facing the same exact issue
clawsweeper commentedon Jul 16, 2026
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
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:
Codex review notes: model internal, reasoning high; reviewed against 7d1e6227bd55.
Label changes
Label changes:
P0: The reported upgrade leaves both supervised and foreground Gateway startup unavailable, with no working recovery reported for the original installation.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.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.P1: Current review triage priority is P0, so this older priority label is no longer current.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:
src/commands/doctor-config-preflight-startup.ts:133, cd235ceefe04)src/commands/doctor-config-preflight-startup.ts:133, ad6fe23aecb9)src/commands/doctor-config-preflight.state-migration.test.ts:880, cd235ceefe04)Likely related people:
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 autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.ChrisSeVa1 commentedon Jul 16, 2026
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.
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
aurorabot-codex commentedon Jul 17, 2026
Additional packaged reproduction on Windows after upgrading to stable
2026.7.1:2026.7.1(2d2ddc4)v26.5.0@openclaw/codex@2026.7.10.144.5The gateway can start in this case, and both
openclaw plugins registry --refreshandopenclaw plugins doctorcomplete successfully. However, any CLI path that activates the Codex runtime command reproduces the registration failure:Reinstalling the exact package through the official manager did not change the result:
The first three commands pass; the last command reproduces
openSyncKeyedStoreduring plugin registration.A plugin-only rollback is a working mitigation on this host:
With core
2026.7.1and Codex plugin2026.6.10, the registration error disappears and plugin doctor remains clean. The final command then only emits the expected notice thatcodexis a runtime slash command rather than a CLI command.This narrows the issue to the packaged
@openclaw/codex@2026.7.1registration/runtime-state contract, independently of the shared plugin-index conflict described elsewhere in this issue.zihao-0227 commentedon Jul 18, 2026
Same problem on Windows(Windows server 2022,npm vision)
Try
openclaw updatecommand,Update fail,prompt gateway update error.Roll back to 2026.6.11,but gateway broken,
openclaw doctorcan't fix this problem.zihao-0227 commentedon Jul 18, 2026
These are some files I just sorted out.
openclaw-bug-report-20260718-sanitized.zip
18 remaining items
steipete commentedon Sep 14, 2026
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, runnpm i -g openclaw@latest, thenopenclaw doctorandopenclaw gateway restart. Please reopen with the current first fatal startup error if a current release still refuses to start.