Skip to content

fix: print the exact package replacement command when an older updater refuses a service-account install - #208376

Closed
fuller-stack-dev wants to merge 15 commits into
openclaw:mainfrom
fuller-stack-dev:fix/system-unit-refusal-exact-command
Closed

fuller-stack-dev wants to merge 15 commits into
openclaw:mainfrom
fuller-stack-dev:fix/system-unit-refusal-exact-command

Conversation

@fuller-stack-dev

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

Copy link
Copy Markdown
Member

Related: #206343, #207873

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 version refuses before it replaces anything (#206343), because the old updater cannot safely touch another account's state. Today the refusal only links a docs page, so the operator has to read a long manual procedure and assemble the commands by hand.

User Impact

In that layout the refusal now ends with one line the operator can paste, filled in with the Node directory, the package prefix, the exact target version and the real unit name:

This installed updater cannot safely update another account's state. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

Running exactly that line leaves the Gateway serving the target version under the service account: on fast and slow installs, with sudo's secure_path lacking the Node directory, with Node under a directory containing a space, and after an interrupted install when the line is run again. Nothing else about the refusal changes: it fires in the same cases, with the same code, message and admission check, and nothing is written before it. Every other layout keeps today's docs link, unchanged.

This is the change the update-path owner asked for on #207873 (print the exact one-line command for this layout, filled in with the detected unit name, with a test), in place of that PR's automated restart hold. The line adds four things the cells showed are needed; see below.

Why This Change Was Made

The text is built from facts admission already has: the package root, the driver's package manager, target source and --no-restart request, the candidate's own version, the binary running it and the matched unit. The line is printed only when every part of it is certain; otherwise the docs link stays.

Condition Why
The update runs as uid 0 sudo from a non-root account was not proved in a cell; that case keeps the docs link
The driver reports npm, the package root is <prefix>/lib/node_modules/openclaw Only then does npm install -g --prefix <prefix> own that exact tree
The package root is a real directory, not a link A linked checkout must not be replaced by npm install -g
Every directory and link the kernel traverses to reach the running Node, the npm beside it and the package root (walked from / one component at a time in kernel order, .. applied only to the already resolved prefix, so a directory passed only through a symlink counts too) is owned by uid 0, and those directories and the final files are not group- or world-writable (lstat and readlink, read-only; any failure keeps the docs link) The line makes root run that npm and its install scripts with the Node directory first in PATH; a directory the service account can write would let it plant a binary for root
The unit's ExecStart program is the binary running this candidate The restarted Gateway runs on a Node already proven to load this version, and npm gets that Node's directory
That directory has no : It goes into PATH
The target is a registry version and the operator did not pass --no-restart The registry could serve different bytes, or nothing, under an artifact's version; the line restarts the unit
No npm_config_* variable is set for the run A registry (or npm config file) chosen in the environment would not reach the fresh sudo env the line starts. Registries set in root's or the global npmrc do: root's npm reads the same files
The whole nextAction fits the shipped drivers' 1,021-character cut (UPDATE_RUN_TEXT_LIMIT - 3, src/infra/update-candidate-admission.ts:191-194 on v2026.11.10 and v2026.11.12) A cut line could end inside a quote
The line passes the shipped drivers' redaction unchanged 2026.11.10 and 2026.11.12 redact nextAction before printing it (src/infra/update-candidate-admission.ts:191-203 on both tags): e-mail-like text such as a template unit [email protected] (src/logging/diagnostic-support-redaction.ts:42) and paths under root's home or selected state directory (:207-208) would be rewritten inside the quotes

The redaction and length check is one call to main's redactSupportString with the shipped drivers' options. src/logging/diagnostic-support-redaction.ts and src/logging/redact-patterns.ts are byte-identical on v2026.11.10, v2026.11.12 and main; src/logging/redact.ts and redact-pattern-runtime.ts differ only in bounded-scan offset bookkeeping and a new bundle-file function, which the full-context path used here does not touch. Template units and packages under root's home or state therefore get the docs link.

Parts of the line:

  • sudo env 'PATH=<node dir>:/usr/sbin:/usr/bin:/sbin:/bin' npm: root's npm, its #!/usr/bin/env node shebang and the package's install scripts all find the Node that runs the service, whatever sudo's secure_path is. With the RHEL default secure_path (no /usr/local/bin), bare sudo npm gives sudo: npm: command not found; the env form works (env_reset is on and does not touch a PATH given to env as an argument). A sudoers policy that forbids env from executing (Defaults!/usr/bin/env noexec) makes it fail before anything changes: env: 'npm': Permission denied.

  • --prefix '<prefix>': pins the install to the tree the unit runs. Without it, a sudo npm with another prefix would install a second copy and the restart would serve the old version.

  • openclaw@<version>: the candidate's exact manifest version, never a dist-tag (the drivers in the cells asked for latest).

  • --allow-scripts=openclaw: required. npm 12.2.3 without it keeps .openclaw-lifecycle-pending and still exits 0. npm 11.15.0 only warns Unknown cli config "--allow-scripts" and installs normally.

  • systemctl reset-failed: while npm rewrites the package, the running Gateway notices the new version ("Installation replaced"), restarts itself into the partly written tree and fails until npm finishes. On a slow install that can reach systemd's start limit, and then a plain systemctl restart is refused (red cell below). reset-failed clears it.

    When reset-failed exits 1, the line stops on purpose and leaves the unit as it was. In the cell probe it exits 0 for a unit that is active (nothing changes: same PID, same state), stopped but enabled, or failed. It exits 1 with Unit ... not loaded only for a unit systemd has not loaded: masked, stopped and not enabled or wanted by anything (systemd unloads it), or nonexistent. A masked unit would refuse the restart anyway. A stopped unit that is not enabled is one the operator stopped and disabled; starting it would bring up a Gateway the operator turned off, so && skips the restart. The package is already replaced, and the next start of that unit runs the new version.

  • Every path and the unit name are single-quoted, so \x2d escapes, spaces and quotes reach env, npm and systemctl unchanged.

Alternative considered: stop first (systemctl stop && npm install && systemctl start). It removes the crash loop but keeps the Gateway down for the whole install: 31.3 s instead of 8.9 s on a fast install and 271.7 s instead of 111 s on a slow one, because the old Gateway keeps serving through most of the download. No crashed start in the partly written tree reached state work (below), so the shorter outage won.

The verified backup stays a separate step in the docs, before the line. No new mechanism: no stored field, status, retry, child process or record.

Production net lines (added minus removed, tests and docs excluded): +90 / -2 = +88. Most of the growth is the trust walk and the guards above; each one only narrows when the line is printed.

Update behavior: the text comes from the candidate's update admit, which the published 2026.11.10 and 2026.11.12 drivers run and print verbatim (after the redaction above), so it reaches those operators as soon as this ships in the next release they update to. src/cli/update-cli/ is frozen except for minimal changes; this one touches only the refusal text, as requested on #207873.

Evidence

Tested commits: 0032f71c79f5 for the final-line rows, e444707124ba (the current code) for the confirmation rows. The later commits only narrow when the line is printed; the printed text is unchanged where it is printed. One cell detail matters for that: the 2026.11.12 driver in the earlier cells was installed from docker exec, whose umask is 0000, which left /usr/local/lib/node_modules/openclaw at mode 0777. The current code prints the docs link for such a world-writable package root (seen in a cell); the confirmation cells install it with umask 022, as a root shell or sudo does, and print the line. The PR head adds only merges of main; the files on the refusal path (src/cli/update-cli/update-command-admit*.ts, src/daemon/, src/shared/shell-quote.ts, src/logging/diagnostic-support-redaction.ts, src/config/paths.ts, the admission contract) are identical between the two. Base for red: main at 971c9563c948.

Cells: Docker, Debian 12 with 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). A local registry serves the candidate under an unpublished version (2026.11.13 base; 2026.11.15 for the earlier shape rows; 2026.11.18 final). The operator ran sudo openclaw update --yes; the cell cut the printed line from the refusal output and ran it as is. Slow install: the registry's responses held to 12 Mbit/s (tc netem) with root's npm cache cleared, about 4 minutes. "Not serving" runs from the first failed /healthz probe (every 250 ms) to the first 200 from the new PID on the new version.

