Skip to content

[Bug]: Install script detected node from mise, but Gateway use node global installed #89376

Closed as not planned

Description

@resYuto

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

I installed Node.js via mise and want OpenClaw to use it, install script detected node from mise, but generated systemd Gateway Service is using apt installed node.

Steps to reproduce

  1. Install node via mise and nodesource(apt)
  2. Install (upgrade) from install.sh one-liner with --no-onboard
  3. read ~/.config/systemd/user/openclaw-gateway.service

Expected behavior

systemd Gateway Service let use node installed by mise

Actual behavior

systemd Gateway Service using node installed by nodesource(apt)

OpenClaw version

2026.5.28

Operating system

Ubuntu 24.04

Install method

npm global

Model

without calling LLMs

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

current openclaw-gateway.service


Wants=network-online.target
StartLimitBurst=5
StartLimitIntervalSec=60

[Service]
ExecStart=/usr/bin/node /home/openclaw/.npm-global/lib/node_modules/openclaw/dist/index.js gateway --port 18789
Restart=always
RestartSec=5
RestartPreventExitStatus=78
TimeoutStopSec=30
TimeoutStartSec=30
SuccessExitStatus=0 143
KillMode=control-group
EnvironmentFile=-/home/openclaw/.openclaw/gateway.systemd.env
Environment=OPENCLAW_SERVICE_MANAGED_ENV_KEYS=BRAVE_API_KEY,DISCORD_BOT_TOKEN,ELEVENLABS_API_KEY,GEMINI_API_KEY,MOONSHOT_API_KEY,OPENAI_API_KEY,OPENCLAW_GATEWAY_TOKEN,OPENCLAW_WEBHOOK_TOKEN,SAKURA_AI_API_KEY
Environment=HOME=/home/openclaw
Environment=TMPDIR=/tmp
Environment=PATH=/usr/bin:/home/openclaw/.npm-global/bin:/home/openclaw/.local/share/pnpm:/home/openclaw/.local/bin:/home/openclaw/bin:/home/openclaw/.nix-profile/bin:/usr/local/bin:/bin:/home/linuxbrew/.linuxbrew/opt/node@24/bin
Environment=OPENCLAW_GATEWAY_PORT=18789
Environment=OPENCLAW_SYSTEMD_UNIT=openclaw-gateway.service
Environment="OPENCLAW_WINDOWS_TASK_NAME=OpenClaw Gateway"
Environment=OPENCLAW_SERVICE_MARKER=openclaw
Environment=OPENCLAW_SERVICE_KIND=gateway
Environment=OPENCLAW_SERVICE_VERSION=2026.5.28

[Install]
WantedBy=default.target

Impact and severity

No response

Additional information

No response

Activity

  1. clawsweeper commented on Jun 2, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close as duplicate/superseded: current main and the latest release still intentionally prefer supported system Node for managed services, while the remaining version-manager runtime policy is already tracked by the broader open runtime-pin issue and PR.

    Canonical path: Track the remaining daemon runtime policy in #60612 and the explicit runtime-pin implementation in #82290, with this Linux/mise report linked as supporting evidence.

    So I’m closing this here and keeping the remaining discussion on #60612 and #82290.

    Review details

    Best possible solution:

    Track the remaining daemon runtime policy in #60612 and the explicit runtime-pin implementation in #82290, with this Linux/mise report linked as supporting evidence.

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

    Yes. Source inspection shows a mise/version-manager Node execPath plus a supported /usr/bin/node still leads the service resolver to select the system Node; I did not run a live Ubuntu plus mise install in this read-only cleanup review.

    Is this the best way to solve the issue?

    Yes for cleanup. The narrow default-change PR is closed unmerged, and the durable solution is already being handled as a broader maintainer policy/API decision around explicit daemon runtime pins.

    Security review:

    Security review: No patch security review applies to this issue triage.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Current source behavior: The resolver recognizes mise-style version-manager roots and, when the current Node is version-managed, returns a supported system Node when available. (src/daemon/runtime-paths.ts:225, 44bf1c6d728a)
    • Current tests encode the policy: Runtime path tests explicitly expect Linux service installs to use /usr/bin/node instead of version-manager execPath values when system Node is supported. (src/daemon/runtime-paths.test.ts:74, 44bf1c6d728a)
    • Current docs policy: Gateway doctor docs warn that version-manager Node paths can break after upgrades and say doctor offers migration to a system Node install when available. Public docs: docs/gateway/doctor.md. (docs/gateway/doctor.md:557, 44bf1c6d728a)
    • Latest release behavior: The latest release tag v2026.6.6 still contains the same resolver behavior that prefers system Node over version-manager Node when a supported system Node exists. (src/daemon/runtime-paths.ts:225, 8c802aa68351)
    • Direct attempted fix is not a shipped fix: The directly linked fix PR is closed unmerged, so it should not be treated as implemented or as a safe replacement landing path.
    • Canonical remaining issue: The open broader issue tracks the same managed-service version-manager runtime policy and durable runtime pin/acknowledgement question with multiple user reports.

    Likely related people:

    • steipete: Authored the daemon runtime best-practice audit and shared daemon install runtime scaffolding that shape the current system-Node preference. (role: feature-history owner; confidence: high; commits: 1cf85030172b, c35f529fac4b; files: src/daemon/runtime-paths.ts, src/daemon/service-audit.ts, src/commands/daemon-install-plan.shared.ts)
    • Yao: Authored the earlier change that preferred the current Node executable and added version-manager service PATH handling, which this issue asks to refine for managed services. (role: introduced adjacent version-manager behavior; confidence: medium; commits: 1a8548df1876; files: src/daemon/runtime-paths.ts, src/daemon/runtime-paths.test.ts, src/daemon/service-env.ts)
    • scoootscooob: Authored Homebrew stable Node path handling in the same runtime-path selection area, which informs durable daemon runtime path policy. (role: adjacent stable-runtime contributor; confidence: medium; commits: 8950c595818a, 163f5184b367; files: src/daemon/runtime-paths.ts, src/daemon/runtime-paths.test.ts, src/infra/stable-node-path.ts)
    • vincentkoc: Recent release and broad main history touched the same daemon runtime files and gateway doctor docs, making this a useful routing candidate for release/current-behavior review. (role: recent area contributor; confidence: medium; commits: 8c802aa68351, fa9ce6ea0efb; files: src/daemon/runtime-paths.ts, src/daemon/runtime-paths.test.ts, docs/gateway/doctor.md)

    Codex review notes: model internal, reasoning high; reviewed against 44bf1c6d728a.

  2. added
    P2Normal backlog priority with limited blast radius.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 2, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions