Skip to content

docs: make the manual service-account update end with a running Gateway - #208629

Merged
fuller-stack-dev merged 16 commits into
openclaw:mainfrom
fuller-stack-dev:docs/system-unit-manual-update-reset-failed
Nov 29, 2026
Merged

fuller-stack-dev merged 16 commits into
openclaw:mainfrom
fuller-stack-dev:docs/system-unit-manual-update-reset-failed

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Related: #206343

What Problem This Solves

On Linux, a common layout is a root-owned global npm install of OpenClaw serving a systemd system unit whose User= is a service account. When an already-published updater (2026.11.10 or 2026.11.12) runs sudo openclaw update, the new release refuses and links the manual procedure in "Linux system service run by another account". Its step 3 installs the package and then runs a plain systemctl restart. On a slow install that restart is refused and the Gateway stays down: while npm replaces the package, the running Gateway notices the change, restarts into the partly written package and fails until npm finishes, and the unit reaches systemd's start limit.

User Impact

Step 3 now clears the unit's failed state before restarting it, and does both only after the install succeeds:

sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service

The restart is always attempted after a successful install, including when reset-failed reports an error (|| true keeps it best effort under set -e too), which matches main's page: main also restarts unconditionally after the install. Short prose after the block says why reset-failed is there, that --allow-scripts=openclaw is required under npm 12's default script policy, that the outage depends on install time (with the measured values and install lengths), and to run the same commands again after an interrupted install. The install command and the rest of the section are unchanged from main, and the anchor #linux-system-service-run-by-another-account, which shipped refusals link to, keeps working.

Why This Change Was Made

Each added sentence states a measured result. Earlier revisions also covered which npm root runs, the example version and the backup's working directory; those were cut because documentation cannot vouch for root's npm resolution, and the backup failure from root's home is a product bug that gets its own code fix.

Production net lines: 0 (docs only).

Update behavior: none changed. Operators on 2026.11.10 and 2026.11.12 reach this section through the refusal's link; the page is published from main.

Evidence

Two cells. Cell 1 ran the red/green start-limit pair and the unloaded-unit case on 9b0b6eb6033c, whose block differs from this head only by || true on the reset-failed line; cell 2 ran this head's block (cut at 7bce5a9d4544) with errexit. Cell 1, one container, run in order. Docker, Debian 12, systemd 252, Node 24.20.0, npm 11.19.0. Root-owned npm global install in /usr/local, unit openclaw-gateway.service with User=openclaw and the restart settings openclaw doctor recommends (RestartSec=5, StartLimitBurst=5 per 60 s). Driver: published 2026.11.12, installed as root with umask 022. Candidate: packed from this branch at df4c5e1ce4fa (production code identical to main at 42e5a830ca6c) under the unpublished version 2026.11.21, served by a local registry whose latest tag points at it. Each block was cut from the page (main at f3d7932f1eb1 for red, this branch at 9b0b6eb6033c for the rest) and pasted unchanged into a recorded root shell (umask 022, cwd /root) as one script traced with -x; output went through cat so systemctl and journalctl did not start a pager.

Slow install: the registry's responses were held to 12 Mbit/s (tc netem) with root's npm cache cleared, and a watcher lifted the throttle as soon as systemd logged Start request repeated too quickly, so npm finished inside the start-limit window.

Run Result
sudo openclaw update --yes exit 1 with the refusal; same PID, still 2026.11.12, /healthz 200
Red: main's block, slow install npm exit 0 after 3 min; the old Gateway logged Installation replaced, restarted into the partial package 6 times (ERR_MODULE_NOT_FOUND), reached the start limit; systemctl restart exit 1 (Job for openclaw-gateway.service failed because the control process exited with error code.); unit failed, /healthz 000, still down 60 s later
Harness reset reinstalled 2026.11.12 and restarted the unit (not part of the docs)
Green: this PR's block, bash, slow install npm exit 0 after 3 min; same 6 failed starts and start limit; reset-failed exit 0, restart exit 0; active on 2026.11.21; 59.3 s without a 200 from /healthz (probe every 250 ms)
Unloaded unit: stopped, disabled, daemon-reload (list-units --all empty); this PR's block under /bin/sh (dash) npm exit 0; reset-failed printed Failed to reset failed state of unit openclaw-gateway.service: Unit openclaw-gateway.service not loaded.; restart still ran and started the unit
Final state active, new PID running as openclaw, package 2026.11.21, /healthz 200; every entry under the service home owned by openclaw:openclaw before and after (listing below)

