Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
During openclaw update from 2026.10.5-beta.1 to 2026.10.5-beta.2, the candidate config reader failed three times, the systemd unit was left unchanged, and the Gateway was restarted from that unit.
Steps to reproduce
- npm-global OpenClaw 2026.10.5-beta.1 (
f283c3c) on Debian 13, user systemd serviceopenclaw-gateway.servicerunning. - Run
openclaw update --channel beta --tag 2026.10.5-beta.2 --yes. - Watch the activating phase, after the updater stops the managed Gateway.
Expected behavior
A config read that fails during the pre-stop unit refresh should surface the child error. The unit refresh should either complete or stop the swap. Previously filed as #169261, which was closed on 2026-10-12. This run still hit the failure on the way to 2026.10.5-beta.2.
Actual behavior
The update printed this once while stopping the Gateway, still on beta.1:
[update:warning:candidate-config-read-failed] Candidate config read failed; the existing service definition was left unchanged. Retry with the updated CLI.
Stopped systemd service: openclaw-gateway.service
After the package on disk was 2026.10.5-beta.2 (467e83d), the same step printed twice:
[update:warning:candidate-config-read-failed] Candidate config read failed: reader process exited with code 1 without a result. The existing service definition was left unchanged. Retry with the updated CLI.
The log then said Gateway service definition left unchanged; ask its deployment owner to repair stale metadata if needed. The service was restarted and the updater recorded Gateway: restarted and verified. The final result was OpenClaw updated to 2026.10.5-beta.2 (from 2026.10.5-beta.1).
The installed beta.2 dist/io.runtime.js builds that warning in finish(). On a non-zero exit with no result frame, failureReason() returns reader process exited with code N without a result. The async reader calls child.stderr.resume() and does not include stderr in the warning.
OpenClaw version
2026.10.5-beta.1 (f283c3c) updating to 2026.10.5-beta.2 (467e83d)
Operating system
Debian GNU/Linux 13 (trixie), Linux 6.12.111+deb13-amd64
Install method
npm global, Node v24.16.0
Model
NOT_ENOUGH_INFO
Provider / routing chain
NOT_ENOUGH_INFO
Additional provider/model setup details
NOT_ENOUGH_INFO
Logs
Stopping managed gateway service before package update...
[update:warning:candidate-config-read-failed] Candidate config read failed; the existing service definition was left unchanged. Retry with the updated CLI.
Stopped systemd service: openclaw-gateway.service
[update:warning:candidate-config-read-failed] Candidate config read failed: reader process exited with code 1 without a result. The existing service definition was left unchanged. Retry with the updated CLI.
[update:warning:candidate-config-read-failed] Candidate config read failed: reader process exited with code 1 without a result. The existing service definition was left unchanged. Retry with the updated CLI.
Gateway service definition left unchanged; ask its deployment owner to repair stale metadata if needed.
Restarting service...
Gateway: restarted and verified.
Screenshots, recordings, and evidence
Follow-up to closed #169261. That report's review said main still discards compatibility-reader failure details. This run is a live beta.1 to beta.2 reproduction, and the later warnings now include reader process exited with code 1 without a result.
Impact and severity
Affected: this npm-global Linux update of the user Gateway service.
Severity: the swap completed, but the unit metadata was left stale and the child failure reason was not logged.
Frequency: 3 failures in this one update (1 before the stop, 2 after the new package was on disk).
Consequence: the operator is told to retry with the updated CLI while that CLI is already running, and to repair stale service metadata after a verified restart.
Additional information
Final phases: requested 35.03s, staging 1.49s, validating 551.93s, activating 764.41s, restarting 83.72s, verifying 92.13s. Gateway downtime recorded as 724.83s. Recorded verification: service running (2026.10.5-beta.2); version verified; channels ready; HTTP ready.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
DonnieFi commentedon Oct 12, 2026
The open event was dispatched, but the ClawSweeper review queue returned HTTP 500 on all 4 attempts: https://github.com/openclaw/clawsweeper/actions/runs/38316484750
Commenting so intake runs again.
DonnieFi commentedon Oct 12, 2026
/review
clawsweeper commentedon Oct 12, 2026
🦞👀
Exact review queued.
Re-review progress:
clawsweeper commentedon Oct 12, 2026
Codex review: this still needs some work.
Summary
Keep open: this issue reports a fresh failure on an official beta update, while the merged diagnostic repair covers error frames and exit facts without explaining this reader's exit.
Reproducibility: The report supplies an official affected version and concrete logs, and source confirms the warning path; no deterministic reproduction of the unexplained Debian exit was established in this read-only review.
Next step
Establish a sanitized reproduction of the beta.2 reader exit and compare the retained unit with the intended definition before selecting a focused repair.
Review details
Best possible solution:
Identify and repair the reader's unexplained exit while preserving best-effort updates, service ownership checks, and private config diagnostics.
Do we have a high-confidence way to reproduce the issue?
The report supplies an official affected version and concrete logs, and source confirms the warning path; no deterministic reproduction of the unexplained Debian exit was established in this read-only review.
Is this the best way to solve the issue?
Investigating why the reader fails before returning a usable frame is appropriate; echoing raw stderr or aborting every optional read failure would override documented behavior without establishing the cause.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 861eb94f2630.
Label changes
Label changes:
P2: An official update encountered repeated config-reader failures, but package activation and Gateway verification succeeded.impact:ux-friction: The exit-only warning and repeated updated-CLI advice leave the operator investigating skipped service preparation.issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.Label justifications:
P2: An official update encountered repeated config-reader failures, but package activation and Gateway verification succeeded.impact:ux-friction: The exit-only warning and repeated updated-CLI advice leave the operator investigating skipped service preparation.Evidence reviewed
What I checked:
scripts/lib/update-config-runtime-compat.mts:135, 861eb94f2630)scripts/lib/update-config-runtime-compat.mts:134, 467e83dea27c)test/scripts/update-config-runtime-compat.test.ts:90, 861eb94f2630)docs/install/updating.md:223, 861eb94f2630)scripts/lib/update-config-runtime-compat.mts:134, f67c8ffc7287)Likely related people:
scripts/lib/update-config-runtime-compat.mts)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 October 12, 2026, 6:34 PM ET / 22:34 UTC.
DonnieFi commentedon Oct 12, 2026
Base info after the ClawSweeper review. No fix PR: the review labeled this
clawsweeper:no-new-fix-prbecause the reader exit still has no deterministic cause.What this run established:
candidate-config-read-failedwarning and no child reason.467e83d):reader process exited with code 1 without a result.Gateway: restarted and verified.dist/io.runtime.jsfinish()turns a non-zero exit with no result frame into that warning. The async reader callschild.stderr.resume()and does not put stderr in the warning.Still missing, which is why this is not a fix PR: which reader operation exited, the child error that produced no frame, and which unit fields differed from the intended definition. The update itself completed.
DonnieFi commentedon Oct 12, 2026
More detail from the installed 2026.10.5-beta.2 reader and this run's record. Still no fix PR.
The two warnings after the package on disk used
reader process exited with code 1 without a result. Installeddist/io.runtime.jsfailureReason()returns that sentence only when stdout is not a length-prefixed JSON frame. A frame withok: falsewould have included the childmessageandcode. This run did not have that frame.The async reader calls
child.stderr.resume()and does not attach stderr to the warning. The worker writes its result frame withfs.writeFileSync(1, ...)after pointing console at stderr. Exit 1 with no frame means the child ended before that frame was written. The warning does not name the operation. The reader request is one ofreadBestEffortConfig,readConfigFileSnapshot,loadConfig, orreadCurrentConfigForPolicyCheck.The update run record has no service-definition step and no stored field diff. The loaded user unit still starts
nodeon the npm-globalopenclaw/dist/index.jsgateway entry, and it has user drop-ins. I do not have a before/after of unit fields, so I cannot say which field was stale. The failed read's own message says the definition was left unchanged for every failed read. The later lineGateway service definition left unchanged; ask its deployment owner to repair stale metadata if needed.is the separate preserve-definition path: the service verdict is unresolved, or it is owned withrefreshDefinitionfalse.The doctor spinner repeated the earlier generic warning in the scroll capture. The distinct events are that pre-swap warning and the two no-frame warnings.
steipete commentedon Oct 13, 2026
Thanks. On 2026.10.5-beta.2 the reader now reports the exit (#169284), but its stderr is still withheld, so the crash cause isn't visible. Leaving the unit unchanged is the intended best-effort fallback, and the Gateway restarted and verified. Could you run
OPENCLAW_UPDATE_IN_PROGRESS=1 openclaw config get gateway(oropenclaw doctor) on beta.2 and share any crash output? We'll also surface a bounded, redacted stderr tail.DonnieFi commentedon Oct 13, 2026
Ran both on beta.2 (
OpenClaw 2026.10.5-beta.2 (467e83d), Linux, Node v24.16.0 via nvm):OPENCLAW_UPDATE_IN_PROGRESS=1 openclaw config get gatewayreturned exit 0 with the full gateway block on stdout and nothing on stderr.openclaw doctorreturned exit 0 ("Doctor complete.") with no crash or stack trace.So the candidate config read doesn't fail when it's run on its own outside the update. It only exits 1 inside the update flow. Doctor's findings, none of them config-read errors:
gateway.auth.password,models.providers.cursor-cli.apiKey), gateway bound to lanallowLegacyAuth=trueopencodeduplicate id (config plugin overrides global), and it needs capability consentgogshadows the bundled oneOne thing that might matter: the opencode duplicate and capability-consent warning, if the update's candidate read validates plugins more strictly. I can rerun the update with any debug env you'd like.
DonnieFi commentedon Oct 13, 2026
Same failure on the update from 2026.10.5-beta.2 (
467e83d) to 2026.10.5-beta.3 (1808b57), npm global on the same Debian 13 host, user systemd serviceopenclaw-gateway.service.Command:
openclaw update --tag 2026.10.5-beta.3 --yes. The run completed. Recorded verification: service running (2026.10.5-beta.3); version verified; channels ready; HTTP ready. Phases: requested 46.05s, staging 1.5s, validating 564.54s, activating 703.03s, restarting 83.86s, verifying 97.6s. Gateway downtime 727.46s.During activation, after post-install doctor and plugin convergence, the updater printed this twice, then left the unit alone and restarted it:
No child stderr or result frame was included. The warning still says to retry with the updated CLI while that CLI is the one performing the restart. Update report:
~/.openclaw/update-reports/0c7f82f7-1db5-4030-a55c-0ab416da07aa.md.fix(update): service definition refresh skipped when the config snaps…
fix(update): service definition refresh skipped when the config snaps…
fix(update): service definition refresh skipped when the config snaps…
DonnieFi commentedon Oct 19, 2026
Same warning once, updating npm-global Debian 13 from 2026.10.5-beta.4 (6b4b2a9) to 2026.10.10-beta.2, while stopping user systemd service
openclaw-gateway.service:The updater then stopped the service and continued. The installed CLI now reports 2026.10.10-beta.2 (2b85c4c). The warning has not repeated in the post-install doctor output.
#170373 (
043614d9c34f3f6fe337079d3a4a4a038880c020) is in tagv2026.10.10-beta.2(compare statusahead,behind_by0). It is not inv2026.10.5-beta.4(compare statusdiverged).fix(update): service definition refresh skipped when the config snaps…