-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Updater can leave managed gateway stopped when transient update handoff fails #92088
Copy link
Copy link
Closed
Closed
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
openclaw update/ the managed update handoff can stopopenclaw-gateway.serviceand then fail before restarting it, leaving OpenClaw completely unresponsive.What happened
On a systemd-managed npm install, the update flow created/used
openclaw-update.service. The logs showed:After that, the gateway remained down:
openclaw statuscould not get a live gateway response until the service was manually restarted.Expected behavior
If the update handoff fails at any point after stopping the managed gateway, OpenClaw should make a best-effort attempt to restart the previous gateway service. The updater should not leave the primary gateway stopped just because the update command failed.
Actual behavior
The gateway was stopped first, then the transient update unit failed with exit
127, and no restart/fallback happened. This caused a full outage for channel responses.Environment
2026.6.12026.6.5openclaw-gateway.service18789Local wrinkle that exposed this
This host also has a local
systemctlwrapper that intentionally blocks accidental manualsystemctl stop openclaw-gateway.service. That made one manual recovery path noisier, but the original outage came from the OpenClaw-managed transient update unit stopping the gateway and then failing before restart.The updater should either:
trap/finally handler in the handoff script to restartopenclaw-gateway.serviceif any post-stop step fails.Recovery performed
Manual recovery was:
The update then completed and restarted the gateway successfully.
Additional note
After recovery,
restart-sentinel.jsonstill reported an oldupdate-restart-pendingstatus from the failed handoff until it was manually moved aside. It may be worth clearing or superseding stale restart sentinels after a later successful update/restart.