No failed start in the partly written package logged config, database, migration or plugin work (journal excerpts below).

Refusal:

c6-driver-2026.11.12-refusal.mp4

Red, main's block on a slow install:

c6-red-main-block-start-limit.mp4

Green, this PR's block on a slow install:

c6-green-new-block-start-limit.mp4

Unloaded unit, this PR's block under /bin/sh:

c6-unloaded-unit-new-block-sh.mp4
Refusal
⚠️ OpenClaw update failed: service-account-mismatch.
Update safety checks ran in the candidate updater (2026.11.21).
Failing check candidate-admission (service-account-mismatch): Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state.
This installed updater cannot safely update another account's state. Follow the manual package replacement and ownership-repair instructions at https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account.
exit 1 in 48s
Red: main's block, journal 23:19:20 to 23:23:47 (systemd lines, restart-into-partial-package lines)
2026-11-29T23:22:00+0000 17878a1416f4 node[375]: 2026-11-29T23:22:00.016+00:00 [gateway] Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T19-31-46.036Z; on-disk 2026.11.21 build 2026.11.21
2026-11-29T23:22:00+0000 17878a1416f4 node[375]: 2026-11-29T23:22:00.019+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-20
2026-11-29T23:22:00+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Deactivated successfully.
2026-11-29T23:22:00+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:05+0000 17878a1416f4 node[31688]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:22:05+0000 17878a1416f4 node[31688]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:22:05+0000 17878a1416f4 node[31688]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:22:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:10+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T23:22:10+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:10+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:10+0000 17878a1416f4 node[32331]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:22:10+0000 17878a1416f4 node[32331]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:22:10+0000 17878a1416f4 node[32331]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:22:10+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:22:10+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:15+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T23:22:15+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:15+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:15+0000 17878a1416f4 node[32987]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:22:15+0000 17878a1416f4 node[32987]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:22:15+0000 17878a1416f4 node[32987]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:22:15+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:22:15+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:20+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T23:22:20+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:20+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:20+0000 17878a1416f4 node[33606]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:22:20+0000 17878a1416f4 node[33606]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:22:20+0000 17878a1416f4 node[33606]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:22:20+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:22:20+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:26+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T23:22:26+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:26+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:26+0000 17878a1416f4 node[34247]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:22:26+0000 17878a1416f4 node[34247]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:22:26+0000 17878a1416f4 node[34247]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:22:26+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:22:26+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:31+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T23:22:31+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:31+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T23:22:31+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:31+0000 17878a1416f4 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:22:47+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T23:22:47+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:22:47+0000 17878a1416f4 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Red: main's block, terminal output
# umask 0022, shell bash (/usr/bin/bash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw
sudo systemctl restart openclaw-gateway.service
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
removed 1 package, and changed 375 packages in 3m
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl restart openclaw-gateway.service
Job for openclaw-gateway.service failed because the control process exited with error code.
See "systemctl status openclaw-gateway.service" and "journalctl -xeu openclaw-gateway.service" for details.
+ sudo systemctl status openclaw-gateway.service
× openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: failed (Result: exit-code) since Sun 2026-11-29 23:22:31 UTC; 16s ago
   Duration: 31ms
    Process: 34247 ExecStart=/usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789 (code=exited, status=1/FAILURE)
   Main PID: 34247 (code=exited, status=1/FAILURE)
        CPU: 36ms