Refusal: base vs head

Driver Candidate Printed Before and after the refusal
2026.11.12 base 971c9563c948 docs link only, exit 1 in 81 s same PID, 2026.11.12, /healthz 200
2026.11.10 base 971c9563c948 docs link only, exit 1 in 76 s same PID, 2026.11.10, /healthz 200
2026.11.12 head 0032f71c79f5 the line above, exit 1 in 91 s same PID, 2026.11.12, /healthz 200
2026.11.10 head 0032f71c79f5 the same line, exit 1 in 49 s same PID, 2026.11.10, /healthz 200

Confirmation on the current code (e444707124ba, 2026.11.20, driver installed with umask 022)

Driver Printed Pasted line Not serving Final state
2026.11.12 the line, exit 1 in 55 s; same PID and version before and after exit 0 28.4 s active, new PID as openclaw, 2026.11.20, /healthz 200
2026.11.10 the line, exit 1 in 56 s; same PID and version before and after exit 0 17.3 s active, new PID as openclaw, 2026.11.20, /healthz 200

Raw logs: final-line and confirmation cells, current-code confirmation, base refusal and shape cells.

Pasting the final line (head 0032f71c79f5, 2026.11.18)

Run Exit Not serving Failed starts Start limit Final state
Fast 0 21.4 s 1 no active, new PID as openclaw, 2026.11.18, /healthz 200
Slow 0 113.3 s 5 yes active, 2026.11.18, /healthz 200
npm killed mid-install 137 (npm killed 160 s in) down package.json 2026.11.18, .openclaw-lifecycle-pending present, npm's retired copy left, unit still retrying, /healthz 000
Same line run again 0 44.1 s yes, 12 s before this run's restart, which reset-failed let through active, 2026.11.18, marker gone, /healthz 200
sudo secure_path="/sbin:/bin:/usr/sbin:/usr/bin" (RHEL default), Node in /usr/local/bin; update run as sudo /usr/local/bin/node /usr/local/bin/openclaw update --yes 0 active, 2026.11.18, /healthz 200
Node, npm and the package under /opt/node js (space, outside secure_path); update run as sudo env "PATH=/opt/node js/bin:..." openclaw update --yes 0 active, PID running /opt/node js/bin/node, 2026.11.18, /healthz 200
2026.11.10 driver, fast 0 9.5 s active, new PID as openclaw, 2026.11.18, /healthz 200

The /opt/node js line as printed: sudo env 'PATH=/opt/node js/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/opt/node js' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'. Before this change that layout got the docs link, and the owner's bare form there gives sudo: npm: command not found.

Earlier rows that chose the line's shape (install then restart, without env PATH=)

Run Parts exit Not serving Failed starts Start limit Final state
Start limit forced, install then restart (red) 0, 1 never served again 5 yes failed, /healthz 000, still down 90 s later; Job for openclaw-gateway.service failed because the control process exited with error code
Start limit forced, install, reset-failed, restart (green) 0, 0, 0 55.2 s 5 yes active, new version, /healthz 200
Install then restart, fast 0, 0 8.9 s 0 no active
Install then restart, slow 0, 0 111.0 s 5 yes; the restart worked only because npm finished 59 s after the last failed start active
npm killed, then install, reset-failed, restart again 137; then 0, 0, 0 5 yes active, new version, /healthz 200
Stop first, fast (not chosen) 0, 0, 0 31.3 s 0 no active
Stop first, slow (not chosen) 0, 0, 0 271.7 s 0 no active

"Start limit forced" lifts the registry throttle the moment systemd logs Start request repeated too quickly, so npm finishes inside the 60 s window.

What the Gateway does during a slow install: it keeps serving while npm downloads, then logs Installation replaced: running 2026.11.12 ...; on-disk ..., shuts down cleanly and restarts into the partly written package. Those starts fail until npm finishes. Across 45 such starts, 43 died in module resolution (ERR_MODULE_NOT_FOUND or MODULE_NOT_FOUND, for example node_modules/@openclaw/fs-safe/path or dist/index.js); the other 2 reached the package lifecycle guard in dist/index.js (OpenClaw package lifecycle is incomplete. Reinstall with package scripts enabled, then retry.), whose own write into the root-owned package root was refused, and exited. None logged config, database, migration or plugin work.

Interrupted install: with npm killed, package.json already showed the new version while .openclaw-lifecycle-pending and npm's retired copy were still present; running the same line again completed the install and started the Gateway.

Selected state: a 2026.11.10 run with OPENCLAW_STATE_DIR pointing into the service home leaves 10 root-owned log and report files there (the docs keep the conditional ownership repair for this). The pasted line still left the Gateway active on the new version with /healthz 200.

Files under the service home not owned by openclaw:openclaw: none before or after in the plain runs.

Recordings

Current code e444707124ba, driver 2026.11.12, refusal and pasted line:

final-e444707124ba-driver-2026.11.12-refusal.mp4
final-e444707124ba-j-fast-1112-pasted.mp4

Current code, driver 2026.11.10, refusal and pasted line:

final-e444707124ba-driver-2026.11.10-refusal.mp4
final-e444707124ba-j-fast-1110-pasted.mp4

Red, base 971c9563c948, driver 2026.11.12 (docs link only):

red-base-971c9563c948-driver-2026.11.12.mp4

Red, base 971c9563c948, driver 2026.11.10:

red-base-971c9563c948-driver-2026.11.10.mp4

Earlier head 0032f71c79f5 (same printed line), driver 2026.11.12, the refusal with the line:

final-0032f71c79f5-driver-2026.11.12-refusal.mp4

The line pasted, fast install:

final-0032f71c79f5-g-fast-1112-pasted.mp4

The line pasted, slow install (the old Gateway restarts into the partial package and reaches the start limit; the line still ends serving):

final-0032f71c79f5-g-slow-1112-pasted.mp4

npm killed mid-install, then the same line again:

final-0032f71c79f5-g-kill-1112-pasted.mp4
final-0032f71c79f5-g-kill-1112-pasted2.mp4

RHEL default secure_path, Node in /usr/local/bin:

final-0032f71c79f5-g-rhel-1112-pasted.mp4

Node under /opt/node js, refusal and pasted line:

final-0032f71c79f5-opt-space-refusal.mp4
final-0032f71c79f5-g-opt-1112-pasted.mp4

Driver 2026.11.10, refusal and pasted line:

final-0032f71c79f5-driver-2026.11.10-refusal.mp4
final-0032f71c79f5-g-fast-1110-pasted.mp4

Start limit forced, red without reset-failed, then green with it (earlier line form without env PATH=):

red-start-limit-todays-line-driver-2026.11.12.mp4
green-start-limit-reset-failed-line-driver-2026.11.12.mp4

npm lifecycle option, candidate installed into a scratch prefix as root

== npm 11.15.0 with flag
npm warn Unknown cli config "--allow-scripts". This will stop working in the next major version of npm.
exit=0 version=2026.11.13 lifecycle-pending=absent
== npm 11.15.0 without flag
exit=0 version=2026.11.13 lifecycle-pending=absent
== npm 11.21.3 with flag
exit=0 version=2026.11.13 lifecycle-pending=absent
== npm 11.21.3 without flag
exit=0 version=2026.11.13 lifecycle-pending=absent
== npm 12.2.3 with flag
exit=0 version=2026.11.13 lifecycle-pending=absent
== npm 12.2.3 without flag
exit=0 version=2026.11.13 lifecycle-pending=present

Tests

