-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
openclaw update fails to refresh gateway service environment when systemd unit scope is missing/mismatched #87490
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
After running
openclaw updatefrom the CLI, the update appeared to install the new package but failed while refreshing the gateway service environment from the updated install. A full server reboot recovered the gateway.Environment
2026.5.26(10ad3aa)22.22.2Error
The CLI update path printed an error like:
After rebooting the server, the gateway came back normally.
Expected behavior
openclaw updateshould refresh/restart the correct gateway service after updating, or at least detect whether the installation is using a user systemd unit versus a system-level unit and call the matchingsystemctl --user/ system-level command.Actual behavior
The refresh/install step attempted to enable
openclaw-gateway.servicebut failed because the unit file was not found in the scope it used. The gateway was left in a state where manual server reboot was needed to recover.Why this might be happening
This looks like a service-scope mismatch during the post-update refresh path:
systemctl enablepath that cannot find the expected unit.Suggested fix
systemctl --userwhen the active gateway is a user service.openclaw doctoror provide a precise command for recovery.