Nov 29 23:22:26 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:31 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
Nov 29 23:22:31 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:31 17878a1416f4 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
Nov 29 23:22:31 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:31 17878a1416f4 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:47 17878a1416f4 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
Nov 29 23:22:47 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:47 17878a1416f4 systemd[1]: Failed to start openclaw-gateway.service - OpenCl
Green: this PR's block, journal 23:24:14 to 23:27:39
2026-11-29T23:26:40+0000 17878a1416f4 node[43363]: 2026-11-29T23:26:40.006+00:00 [gateway] Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T19-31-46.036Z; on-disk 2026.11.21 build 2026.11.
2026-11-29T23:26:40+0000 17878a1416f4 node[43363]: 2026-11-29T23:26:40.008+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-
2026-11-29T23:26:40+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Deactivated successfully.
2026-11-29T23:26:40+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 20.469s CPU time.
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 20.469s CPU time.
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:45+0000 17878a1416f4 node[64124]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:26:45+0000 17878a1416f4 node[64124]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/dist/cli-invocation-Covx3kvQ.mjs' imported from /usr/local/lib/node_modules/openclaw/dist/in
2026-11-29T23:26:45+0000 17878a1416f4 node[64124]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:26:45+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:26:50+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T23:26:50+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:50+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:50+0000 17878a1416f4 node[64776]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:26:50+0000 17878a1416f4 node[64776]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:26:50+0000 17878a1416f4 node[64776]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:26:50+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:26:50+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:26:55+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T23:26:55+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:55+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:26:55+0000 17878a1416f4 node[65413]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:26:55+0000 17878a1416f4 node[65413]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:26:55+0000 17878a1416f4 node[65413]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:26:55+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:26:55+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:27:00+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T23:27:00+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:00+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:00+0000 17878a1416f4 node[66044]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:27:00+0000 17878a1416f4 node[66044]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:27:00+0000 17878a1416f4 node[66044]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:27:00+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:27:00+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:27:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T23:27:05+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:05+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:05+0000 17878a1416f4 node[66688]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T23:27:05+0000 17878a1416f4 node[66688]: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/node_modules/@openclaw/fs-safe/path' imported from /usr/local/lib/node_modules/openclaw/dist
2026-11-29T23:27:05+0000 17878a1416f4 node[66688]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T23:27:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T23:27:05+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:27:11+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T23:27:11+0000 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:11+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T23:27:11+0000 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
2026-11-29T23:27:11+0000 17878a1416f4 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:28+0000 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T23:27:39+0000 17878a1416f4 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
Green: this PR's block, terminal output
# umask 0022, shell bash (/usr/bin/bash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
removed 1 package, and changed 375 packages in 3m
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl reset-failed openclaw-gateway.service
+ sudo systemctl restart openclaw-gateway.service
+ sudo systemctl status openclaw-gateway.service
● openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: active (running) since Sun 2026-11-29 23:27:28 UTC; 5ms ago
   Main PID: 69250 (MainThread)
      Tasks: 6 (limit: 19278)
     Memory: 3.6M
        CPU: 5ms
     CGroup: /system.slice/openclaw-gateway.service
             └─69250 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Nov 29 23:27:28 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
+ sudo journalctl -u openclaw-gateway.service
Nov 29 23:18:22 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:00 17878a1416f4 systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:22:00 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
Nov 29 23:22:05 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
Nov 29 23:22:05 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process e
Unloaded unit: unload step and this PR's block under /bin/sh
== unload 23:27:39
Removed "/etc/systemd/system/multi-user.target.wants/openclaw-gateway.service".
list-units: []
unit file: openclaw-gateway.service disabled enabled
healthz 000

# umask 0022, shell sh (/usr/bin/dash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
changed 375 packages in 24s
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl reset-failed openclaw-gateway.service
Failed to reset failed state of unit openclaw-gateway.service: Unit openclaw-gateway.service not loaded.
+ sudo systemctl restart openclaw-gateway.service
+ sudo systemctl status openclaw-gateway.service
● openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; disabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: active (running) since Sun 2026-11-29 23:28:07 UTC; 5ms ago
   Main PID: 74135 (MainThread)
      Tasks: 6 (limit: 19278)
     Memory: 3.4M
        CPU: 4ms
     CGroup: /system.slice/openclaw-gateway.service
             └─74135 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Nov 29 23:28:07 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
+ sudo journalctl -u openclaw-gateway.service
Nov 29 23:18:22 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:00 17878a1416f4 systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:22:00 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
Nov 29 23:22:05 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Consumed 22.587s CPU time.
Nov 29 23:22:05 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:22:05 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:10 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
Nov 29 23:22:10 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:10 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:10 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:22:10 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:15 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
Nov 29 23:22:15 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:15 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:15 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:22:15 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:20 17878a1416f4 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
Nov 29 23:22:20 17878a1416f4 systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:20 17878a1416f4 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:22:20 17878a1416f4 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:22:20 17878a1416f4 systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:22:26 17878a1416f4 sys
Unit, process, package and /healthz after each step
== before 23:18:27
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 23:18:21 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.12 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.12
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-refusal 23:19:20
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 23:18:21 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.12 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.12
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-red 23:22:47
unit=openclaw-gateway.service active=failed result=exit-code MainPID=0 NRestarts=6
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=2
== after-red-60 23:23:47
unit=openclaw-gateway.service active=failed result=exit-code MainPID=0 NRestarts=6
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=2
== after-reset 23:24:13
unit=openclaw-gateway.service active=active result=success MainPID=43363 NRestarts=0
  43363 openclaw Sun Nov 29 23:24:09 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.12 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.12
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=2
== after-green 23:27:28
unit=openclaw-gateway.service active=active result=success MainPID=69250 NRestarts=0
  69250 openclaw Sun Nov 29 23:27:27 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=3
== after-green-settle 23:27:39
unit=openclaw-gateway.service active=active result=success MainPID=69250 NRestarts=0
  69250 openclaw Sun Nov 29 23:27:27 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=3
== after-unloaded 23:28:07
unit=openclaw-gateway.service active=active result=success MainPID=74135 NRestarts=0
  74135 openclaw Sun Nov 29 23:28:07 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=3
== after 23:28:13
unit=openclaw-gateway.service active=active result=success MainPID=74135 NRestarts=0
  74135 openclaw Sun Nov 29 23:28:07 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=3

harness between red and green (puts 2026.11.12 back):
== oldagain 23:23:47
114 packages are looking for funding
  run `npm fund` for details
version 2026.11.12 healthz 200

start-limit watcher:
== watch from 23:19:20
23:22:31 start limit logged; lifting throttle
== watch from 23:24:14
23:27:11 start limit logged; lifting throttle

throttle:
== throttle on 23:19:20
qdisc netem 30: parent 1:3 limit 100000 rate 12Mbit
== throttle on 23:24:13
qdisc netem 30: parent 1:3 limit 100000 rate 12Mbit
Service home listing before (after seeding, before the update) and after the last run
== before
openclaw:openclaw drwxr-x--- /var/lib/openclaw
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.bash_logout
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.bashrc
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.npmrc
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/client
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/client/credentials.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/config-journal-fingerprint.key
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/control
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/control/services.sqlite
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/logs
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/logs/openclaw-2026-11-29.log
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/openclaw.json
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/openclaw.json.bak
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/state
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite-shm
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite-wal
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/agent-cli
openclaw:openclaw -rwx------ /var/lib/openclaw/.openclaw/tmp/agent-cli/openclaw
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/container
openclaw:openclaw -rwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/container/git
openclaw:openclaw -rwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/git
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/node-workspace-transfer
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/openclaw-997
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/tmp/openclaw-997/gateway.state.lock
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/tmp/openclaw-997/state.7c3e9f8fd7713066.lock
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.profile

== after
openclaw:openclaw drwxr-x--- /var/lib/openclaw
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.bash_logout
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.bashrc
openclaw:openclaw drwx------ /var/lib/openclaw/.cache
openclaw:openclaw drwx------ /var/lib/openclaw/.cache/openclaw
openclaw:openclaw drwx------ /var/lib/openclaw/.cache/openclaw/sqlite-72730c58e130d23ed9322d9c
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.npm
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.npm/_logs
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.npm/_logs/2026-11-29T23_18_30_299Z-debug-0.log
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.npm/_logs/2026-11-29T23_24_16_392Z-debug-0.log
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.npmrc
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/agents
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/agents/main
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/agents/main/agent
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/agents/main/agent/openclaw-agent.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/agents/main/agent/openclaw-agent.sqlite-shm
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/agents/main/agent/openclaw-agent.sqlite-wal
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.openclaw/agents/main/agent/openclaw-agent.sqlite.seal
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/client
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/client/credentials.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/config-journal-fingerprint.key
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/control
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/control/services.sqlite
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/logs
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/logs/openclaw-2026-11-29.log
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/media
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/media/outbound
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/media/playback-transcode
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/openclaw.json
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/openclaw.json.bak
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/openclaw.json.last-good
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.openclaw/plugin-skills
openclaw:openclaw lrwxrwxrwx /var/lib/openclaw/.openclaw/plugin-skills/browser-automation
openclaw:openclaw lrwxrwxrwx /var/lib/openclaw/.openclaw/plugin-skills/canvas
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/state
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw-quarantine.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite-shm
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/state/openclaw.sqlite-wal
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/agent-cli
openclaw:openclaw -rwx------ /var/lib/openclaw/.openclaw/tmp/agent-cli/openclaw
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git
openclaw:openclaw drwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/container
openclaw:openclaw -rwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/container/git
openclaw:openclaw -rwxr-xr-x /var/lib/openclaw/.openclaw/tmp/agent-git/git
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/node-workspace-transfer
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/openclaw-997
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/tmp/openclaw-997/gateway.state.lock
openclaw:openclaw -rw------- /var/lib/openclaw/.openclaw/tmp/openclaw-997/state.7c3e9f8fd7713066.lock
openclaw:openclaw drwx------ /var/lib/openclaw/.openclaw/tmp/plugin-captures
openclaw:openclaw -rw-r--r-- /var/lib/openclaw/.profile