src/cli/update-cli/update-command-admit.service-account.test.ts (whole file audited):

  • New: the exact text and typed fields for the root-npm layout, with the candidate's exact version while the driver asked for latest.
  • New: an escaped unit name (openclaw\x2dgateway.service), a Node directory with a space and a quote, and a prefix with a space, run through /bin/sh with a stand-in sudo that prints each argument; the shell hands env, npm and systemctl their arguments unchanged.
  • New: the docs link is kept when the update runs as a non-root account, another account owns the package root, the unit runs another Node, the Node directory holds :, a shipped driver would redact a template unit name, the package is under root's home, the package is under the selected state directory, the driver installs a local artifact, the operator deferred the restart, pnpm owns the package, the package is not in an npm global prefix, or the package root is a link; and for the trust walk: the service account owns the Node binary, owns the Node directory, the Node directory's parent is group-writable, the Node directory is a link into a user-owned directory, the npm beside Node links through a service-account-owned directory to a root-owned file, the npm beside Node links through .. after a link into a user-owned directory, or no npm sits beside Node; an npm_config_registry in the run's environment; and the full text one character over the shipped 1,021-character cut (exactly 1,021 still prints).
  • Kept: the refusal for root and non-root invokers with no file changes, the custom unit skipped by discovery, and the seven negative controls where admission must not refuse.
  • Fixture setup moved into writeInstall and writeNode helpers so each case can place the package and a Node with npm beside it in its own temp tree. fs.promises.lstat reports root ownership for that tree and its ancestors (the host's real owner is the test user), except for paths a case marks as another account's or group-writable; process.execPath and HOME are set per case and restored after each test. Nothing was removed.

Red on base production code with the head test file: the two command tests fail, the rest pass. Green on head: 33 passed (also with npm_config_user_agent set, as under pnpm). Each guard was removed in turn and its case failed; the two link-chain cases fail against the earlier walks (realpath only, and path.resolve of link targets, which folds .. before resolving the link in front of it).

Commands

  • node scripts/run-vitest.mjs src/cli/update-cli/update-command-admit.service-account.test.ts src/cli/update-cli/update-command-admit.test.ts: 108 passed.
  • node scripts/run-vitest.mjs test/scripts/update-restart-module-outcome.test.ts: passed. test/scripts/eager-import-closure.test.ts -t inventory: passed.
  • node scripts/check-changed.mjs: all lanes ok except the dead export scan, which reports unused exports in files this PR does not touch (src/auto-reply/reply/queue/envelope.ts, src/commands/doctor-retained-runtime.ts, ui/src/components/session-menu-view.tsx, ui/src/pages/chat/chat-session-commands.ts, ui/src/pages/cron/delivery-conversations.ts).
  • Session identity ratchet: OK. Test lines ratchet: +265 net, allowance 400.
  • Autoreview (Codex, P2 threshold, thinking high, with the admission caller, the other caller in src/update/cli.ts, the shell quoting helper, the inspection error type and the admission contract as source context): no P0 to P2 findings on the final range (four rounds, none with findings).
  • Autoreview on the final code also found and I fixed: the walk skipping directories passed through by a symlink, .. folded before the link in front of it, and the test baseline inheriting pnpm's npm_config_*.
  • Local ClawSweeper review: round 1 asked for the backup and docs link ahead of the command and the docs link on artifact targets and --no-restart; round 2 asked for the redaction, same-runtime and secure_path handling above and a pasteable docs example. Round 3 asked for the trust of the Node directory, a registry selected for the run, and the shipped length limit; all addressed above. Its unloaded-unit finding is answered in the reset-failed section. Round 4 reviews this head.

Not proven

  • A non-root invoker with sudo (keeps the docs link; not run in a cell).
  • Node 26 / npm 12 as the system npm in a full update cell; npm 12 was exercised in the scratch-prefix install above.

…sal fires

Older installed updaters refuse a root update of a systemd unit that runs
as another account. When root runs it against a root-owned npm global
package and Node sits in a default sudo path directory, the refusal now
prints the one-line package replacement and unit restart, filled in with
the package prefix, the candidate's exact version and the quoted unit
name. Every other layout keeps the docs pointer.
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation cli CLI command changes size: S 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
@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review November 29, 2026 15:22
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR prints a package replacement and service restart command for recognized root-owned npm installs when an older updater refuses a cross-account update.

Example: Root updates a package in /usr/local/lib/node_modules/openclaw serving openclaw-gateway.service as the openclaw account.

  • Before: The refusal directs the operator to the manual recovery documentation.
  • After: For candidate 2026.11.14, the refusal prints: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, worthwhile change supported by published-driver cell results and distinct regression coverage, with direct media inspection unavailable.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): The supplied Debian 12/systemd cell results exercise published 2026.11.12 through candidate refusal and then the printed command, reporting the target package active under the service account with healthy HTTP output and preserved ownership; video frames could not be inspected because local decoding and fallback retrieval failed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Operators receiving an older updater's cross-account refusal must assemble the package replacement command from a manual procedure.
Reason: The update-path owner requested this exact improvement, and the patch supplies it without changing admission outcomes.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it implements the update-path owner's requested recovery guidance with a focused change, and no actionable correctness or security defects were found.

Reviewed head: 9ef7c754158553baccf4abe434bd15fcb51a972d

Before merge

None.

Findings

None.

Agent review details

How this fits together

Published updaters invoke the candidate's admission command, which inspects the installed package and matching systemd unit and returns a refusal with operator recovery instructions.

flowchart TD
  A[Published updater] --> B[Candidate admission]
  B --> C[Package and systemd inspection]
  C --> D[Cross-account refusal]
  D --> E[Exact command or documentation]
  E --> F[Operator replaces package and restarts unit]
Loading

Technical review

Best possible solution:

Keep recovery-command formatting in the existing candidate refusal owner while preserving documentation guidance for other layouts.

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

Current-main source confirms the documentation-only refusal, and the supplied published-driver cell results describe the same operator-visible limitation; no target code was executed during this review.

Is this the best way to solve the issue?

This is a small, owner-approved improvement that reuses the existing refusal and shell quoting instead of adding restart orchestration.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Cross-account candidate refusal keeps the original intent (74f02b4: Prevent shipped updaters from checking root's state or writing another account's state during an update.)
  • Documentation-only recovery guidance changes intended behavior with a stated reason (1c89587: Separate modern package-only updates from frozen shipped-updater admission and remove the earlier manual-procedure formatter; the owner subsequently requested this smaller exact-command formatter.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 1c89587 adds src/cli/update-cli/update-command-admit-service-account.ts:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1c89587d7e86; files: src/cli/update-cli/update-command-admit-service-account.ts)
  • Jason (Json): Raw commit 74f02b4 adds src/cli/update-cli/update-command-admit-service-account.ts:38 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: src/cli/update-cli/update-command-admit-service-account.ts)

PR surface

Source +25, Tests +105, Docs +8. Total +138 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 27 2 +25
Tests 1 129 24 +105
Docs 1 11 3 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 167 29 +138

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: #208376
Summary: This PR provides the explicitly requested replacement for the abandoned automated restart-hold approach.

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 🐚 platinum hermit.
  • 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 🐚 platinum hermit.
  • 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 follows the weaker of proof and patch quality; ✨ 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, 10:35 AM ET / 15:35 UTC.

…equests in the printed command

The refusal now names the verified backup and its docs link before the
command, and keeps only the docs link when the driver installs a local
artifact or the operator passed --no-restart.
A Gateway that restarts into the half-written package during a slow npm
install can reach systemd's start limit, after which the final restart
is refused. The printed line now runs systemctl reset-failed before the
restart and says to rerun the same line if the install is interrupted.
…ice's package

The printed command now passes root's npm the running Node's directory in
PATH, so it does not depend on sudo's secure_path, and is printed only when
the unit runs that same Node and the line survives the redaction shipped
updaters apply before printing. Template unit names and packages under
root's home or state fall back to the docs link.
…ackage

Root runs npm and its install scripts from the running Node's directory,
so the line is printed only when the real paths of that Node, the npm
beside it and the package are root-owned down from / without group- or
world-writable directories. A run with an npm_config_* override, or a
line the shipped drivers would cut at 1,021 characters, keeps the docs
link.
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Raw logs: final line and confirmation cells

Raw cell logs for the evidence in the PR body (Debian 12, systemd 252, Node 24.20.0). Container IDs and the service home are cell-local.

i-fast-1112

driver.log