Cell 2, same image and setup, block cut from this head and run with errexit (-ex):

Run Result
Standard state, /bin/bash -e npm exit 0 (55 s install); reset-failed and restart exit 0; active on 2026.11.21 as openclaw, /healthz 200; 58.6 s without a 200 (the old Gateway restarted into the partial package 12 s in)
Unloaded unit (stopped, disabled, daemon-reload, list-units --all empty), /bin/bash -e reset-failed printed Unit openclaw-gateway.service not loaded.; `
Same unloaded state, /bin/sh -e (dash) same: reset-failed error, true, restart started the unit; script exit 0; /healthz 200

Outage and install length across this PR's runs: about 10 s (9.5 s to 10.9 s) with installs of about 20 s; 58.6 s with a 55 s install; 59.3 s with a 3-minute throttled install (cell 1 green).

Standard state, bash -e:

c7-standard-bash-e.mp4

Unloaded unit, bash -e:

c7-unloaded-bash-e.mp4

Unloaded unit, sh -e:

c7-unloaded-sh-e.mp4
Cell 2 (std): terminal output
# umask 0022, /bin/bash -ex (/usr/bin/bash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
removed 1 package, and changed 375 packages in 55s
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl reset-failed openclaw-gateway.service
+ sudo systemctl restart openclaw-gateway.service
+ sudo systemctl status openclaw-gateway.service
● openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: active (running) since Sun 2026-11-29 23:38:19 UTC; 5ms ago
   Main PID: 29130 (MainThread)
      Tasks: 6 (limit: 19278)
     Memory: 3.7M
        CPU: 5ms
     CGroup: /system.slice/openclaw-gateway.service
             └─29130 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Nov 29 23:38:19 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
+ sudo journalctl -u openclaw-gateway.service
Nov 29 23:34:46 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
Nov 29 23:38:01 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:09 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
Nov 29 23:38:14 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:19 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:19 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
# script exit 0
Cell 2 (unl-bash): terminal output
# umask 0022, /bin/bash -ex (/usr/bin/bash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
changed 375 packages in 22s
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl reset-failed openclaw-gateway.service
Failed to reset failed state of unit openclaw-gateway.service: Unit openclaw-gateway.service not loaded.
+ true
+ sudo systemctl restart openclaw-gateway.service
+ sudo systemctl status openclaw-gateway.service
● openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; disabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: active (running) since Sun 2026-11-29 23:38:59 UTC; 7ms ago
   Main PID: 34035 (MainThread)
      Tasks: 6 (limit: 19278)
     Memory: 4.3M
        CPU: 6ms
     CGroup: /system.slice/openclaw-gateway.service
             └─34035 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Nov 29 23:38:59 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
+ sudo journalctl -u openclaw-gateway.service
Nov 29 23:34:46 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
Nov 29 23:38:01 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:09 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
Nov 29 23:38:14 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:19 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:19 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:34 53847e43396e systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
Nov 29 23:38:35 53847e43396e systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:38:35 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:35 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 16.0
Cell 2 (unl-sh): terminal output
# umask 0022, /bin/sh -ex (/usr/bin/dash), block as printed:
sudo npm install -g openclaw@latest --allow-scripts=openclaw && {
  sudo systemctl reset-failed openclaw-gateway.service || true
  sudo systemctl restart openclaw-gateway.service
}
sudo systemctl status openclaw-gateway.service
sudo journalctl -u openclaw-gateway.service
# running:
+ sudo npm install -g openclaw@latest --allow-scripts=openclaw
npm warn deprecated [email protected]: Use your platform's native DOMException instead
changed 375 packages in 23s
114 packages are looking for funding
  run `npm fund` for details
npm warn install-scripts 3 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @google/[email protected] (preinstall: echo 'preinstall: no-op')
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (postinstall: node scripts/postinstall)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=@google/genai,esbuild,protobufjs` to allow these scripts once, or `npm config set allow-scripts=@google/genai,esbuild,protobufjs --location=user` to allow them for all global installs.
+ sudo systemctl reset-failed openclaw-gateway.service
Failed to reset failed state of unit openclaw-gateway.service: Unit openclaw-gateway.service not loaded.
+ true
+ sudo systemctl restart openclaw-gateway.service
+ sudo systemctl status openclaw-gateway.service
● openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)
     Loaded: loaded (/etc/systemd/system/openclaw-gateway.service; disabled; preset: enabled)
    Drop-In: /etc/systemd/system/openclaw-gateway.service.d
             └─restart.conf
     Active: active (running) since Sun 2026-11-29 23:39:31 UTC; 6ms ago
   Main PID: 38057 (MainThread)
      Tasks: 6 (limit: 19278)
     Memory: 3.7M
        CPU: 4ms
     CGroup: /system.slice/openclaw-gateway.service
             └─38057 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Nov 29 23:39:31 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
+ sudo journalctl -u openclaw-gateway.service
Nov 29 23:34:46 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:37:56 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
Nov 29 23:38:01 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:01 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 31.393s CPU time.
Nov 29 23:38:09 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:09 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
Nov 29 23:38:14 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 23:38:14 53847e43396e systemd[1]: openclaw-gateway.service: Failed with result 'exit-code'.
Nov 29 23:38:19 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:19 53847e43396e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:34 53847e43396e systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
Nov 29 23:38:35 53847e43396e systemd[1]: openclaw-gateway.service: Deactivated successfully.
Nov 29 23:38:35 53847e43396e systemd[1]: Stopped openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
Nov 29 23:38:35 53847e43396e systemd[1]: openclaw-gateway.service: Consumed 16.066
Cell 2: unload steps and unit, process, package and /healthz after each run
== unload 23:38:34
Removed "/etc/systemd/system/multi-user.target.wants/openclaw-gateway.service".
list-units: []
unit file: openclaw-gateway.service disabled enabled
healthz 000
== unload 23:39:05
list-units: []
unit file: openclaw-gateway.service disabled enabled
healthz 000

== before 23:34:51
unit=openclaw-gateway.service active=active result=success MainPID=396 NRestarts=0
    396 openclaw Sun Nov 29 23:34:45 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.12 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.12
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-refusal 23:37:23
unit=openclaw-gateway.service active=active result=success MainPID=396 NRestarts=0
    396 openclaw Sun Nov 29 23:34:45 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.12 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.12
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-std 23:38:19
unit=openclaw-gateway.service active=active result=success MainPID=29130 NRestarts=0
  29130 openclaw Sun Nov 29 23:38:18 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after-std-settle 23:38:34
unit=openclaw-gateway.service active=active result=success MainPID=29130 NRestarts=0
  29130 openclaw Sun Nov 29 23:38:18 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-unl-bash 23:38:59
unit=openclaw-gateway.service active=active result=success MainPID=34035 NRestarts=0
  34035 openclaw Sun Nov 29 23:38:59 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after-unl-bash-settle 23:39:05
unit=openclaw-gateway.service active=active result=success MainPID=34035 NRestarts=0
  34035 openclaw Sun Nov 29 23:38:59 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-unl-sh 23:39:31
unit=openclaw-gateway.service active=active result=success MainPID=38057 NRestarts=0
  38057 openclaw Sun Nov 29 23:39:30 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 23:39:37
unit=openclaw-gateway.service active=active result=success MainPID=38057 NRestarts=0
  38057 openclaw Sun Nov 29 23:39:30 2026 /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /usr/local/lib/node_modules/openclaw version=2026.11.21 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.21
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