== driver 2026.11.12 21:28:10 exec umask 0000
installed 2026.11.12 owner/mode root 755
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

guards.log

== /usr/local/bin/node -> /usr/local/bin/node
0 755 /usr/local/bin/node
0 755 /usr/local/bin
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin
0 755 /usr/local/lib/node_modules/npm
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/lib/node_modules/openclaw -> /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /

facts.log

== before 21:28:42
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:28:37 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 21:29:34
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:28:37 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-paste 21:29:56
unit=openclaw-gateway.service active=active result=success MainPID=12355 NRestarts=0
  12355 openclaw Sun Nov 29 21:29:55 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.19 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.19
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 21:30:05
unit=openclaw-gateway.service active=active result=success MainPID=12355 NRestarts=0
  12355 openclaw Sun Nov 29 21:29:55 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.19 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.19
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 61
== after
total 53

settle.log

settle: holds gone at 1795987796
settle: healthz 200 at 1795987805

gateway journal (systemd lifecycle and crash causes)

2026-11-29T21:28:38+0000 af3e0a96fbba systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T21:29:45+0000 af3e0a96fbba node[375]: 2026-11-29T21:29:45.149+00:00 [gateway] post-ready sandbox dependency prewarm failed: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/dist/local-workspa
2026-11-29T21:29:55+0000 af3e0a96fbba systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T21:29:56+0000 af3e0a96fbba systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (26.75s) → staging (8.5s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 47s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 375 packages in 21s
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.
i-fast-1110

driver.log

== driver 2026.11.10 21:34:13 exec umask 0000
installed 2026.11.10 owner/mode root 755
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

guards.log

== /usr/local/bin/node -> /usr/local/bin/node
0 755 /usr/local/bin/node
0 755 /usr/local/bin
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin
0 755 /usr/local/lib/node_modules/npm
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/lib/node_modules/openclaw -> /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /

facts.log

== before 21:34:21
unit=openclaw-gateway.service active=active result=success MainPID=315 NRestarts=0
    315 openclaw Sun Nov 29 21:34:16 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-refusal 21:35:13
unit=openclaw-gateway.service active=active result=success MainPID=315 NRestarts=0
    315 openclaw Sun Nov 29 21:34:16 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-paste 21:35:37
unit=openclaw-gateway.service active=active result=success MainPID=12543 NRestarts=0
  12543 openclaw Sun Nov 29 21:35:36 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.19 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.19
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 21:35:46
unit=openclaw-gateway.service active=active result=success MainPID=12543 NRestarts=0
  12543 openclaw Sun Nov 29 21:35:36 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.19 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.19
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 61
== after
total 47

settle.log

settle: holds gone at 1795988137
settle: healthz 200 at 1795988146

gateway journal (systemd lifecycle and crash causes)

2026-11-29T21:34:17+0000 c9e2b111a65e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T21:35:24+0000 c9e2b111a65e node[315]: 2026-11-29T21:35:24.712+00:00 [gateway] post-ready sandbox dependency prewarm failed: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/dist/local-workspa
2026-11-29T21:35:37+0000 c9e2b111a65e systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T21:35:37+0000 c9e2b111a65e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (25.53s) → staging (8.64s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 47s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 24s
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.
d-fast-1112

driver.log

== driver 2026.11.12 21:21:36
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

guards.log

== /usr/local/bin/node -> /usr/local/bin/node
0 755 /usr/local/bin/node
0 755 /usr/local/bin
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin
0 755 /usr/local/lib/node_modules/npm
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/lib/node_modules/openclaw -> /usr/local/lib/node_modules/openclaw
0 777 /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /

facts.log

== before 21:22:13
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:22: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.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 21:23:11
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:22: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.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-paste 21:23:11
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:22: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.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 21:23:11
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 21:22: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.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

pasted.exit

no command printed

owners.log

== before
total 37
== after-refusal
total 47
== after
total 47

settle.log

settle: holds gone at 1795987391
settle: healthz 200 at 1795987391

gateway journal (systemd lifecycle and crash causes)

2026-11-29T21:22:07+0000 a3d7a15dc30d systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (23.71s) → staging (17.1s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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 53s
g-fast-1112

driver.log

== driver 2026.11.12 19:59:24
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 20:00:04
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 19:59:58 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 20:01:40
unit=openclaw-gateway.service active=active result=success MainPID=375 NRestarts=0
    375 openclaw Sun Nov 29 19:59:58 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-paste 20:02:09
unit=openclaw-gateway.service active=active result=success MainPID=20095 NRestarts=0
  20095 openclaw Sun Nov 29 20:02: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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 20:02:22
unit=openclaw-gateway.service active=active result=success MainPID=20095 NRestarts=0
  20095 openclaw Sun Nov 29 20:02: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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 34
== after-refusal
total 47
== after
total 51

settle.log

settle: holds gone at 1795982530
settle: healthz 200 at 1795982542

gateway journal (systemd lifecycle and crash causes)

2026-11-29T19:59:59+0000 dfa493676895 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:02:00+0000 dfa493676895 node[375]: 2026-11-29T20:02:00.014+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.18 build 2026.11.18-0032f71c7
2026-11-29T20:02:00+0000 dfa493676895 node[375]: 2026-11-29T20:02:00.015+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T20:02:05+0000 dfa493676895 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T20:02:05+0000 dfa493676895 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:02:05+0000 dfa493676895 node[19484]: const isMain=isMainModule({currentFile:fileURLToPath(import.meta.url)});if(isMain)installDatabaseProcessRole(resolveCliDatabaseProcessRole(normalizeWindowsArgv(process$1.argv)));const packa
2026-11-29T20:02:05+0000 dfa493676895 node[19484]: Error: OpenClaw package lifecycle is incomplete. Reinstall with package scripts enabled, then retry. permission denied (EACCES)
2026-11-29T20:02:05+0000 dfa493676895 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:02:09+0000 dfa493676895 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (34.35s) → staging (14.15s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 91s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 29s
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.
g-slow-1112

driver.log

== driver 2026.11.12 20:13:30
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 20:14:12
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 20:14:06 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 20:15:14
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 20:14:06 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-paste 20:19:24
unit=openclaw-gateway.service active=active result=success MainPID=42798 NRestarts=0
  42798 openclaw Sun Nov 29 20:19:24 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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=000 body=
lifecycle-pending=absent
start-limit lines=1
== after 20:19:34
unit=openclaw-gateway.service active=active result=success MainPID=42798 NRestarts=0
  42798 openclaw Sun Nov 29 20:19:24 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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=1

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 47
== after
total 54

settle.log

settle: holds gone at 1795983565
settle: healthz 200 at 1795983574

gateway journal (systemd lifecycle and crash causes)

2026-11-29T20:14:06+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:17:40+0000 5674ae12a840 node[374]: 2026-11-29T20:17:40.009+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.18 build 2026.11.18-0032f71c7
2026-11-29T20:17:40+0000 5674ae12a840 node[374]: 2026-11-29T20:17:40.012+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T20:17:45+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T20:17:45+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:17:45+0000 5674ae12a840 node[30850]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:17:45+0000 5674ae12a840 node[30850]: 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/errno-DUB
2026-11-29T20:17:45+0000 5674ae12a840 node[30850]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:17:45+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:17:50+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T20:17:50+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:17:50+0000 5674ae12a840 node[31487]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:17:50+0000 5674ae12a840 node[31487]: 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/errno-DUB
2026-11-29T20:17:50+0000 5674ae12a840 node[31487]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:17:50+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:17:55+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T20:17:55+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:17:55+0000 5674ae12a840 node[32128]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:17:55+0000 5674ae12a840 node[32128]: 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/errno-DUB
2026-11-29T20:17:55+0000 5674ae12a840 node[32128]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:17:55+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:18:01+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T20:18:01+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:18:01+0000 5674ae12a840 node[32761]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:18:01+0000 5674ae12a840 node[32761]: 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/errno-DUB
2026-11-29T20:18:01+0000 5674ae12a840 node[32761]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:18:01+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:18:06+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T20:18:06+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:18:06+0000 5674ae12a840 node[33361]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:18:06+0000 5674ae12a840 node[33361]: 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/errno-DUB
2026-11-29T20:18:06+0000 5674ae12a840 node[33361]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:18:06+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:18:11+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T20:18:11+0000 5674ae12a840 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T20:18:11+0000 5674ae12a840 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:19:24+0000 5674ae12a840 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (31.03s) → staging (13.13s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 57s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 4m
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.
g-kill-1112

driver.log

== driver 2026.11.12 20:23:43
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 20:24:30
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 20:24:24 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 20:25:32
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 20:24:24 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-kill 20:28:13
unit=openclaw-gateway.service active=activating result=exit-code MainPID=0 NRestarts=2
package /usr/local/lib/node_modules/openclaw version=2026.11.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
npm-retired /usr/local/lib/node_modules/.openclaw-aijmTbnc
healthz=000 body=
lifecycle-pending=present
start-limit lines=0
== after-paste2 20:28:47
unit=openclaw-gateway.service active=active result=success MainPID=35743 NRestarts=0
  35743 openclaw Sun Nov 29 20:28:46 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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=000 body=
lifecycle-pending=absent
start-limit lines=1
== after 20:28:57
unit=openclaw-gateway.service active=active result=success MainPID=35743 NRestarts=0
  35743 openclaw Sun Nov 29 20:28:46 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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=1

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 137

pasted2.exit

exit 0

kill.log

armed 1795983933 +160
1795984093.084 killing 10919 npm install [email protected]
done

owners.log

== before
total 30
== after-refusal
total 47
== after
total 49

settle.log

settle: holds gone at 1795984127
settle: healthz 200 at 1795984137

gateway journal (systemd lifecycle and crash causes)

2026-11-29T20:24:25+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:00+0000 d83621477c9c node[374]: 2026-11-29T20:28:00.031+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.18 build 2026.11.18-0032f71c7
2026-11-29T20:28:00+0000 d83621477c9c node[374]: 2026-11-29T20:28:00.038+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T20:28:05+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T20:28:05+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:05+0000 d83621477c9c node[30709]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:28:05+0000 d83621477c9c node[30709]: 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/errno-DUB
2026-11-29T20:28:05+0000 d83621477c9c node[30709]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:28:05+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:28:10+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T20:28:10+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:10+0000 d83621477c9c node[31318]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:28:10+0000 d83621477c9c node[31318]: 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/errno-DUB
2026-11-29T20:28:10+0000 d83621477c9c node[31318]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:28:10+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:28:15+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T20:28:16+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:16+0000 d83621477c9c node[32009]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:28:16+0000 d83621477c9c node[32009]: 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/errno-DUB
2026-11-29T20:28:16+0000 d83621477c9c node[32009]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:28:16+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:28:21+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T20:28:25+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:25+0000 d83621477c9c node[32666]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T20:28:25+0000 d83621477c9c node[32666]: 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/errno-DUB
2026-11-29T20:28:25+0000 d83621477c9c node[32666]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T20:28:25+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:28:30+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T20:28:30+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:30+0000 d83621477c9c node[33697]:   code: 'MODULE_NOT_FOUND',
2026-11-29T20:28:30+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T20:28:35+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T20:28:35+0000 d83621477c9c systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T20:28:35+0000 d83621477c9c systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T20:28:47+0000 d83621477c9c systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (32.57s) → staging (11.5s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 57s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 137 in 160s

pasted2 terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
added 1 package, and changed 365 packages in 33s
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.
g-rhel-1112

driver.log

== driver 2026.11.12 19:46:21
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

rhelsudo.log

== 19:46:53
Defaults	env_reset
Defaults	mail_badpass
Defaults	secure_path="/sbin:/bin:/usr/sbin:/usr/bin"
Defaults	use_pty
/etc/sudoers.d/README: parsed OK
sudo resolves npm: none node: none
bare: sudo: npm: command not found
env form: 11.19.0
env form sees PATH: /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
with env noexec: env: 'npm': Permission denied (exit 0)

facts.log

== before 19:47:01
unit=openclaw-gateway.service active=active result=success MainPID=416 NRestarts=0
    416 openclaw Sun Nov 29 19:46:55 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 19:47:53
unit=openclaw-gateway.service active=active result=success MainPID=416 NRestarts=0
    416 openclaw Sun Nov 29 19:46:55 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-paste 19:48:19
unit=openclaw-gateway.service active=active result=success MainPID=12748 NRestarts=0
  12748 openclaw Sun Nov 29 19:48: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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 19:48:28
unit=openclaw-gateway.service active=active result=success MainPID=12748 NRestarts=0
  12748 openclaw Sun Nov 29 19:48: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.18 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.18
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 36
== after-refusal
total 47
== after
total 52

settle.log

settle: holds gone at 1795981699
settle: healthz 200 at 1795981708

gateway journal (systemd lifecycle and crash causes)

2026-11-29T19:46:56+0000 34832f4e0e69 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T19:48:03+0000 34832f4e0e69 node[416]: 2026-11-29T19:48:03.517+00:00 [gateway] post-ready sandbox dependency prewarm failed: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/lib/node_modules/openclaw/dist/local-workspa
2026-11-29T19:48:19+0000 34832f4e0e69 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T19:48:19+0000 34832f4e0e69 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (22.93s) → staging (10.5s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 46s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 26s
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.
g-opt-1112

driver.log

== driver 2026.11.12 19:52:37
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

optspace.log

/etc/systemd/system/openclaw-gateway.service:ExecStart="/opt/node js/bin/node" "/opt/node js/lib/node_modules/openclaw/dist/index.js" gateway --port 18789
/etc/systemd/system/cell-registry.service.d/opt.conf:ExecStart=
/etc/systemd/system/cell-registry.service.d/opt.conf:ExecStart="/opt/node js/bin/node" /opt/registry/scripts/e2e/lib/plugins/npm-registry-server.mjs /run/cell-registry.port openclaw ${CANDIDATE_VERSION} /cand/candidate.tgz
sudo resolves npm: none

facts.log

== before 19:53:20
unit=openclaw-gateway.service active=active result=success MainPID=425 NRestarts=0
    425 openclaw Sun Nov 29 19:53:15 2026 /opt/node js/bin/node /opt/node js/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /opt/node js/lib/node_modules/openclaw version=2026.11.12 owner=root:root
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-refusal 19:54:30
unit=openclaw-gateway.service active=active result=success MainPID=425 NRestarts=0
    425 openclaw Sun Nov 29 19:53:15 2026 /opt/node js/bin/node /opt/node js/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /opt/node js/lib/node_modules/openclaw version=2026.11.12 owner=root:root
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-paste 19:55:03
unit=openclaw-gateway.service active=active result=success MainPID=16554 NRestarts=0
  16554 openclaw Sun Nov 29 19:55:02 2026 /opt/node js/bin/node /opt/node js/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /opt/node js/lib/node_modules/openclaw version=2026.11.18 owner=root:root
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 19:55:10
unit=openclaw-gateway.service active=active result=success MainPID=16554 NRestarts=0
  16554 openclaw Sun Nov 29 19:55:02 2026 /opt/node js/bin/node /opt/node js/lib/node_modules/openclaw/dist/index.js gateway --port 18789
package /opt/node js/lib/node_modules/openclaw version=2026.11.18 owner=root:root
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/opt/node js/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/opt/node js' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 47
== after
total 51

settle.log

settle: holds gone at 1795982103
settle: healthz 200 at 1795982110

gateway journal (systemd lifecycle and crash causes)

2026-11-29T19:53:15+0000 8fa2982cf066 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T19:54:50+0000 8fa2982cf066 node[425]: 2026-11-29T19:54:50.011+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.18 build 2026.11.18-0032f71c7
2026-11-29T19:54:50+0000 8fa2982cf066 node[425]: 2026-11-29T19:54:50.012+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T19:54:56+0000 8fa2982cf066 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T19:54:56+0000 8fa2982cf066 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T19:54:56+0000 8fa2982cf066 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T19:55:03+0000 8fa2982cf066 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=143/n/a
2026-11-29T19:55:03+0000 8fa2982cf066 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (36.1s) → staging (13.02s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/opt/node js/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/opt/node js' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 64s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/opt/node js/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/opt/node js' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 25s
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.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Raw logs: base refusal and the shape cells

Raw cell logs for the evidence in the PR body (Debian 12, systemd 252, Node 24.20.0). Container IDs and the service home are cell-local.

red-1112

driver.log

== driver 2026.11.12 14:17:56
installed 2026.11.12 owner root
11.19.0

facts.log

== before 14:19:28
unit=openclaw-gateway.service active=active MainPID=349 NRestarts=0
    349 openclaw Sun Nov 29 14:18:58 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
serving dist: /var/lib/openclaw /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789 
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
== after-refusal 14:20:54
unit=openclaw-gateway.service active=active MainPID=349 NRestarts=0
    349 openclaw Sun Nov 29 14:18:58 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
serving dist: /var/lib/openclaw /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789 
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent

pasted.exit

no command printed

npmpolicy.log

== npm 11.15.0 with flag
npm warn Unknown cli config "--allow-scripts". This will stop working in the next major version of npm.
exit=0 version=2026.11.13 lifecycle-pending=absent runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si
== npm 11.15.0 without flag
exit=0 version=2026.11.13 lifecycle-pending=absent runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si
== npm 11.21.3 with flag
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.
exit=0 version=2026.11.13 lifecycle-pending=absent runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si
== npm 11.21.3 without flag
npm warn install-scripts 4 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   [email protected] (preinstall: node scripts/preinstall-package-manager-warning.mjs; postinstall: node scripts/postinstall-bundled-plugins.mjs)
npm warn install-scripts
exit=0 version=2026.11.13 lifecycle-pending=absent runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si
== npm 12.2.3 with flag
npm warn install-scripts 3 packages had install scripts blocked because they are not 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.
exit=0 version=2026.11.13 lifecycle-pending=absent runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si
== npm 12.2.3 without flag
npm warn install-scripts 4 packages had install scripts blocked because they are not 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   [email protected] (preinstall: node scripts/preinstall-package-manager-warning.mjs; postinstall: node scripts/postinstall-bundled-plugins.mjs)
npm warn install-scripts
exit=0 version=2026.11.13 lifecycle-pending=present runs=openclaw: SECURITY WARNING: Node.js 24.20.0 is below the recommended security patch level. TLS may trust certificates si

owners.log

== before
total 30
== after-refusal
total 47

gateway journal (systemd lifecycle and crash causes)

2026-11-29T14:18:59+0000 624e15f99463 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (57.9s) → staging (9.26s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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 81s
red-1110

driver.log

== driver 2026.11.10 14:38:44
installed 2026.11.10 owner root
11.19.0

facts.log

== before 14:39:01
unit=openclaw-gateway.service active=active MainPID=289 NRestarts=0
    289 openclaw Sun Nov 29 14:38:48 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
serving dist: /var/lib/openclaw /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789 
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
== after-refusal 14:40:23
unit=openclaw-gateway.service active=active MainPID=289 NRestarts=0
    289 openclaw Sun Nov 29 14:38:48 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
serving dist: /var/lib/openclaw /usr/local/bin/node /usr/local/lib/node_modules/openclaw/dist/index.js gateway --port 18789 
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent

pasted.exit

no command printed

owners.log

== before
total 46
== after-refusal
total 61

gateway journal (systemd lifecycle and crash causes)

2026-11-29T14:38:49+0000 af3619fddb27 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (27.2s) → staging (10.11s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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 76s
r-i-race

driver.log

== driver 2026.11.12 17:44:36
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 17:45:08
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 17:45:03 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 17:46:05
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 17:45:03 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-race 17:49:27
unit=openclaw-gateway.service active=failed result=exit-code MainPID=0 NRestarts=6
package /usr/local/lib/node_modules/openclaw version=2026.11.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=000 body=
lifecycle-pending=absent
start-limit lines=2
== after-wait-90 17:50:58
unit=openclaw-gateway.service active=failed result=exit-code MainPID=0 NRestarts=6
package /usr/local/lib/node_modules/openclaw version=2026.11.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=000 body=
lifecycle-pending=absent
start-limit lines=2

shape.exit

parts 0 1

owners.log

== before
total 30

gateway journal (systemd lifecycle and crash causes)

2026-11-29T17:45:03+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:48:40+0000 b02e33427c22 node[374]: 2026-11-29T17:48: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.15 build 2026.11.15-ef8515738
2026-11-29T17:48:40+0000 b02e33427c22 node[374]: 2026-11-29T17:48:40.009+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T17:48:45+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T17:48:45+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:48:45+0000 b02e33427c22 node[32000]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T17:48:45+0000 b02e33427c22 node[32000]: 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/errno-DUB
2026-11-29T17:48:45+0000 b02e33427c22 node[32000]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T17:48:45+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T17:48:50+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T17:48:50+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:48:50+0000 b02e33427c22 node[32652]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T17:48:50+0000 b02e33427c22 node[32652]: 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/errno-DUB
2026-11-29T17:48:50+0000 b02e33427c22 node[32652]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T17:48:50+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T17:48:55+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T17:48:55+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:48:55+0000 b02e33427c22 node[33287]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T17:48:55+0000 b02e33427c22 node[33287]: 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/errno-DUB
2026-11-29T17:48:55+0000 b02e33427c22 node[33287]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T17:48:55+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T17:49:01+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T17:49:01+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:49:01+0000 b02e33427c22 node[33943]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T17:49:01+0000 b02e33427c22 node[33943]: 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/errno-DUB
2026-11-29T17:49:01+0000 b02e33427c22 node[33943]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T17:49:01+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T17:49:06+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T17:49:06+0000 b02e33427c22 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:49:06+0000 b02e33427c22 node[34558]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T17:49:06+0000 b02e33427c22 node[34558]: 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/errno-DUB
2026-11-29T17:49:06+0000 b02e33427c22 node[34558]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T17:49:06+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T17:49:11+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T17:49:11+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T17:49:11+0000 b02e33427c22 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:49:27+0000 b02e33427c22 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T17:49:27+0000 b02e33427c22 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (31.63s) → staging (8.87s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 52s

shape terminal output

# shape i-race: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
1795974366.217 part1 start: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected]
removed 1 package, and changed 376 packages in 3m
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.
1795974567.758 part2 start: 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.
1795974567.765 part2 exit 1
parts 0 1
r-iii-race

driver.log

== driver 2026.11.12 18:11:24
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 18:11:54
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 18:11:49 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 18:12:41
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 18:11:49 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 18:15:45
unit=openclaw-gateway.service active=active result=success MainPID=31379 NRestarts=0
  31379 openclaw Sun Nov 29 18:15:36 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.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=1
== after-probe 18:15:48
unit=openclaw-gateway.service active=active result=success MainPID=32908 NRestarts=0
  32908 openclaw Sun Nov 29 18:15:47 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.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=000 body=
lifecycle-pending=absent
start-limit lines=1

shape.exit

parts 0 0 0

rfprobe.log

== rfprobe 18:15:46
[gateway active] unit=openclaw-gateway.service exit=0 out='' before={31379 success 0 loaded active running } after={31379 success 0 loaded active running }
[active (oneshot)] unit=rfprobe-ok.service exit=0 out='' before={0 success 0 loaded active exited } after={0 success 0 loaded active exited }
[inactive] unit=rfprobe-ok.service exit=1 out='Failed to reset failed state of unit rfprobe-ok.service: Unit rfprobe-ok.service not loaded.' before={0 success 0 loaded inactive dead } after={0 success 0 loaded inactive dead }
[failed] unit=rfprobe-fail.service exit=0 out='' before={0 exit-code 0 loaded failed failed } after={0 success 0 loaded inactive dead }
[masked] unit=rfprobe-ok.service exit=1 out='Failed to reset failed state of unit rfprobe-ok.service: Unit rfprobe-ok.service not loaded.' before={0 success 0 masked inactive dead } after={0 success 0 masked inactive dead }
[template instance with \x2d, active] unit=rfprobe@prod\x2deu.service exit=0 out='' before={0 success 0 loaded active exited } after={0 success 0 loaded active exited }
[template instance never started] [email protected] exit=1 out='Failed to reset failed state of unit [email protected]: Unit [email protected] not loaded.' before={0 success 0 loaded inactive dead } after={0 success 0 loaded inactive dead }
[unit that does not exist] unit=no-such-unit.service exit=1 out='Failed to reset failed state of unit no-such-unit.service: Unit no-such-unit.service not loaded.' before={0 success 0 not-found inactive dead } after={0 success 0 not-found inactive dead }
[gateway stopped] unit=openclaw-gateway.service exit=0 out='' before={0 success 0 loaded inactive dead } after={0 success 0 loaded inactive dead }

owners.log

== before
total 30

settle.log

settle: holds gone at 1795976137
settle: healthz 200 at 1795976145

gateway journal (systemd lifecycle and crash causes)

2026-11-29T18:11:50+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:14:50+0000 e34b2da80569 node[374]: 2026-11-29T18:14:50.012+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.15 build 2026.11.15-ef8515738
2026-11-29T18:14:50+0000 e34b2da80569 node[374]: 2026-11-29T18:14:50.014+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T18:14:55+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T18:14:55+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:14:55+0000 e34b2da80569 node[26241]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T18:14:55+0000 e34b2da80569 node[26241]: 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/index.js
2026-11-29T18:14:55+0000 e34b2da80569 node[26241]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T18:14:55+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T18:15:00+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T18:15:00+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:00+0000 e34b2da80569 node[26865]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T18:15:00+0000 e34b2da80569 node[26865]: 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/errno-DUB
2026-11-29T18:15:00+0000 e34b2da80569 node[26865]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T18:15:00+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T18:15:05+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T18:15:05+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:05+0000 e34b2da80569 node[27481]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T18:15:05+0000 e34b2da80569 node[27481]: 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/errno-DUB
2026-11-29T18:15:05+0000 e34b2da80569 node[27481]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T18:15:05+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T18:15:10+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T18:15:10+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:10+0000 e34b2da80569 node[28130]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T18:15:10+0000 e34b2da80569 node[28130]: 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/errno-DUB
2026-11-29T18:15:10+0000 e34b2da80569 node[28130]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T18:15:10+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T18:15:15+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T18:15:15+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:15+0000 e34b2da80569 node[28738]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T18:15:15+0000 e34b2da80569 node[28738]: 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/errno-DUB
2026-11-29T18:15:15+0000 e34b2da80569 node[28738]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T18:15:15+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T18:15:20+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T18:15:20+0000 e34b2da80569 systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T18:15:20+0000 e34b2da80569 systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:37+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T18:15:47+0000 e34b2da80569 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T18:15:48+0000 e34b2da80569 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (20.98s) → staging (9.2s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 41s

shape terminal output

# shape iii-race: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
1795975962.026 part1 start: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected]
removed 1 package, and changed 376 packages in 3m
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.
1795976137.585 part2 start: sudo systemctl reset-failed 'openclaw-gateway.service'
1795976137.593 part2 exit 0
1795976137.594 part3 start: sudo systemctl restart 'openclaw-gateway.service'
1795976137.603 part3 exit 0
parts 0 0 0
b-ii-fast

driver.log

== driver 2026.11.12 16:37:05
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 16:37:55
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:37:50 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 16:38:50
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:37:50 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 16:39:21
unit=openclaw-gateway.service active=active result=success MainPID=12623 NRestarts=0
  12623 openclaw Sun Nov 29 16:39:12 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.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

shape.exit

parts 0 0 0

owners.log

== before
total 30
== after
total 46

settle.log

settle: holds gone at 1795970353
settle: healthz 200 at 1795970361

gateway journal (systemd lifecycle and crash causes)

2026-11-29T16:37:51+0000 e5311348639a systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:38:50+0000 e5311348639a systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T16:39:13+0000 e5311348639a systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (27.05s) → staging (10.68s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 49s

shape terminal output

# shape ii
1795970330.183 part1 start: sudo systemctl stop 'openclaw-gateway.service'
1795970330.445 part1 exit 0
1795970330.446 part2 start: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected]
removed 1 package, and changed 376 packages in 23s
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.
1795970353.396 part3 start: sudo systemctl start 'openclaw-gateway.service'
1795970353.405 part3 exit 0
parts 0 0 0
c-i-slow

driver.log

== driver 2026.11.12 16:48:37
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 16:49:18
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:49:13 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 16:50:21
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:49:13 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 16:54:42
unit=openclaw-gateway.service active=active result=success MainPID=43328 NRestarts=0
  43328 openclaw Sun Nov 29 16:54:32 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.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=1

shape.exit

parts 0 0 -

owners.log

== before
total 30
== after
total 54

settle.log

settle: holds gone at 1795971272
settle: healthz 200 at 1795971282

gateway journal (systemd lifecycle and crash causes)

2026-11-29T16:49:13+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:52:50+0000 a3f63ed13d4e node[374]: 2026-11-29T16:52:50.023+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.15 build 2026.11.15-ef8515738
2026-11-29T16:52:51+0000 a3f63ed13d4e node[374]: 2026-11-29T16:52:50.025+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T16:53:08+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 1.
2026-11-29T16:53:08+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:53:08+0000 a3f63ed13d4e node[33127]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T16:53:08+0000 a3f63ed13d4e node[33127]: 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/errno-DUB
2026-11-29T16:53:08+0000 a3f63ed13d4e node[33127]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T16:53:08+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T16:53:13+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 2.
2026-11-29T16:53:13+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:53:13+0000 a3f63ed13d4e node[33761]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T16:53:13+0000 a3f63ed13d4e node[33761]: 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/errno-DUB
2026-11-29T16:53:13+0000 a3f63ed13d4e node[33761]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T16:53:13+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T16:53:18+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 3.
2026-11-29T16:53:18+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:53:18+0000 a3f63ed13d4e node[34365]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T16:53:18+0000 a3f63ed13d4e node[34365]: 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/errno-DUB
2026-11-29T16:53:18+0000 a3f63ed13d4e node[34365]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T16:53:18+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T16:53:23+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 4.
2026-11-29T16:53:23+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:53:23+0000 a3f63ed13d4e node[35002]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T16:53:23+0000 a3f63ed13d4e node[35002]: 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/errno-DUB
2026-11-29T16:53:23+0000 a3f63ed13d4e node[35002]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T16:53:23+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T16:53:28+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 5.
2026-11-29T16:53:28+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:53:28+0000 a3f63ed13d4e node[35639]:     throw new ERR_MODULE_NOT_FOUND(
2026-11-29T16:53:28+0000 a3f63ed13d4e node[35639]: 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/errno-DUB
2026-11-29T16:53:28+0000 a3f63ed13d4e node[35639]:   code: 'ERR_MODULE_NOT_FOUND',
2026-11-29T16:53:28+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Main process exited, code=exited, status=1/FAILURE
2026-11-29T16:53:33+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Scheduled restart job, restart counter is at 6.
2026-11-29T16:53:33+0000 a3f63ed13d4e systemd[1]: openclaw-gateway.service: Start request repeated too quickly.
2026-11-29T16:53:33+0000 a3f63ed13d4e systemd[1]: Failed to start openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T16:54:32+0000 a3f63ed13d4e systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (31.51s) → staging (11s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 57s

shape terminal output

# shape i
1795971022.141 part1 start: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected]
removed 1 package, and changed 376 packages in 4m
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.
1795971272.852 part2 start: sudo systemctl restart 'openclaw-gateway.service'
1795971272.860 part2 exit 0
parts 0 0 -
d-ii-slow

driver.log

== driver 2026.11.12 16:58:50
installed 2026.11.12 owner root
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

facts.log

== before 16:59:27
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:59:22 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 17:00:20
unit=openclaw-gateway.service active=active result=success MainPID=374 NRestarts=0
    374 openclaw Sun Nov 29 16:59:22 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 17:04:52
unit=openclaw-gateway.service active=active result=success MainPID=40655 NRestarts=0
  40655 openclaw Sun Nov 29 17:04:42 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.15 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.15
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

shape.exit

parts 0 0 0

owners.log

== before
total 30
== after
total 46

settle.log

settle: holds gone at 1795971883
settle: healthz 200 at 1795971892

gateway journal (systemd lifecycle and crash causes)

2026-11-29T16:59:23+0000 58a456b25c96 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T17:00:20+0000 58a456b25c96 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T17:04:43+0000 58a456b25c96 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (27.18s) → staging (9.1s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 48s

shape terminal output

# shape ii
1795971620.875 part1 start: sudo systemctl stop 'openclaw-gateway.service'
1795971621.135 part1 exit 0
1795971621.136 part2 start: sudo npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected]
removed 1 package, and changed 376 packages in 4m
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.
1795971883.372 part3 start: sudo systemctl start 'openclaw-gateway.service'
1795971883.407 part3 exit 0
parts 0 0 0

The root-protection check now follows the path the kernel takes, link by
link, so a directory reached only through a symlink is checked too.
Links are followed one component at a time and `..` applies only to the
already resolved prefix, as the kernel does, so a link target cannot hide
a user-owned directory behind `..`. The test baseline clears inherited
npm_config_* variables that pnpm exports to scripts.
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Raw logs: confirmation cells on e444707 (current code)

Raw cell logs for the evidence in the PR body (Debian 12, systemd 252, Node 24.20.0). Container IDs and the service home are cell-local.

j-fast-1112

driver.log

== driver 2026.11.12 22:02:18 exec umask 0000
installed 2026.11.12 owner/mode root 755
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

guards.log

== /usr/local/bin/node -> /usr/local/bin/node
0 755 /usr/local/bin/node
0 755 /usr/local/bin
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin
0 755 /usr/local/lib/node_modules/npm
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/lib/node_modules/openclaw -> /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /

facts.log

== before 22:02:56
unit=openclaw-gateway.service active=active result=success MainPID=376 NRestarts=0
    376 openclaw Sun Nov 29 22:02:51 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 22:04:11
unit=openclaw-gateway.service active=active result=success MainPID=376 NRestarts=0
    376 openclaw Sun Nov 29 22:02:51 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-paste 22:04:33
unit=openclaw-gateway.service active=active result=success MainPID=15622 NRestarts=0
  15622 openclaw Sun Nov 29 22:04:33 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.20 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.20
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 22:04:59
unit=openclaw-gateway.service active=active result=success MainPID=15622 NRestarts=0
  15622 openclaw Sun Nov 29 22:04:33 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.20 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.20
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 61
== after
total 53

settle.log

settle: holds gone at 1795989873
settle: healthz 200 at 1795989899

gateway journal (systemd lifecycle and crash causes)

2026-11-29T22:02:51+0000 a8253b4f0760 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T22:04:30+0000 a8253b4f0760 node[376]: 2026-11-29T22:04:30.004+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.20 build 2026.11.20-e44470712
2026-11-29T22:04:30+0000 a8253b4f0760 node[376]: 2026-11-29T22:04:30.006+00:00 [admission] closed: restart (SIGUSR2: gateway.installation_replaced: Installation replaced: running 2026.11.12 build 2026.11.12-release-d8f98b6c6bcc-2026-11-28T1
2026-11-29T22:04:33+0000 a8253b4f0760 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (44.52s) → staging (11.74s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 69s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 375 packages in 22s
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.
j-fast-1110

driver.log

== driver 2026.11.10 22:09:09 exec umask 0000
installed 2026.11.10 owner/mode root 755
11.19.0

unitprod.log

RestartUSec=5s
StartLimitIntervalUSec=1min
StartLimitBurst=5

guards.log

== /usr/local/bin/node -> /usr/local/bin/node
0 755 /usr/local/bin/node
0 755 /usr/local/bin
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin/npm-cli.js
0 755 /usr/local/lib/node_modules/npm/bin
0 755 /usr/local/lib/node_modules/npm
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /
== /usr/local/lib/node_modules/openclaw -> /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules/openclaw
0 755 /usr/local/lib/node_modules
0 755 /usr/local/lib
0 755 /usr/local
0 755 /usr
0 755 /

facts.log

== before 22:09:17
unit=openclaw-gateway.service active=active result=success MainPID=315 NRestarts=0
    315 openclaw Sun Nov 29 22:09:12 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-refusal 22:10:18
unit=openclaw-gateway.service active=active result=success MainPID=315 NRestarts=0
    315 openclaw Sun Nov 29 22:09:12 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.10 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.10
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0
== after-paste 22:10:41
unit=openclaw-gateway.service active=active result=success MainPID=13795 NRestarts=0
  13795 openclaw Sun Nov 29 22:10:40 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.20 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.20
healthz=000 body=
lifecycle-pending=absent
start-limit lines=0
== after 22:10:58
unit=openclaw-gateway.service active=active result=success MainPID=13795 NRestarts=0
  13795 openclaw Sun Nov 29 22:10:40 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.20 owner=root:root
copy /usr/local/lib/node_modules/openclaw 2026.11.20
healthz=200 body={"ok":true,"status":"live"}
lifecycle-pending=absent
start-limit lines=0

pasted.cmd

sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'

pasted.exit

exit 0

owners.log

== before
total 30
== after-refusal
total 61
== after
total 49

settle.log

settle: holds gone at 1795990241
settle: healthz 200 at 1795990258

gateway journal (systemd lifecycle and crash causes)

2026-11-29T22:09:13+0000 af57b5739627 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).
2026-11-29T22:10:40+0000 af57b5739627 systemd[1]: Stopping openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw)...
2026-11-29T22:10:41+0000 af57b5739627 systemd[1]: Started openclaw-gateway.service - OpenClaw Gateway (system service run by openclaw).

attempt1 terminal output

Phase: requested
Phase: staging
Phase: finished
⚠️ OpenClaw update failed: service-account-mismatch.
Phases: requested (34.48s) → staging (9.4s)
Failed: candidate-admission — [{"name":"managed-service-account","status":"refuse","detail":"Gateway service openclaw-gateway.service runs as openclaw, but this update runs as root; the candidate cannot check that account's state."}]
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. After a verified backup as the service account (https://docs.openclaw.ai/install/updating#linux-system-service-run-by-another-account), replace the package and restart the unit as root, and run the same line again if the install is interrupted: sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
exit 1 in 56s

pasted terminal output

# pasted from the refusal:
sudo env 'PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' npm install -g --prefix '/usr/local' --allow-scripts=openclaw [email protected] && sudo systemctl reset-failed 'openclaw-gateway.service' && sudo systemctl restart 'openclaw-gateway.service'
removed 1 package, and changed 376 packages in 22s
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.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Closing this without landing.

The printed line works: every final cell ended with the Gateway serving the new version (fast and slow installs, an install killed and rerun, a secure_path without /usr/local/bin, Node in a directory with a space, first hops from 2026.11.10 and 2026.11.12). What did not converge is trust. A line the product prints for root has to vouch for what root will run, and four review rounds each found another input the message cannot settle: which npm sudo resolves, the trust of the Node directory, an npmrc under the prefix that another account may be able to write, root's own npm freshness settings. The guards for those grew the change to 88 production lines in a frozen path, for a one-time hop.

What the cells proved about the manual procedure itself stays true and is going into the docs section the refusal already links to, as a docs-only PR (to be linked here):

  • clear the unit's failed state before restarting (systemctl reset-failed): on a slow install the old Gateway restarts into the partly written package, the unit reaches its start limit, and a plain restart is then refused (measured: restart exit 1, Gateway left down; with reset-failed, up);
  • --allow-scripts=openclaw is required on npm 12;
  • an interrupted install is recovered by running the same commands again;
  • 45 failed starts in a partly written package were observed and none reached config, database, migration or plugin work.

The recordings and raw logs above stay as the evidence for those points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes 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: M 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