Measured earlier in #208376 and not rerun here: npm 12.2.3 without --allow-scripts=openclaw exits 0 and leaves .openclaw-lifecycle-pending; an npm install killed mid-replacement, followed by the same commands, ends serving the new version.

Checks

  • pnpm docs:check-links: 0 broken.
  • pnpm docs:check-links:anchors: 11 broken fragments, the same 11 lines on main at 42e5a830ca6c; none in this page.
  • pnpm docs:check-mdx: passed. pnpm format:docs:check: clean. pnpm docs:spellcheck: no findings in this page. git diff --check: clean.
  • Rendered with pnpm docs:dev --build-only against the openclaw/docs site: step 3's block and prose render inside the ordered list, and #linux-system-service-run-by-another-account resolves to its H2.
  • Local ClawSweeper review: the previous round (cf8f35044144) rated D with one P2 (set -e exits before restart) and two P3 (outage figure, npm 12 wording); all three are fixed in this head. This round follows.

Not proven

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Nov 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 29, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR chains successful package installation with clearing systemd’s failed state and restarting the Gateway, and explains interruption recovery.

Example: A systemd unit named openclaw-gateway.service reaches its start limit while npm replaces its package.

  • Before: Package installation succeeds, but the documented plain restart is refused and the Gateway remains down.
  • After: The documented command clears the failed state before restarting the successfully installed package.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct documentation repair supported by real upgrade and fault-recovery logs.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): Public terminal logs exercise the documented npm/systemctl sequence with a real Gateway on Debian/systemd, including published-driver upgrade and start-limit recovery; recordings could not be inspected because local preparation reported “ffprobe failed: spawnSync ffprobe ENOENT” and browser fallback returned “Cache miss,” but the logs independently establish the changed behavior.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Following the documented manual update can leave a successfully installed Gateway down because systemd refuses its restart.
Reason: The maintainer-authored change repairs an observed recovery failure while preserving the established service-account boundary.

Merge readiness

✅ Ready for maintainer review

This PR fixes a documented recovery procedure that can leave the Gateway down; the change remains absent from current main, and no blocking defect was found.

Reviewed head: 01d304af6328f20e4c9ed6bd85eae8412b189c1b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Published updaters direct cross-account system-service operators to this documentation, which guides root-owned package replacement while the service account retains ownership of Gateway state.

flowchart TD
  A[Published updater] --> B[Service account refusal]
  B --> C[Manual update documentation]
  C --> D[Successful npm installation]
  D --> E[Clear systemd failed state]
  E --> F[Restart existing Gateway unit]
Loading

Technical review

Best possible solution:

Land the focused documentation correction in the existing recovery section while preserving its backup, ownership, and inspection guidance.

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

Current-main documentation omits reset-failed, and linked real-systemd logs demonstrate the resulting restart refusal; no target code was executed during this review.

Is this the best way to solve the issue?

The command-chain correction addresses the demonstrated failure through the existing procedure without reviving the abandoned generated-command machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 20725e6fbecf.

Provenance checked

  • Manual cross-account system-service update keeps the original intent (74f02b4: Provide recovery for published updaters without running root-owned maintenance against another account’s state; the package-only update change retained this route for older drivers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Raw commit 74f02b4 adds docs/install/updating.md:134 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 74f02b405ad1; files: docs/install/updating.md)

PR surface

Docs +11. Total +11 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 13 2 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 13 2 +11

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Root-cause cluster

Relationship: canonical
Canonical: #208629
Summary: This PR carries the measured manual-recovery guidance retained when the earlier generated-command proposal was abandoned.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 6:20 PM ET / 23:20 UTC.

@fuller-stack-dev
fuller-stack-dev merged commit 45736e3 into openclaw:main Nov 29, 2026
74 of 75 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the docs/system-unit-manual-update-reset-failed branch November 29, 2026 23:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…ay (openclaw#208629)

* docs: clear the unit's failed state in the manual system-service update

* docs: show the full install command for a Node outside secure_path

* docs: start the service-account backup from a readable directory

* docs: state the measured fast-install outage range

* docs: restart only after a successful install and cover PATH for the backup

* docs: cover partial npm failures and explicit package specs

* docs: check root's npm global root instead of overriding PATH

* docs: keep only the measured reset-failed and install guidance

* docs: round the measured fast-install outage

* docs: always restart after a successful install

* docs: make reset-failed best effort and qualify the measurements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant