Skip to content

[Ubuntu 26.04][Onboard] Model Router onboarding fails at step 7/8 with OpenClaw gateway ECONNREFUSED right after sandbox creation; onboard --resume then succeeds #13465

Closed

Description

@mercl-lau

Warning

Regression — worked in v0.0.135, broken on main at commit 762aef4.

Description

On NemoClaw main (reports v0.1.0), non-interactive onboarding of an OpenClaw sandbox through the Model Router route (provider nvidia-router / model nvidia-routed) always stops at step 7/8 "Setting up OpenClaw inside sandbox". About 1.5 seconds after "Sandbox created" the setup runs an OpenClaw gateway restart inside the new sandbox, and that command fails with Gateway not reachable at ws://127.0.0.1:18789/ (ECONNREFUSED).

The sandbox's own gateway log shows the gateway was still starting at that moment and reported ready about 3 seconds after it began loading, so the restart is issued before the first gateway start has finished, and it does not wait or retry. Running nemoclaw onboard --resume a few seconds later completes 7/8 and 8/8 and prints "Deployment verified", which confirms nothing is wrong with the sandbox, the router or the route; only the timing of the step 7/8 restart is.

Observed 3 of 3 times on this host with a CPU sandbox (--no-gpu) and once more with a GPU sandbox (the second sandbox fails the same way at ws://127.0.0.1:18790/). Onboarding the NVIDIA Endpoints route (provider build) on the same host and build passes step 7/8, so the Model Router route is the one affected.

  • Platform scope: Reproduced on Ubuntu 26.04 x86_64 (RTX 5070 Ti) only; other platforms not tested.
  • Regression: Yes — worked in v0.0.135 (same host, same non-interactive Model Router onboarding completed and the sandbox served inference), broken on main at commit 762aef4.
  • OpenShell issue: No — the failing command is the OpenClaw gateway restart that NemoClaw onboarding runs inside the sandbox; the sandbox itself is created and healthy (openshell 0.0.116).

Environment

Device:        Ubuntu 26.04 GPU workstation (NVIDIA GeForce RTX 5070 Ti, 16 GB)
OS:            Ubuntu 26.04.1 LTS (kernel 7.0.0-31-generic)
Architecture:  x86_64
Node.js:       v22.23.3
npm:           10.9.9
Docker:        29.1.3
OpenShell CLI: openshell 0.0.116
NemoClaw:      main @ 762aef4c, reports nemoclaw v0.1.0 (installed via nemoclaw.sh with NEMOCLAW_INSTALL_TAG=main)
OpenClaw:      2026.9.2
Model Router:  started by onboarding on port 4000 with a Python 3.13.15 interpreter pinned through NEMOCLAW_MODEL_ROUTER_PYTHON

Steps to Reproduce

  1. Install main and have the NemoClaw CLI available:
    curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_INSTALL_TAG=main NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1 bash
  2. Onboard a fresh OpenClaw sandbox through the Model Router route, non-interactively, with a usable Python 3.10-3.13 pinned for the router:
    export NVIDIA_API_KEY=nvapi-{redacted}
    NEMOCLAW_NON_INTERACTIVE=1 NEMOCLAW_PROVIDER=routed NEMOCLAW_SANDBOX_NAME=repro-router NEMOCLAW_POLICY_MODE=skip \
      NEMOCLAW_MODEL_ROUTER_PYTHON=/absolute/path/to/python3.13 NEMOCLAW_MODEL_ROUTER_VENV=/tmp/repro-router-venv \
      nemoclaw onboard --non-interactive --yes-i-accept-third-party-software --yes --no-gpu --fresh
  3. Watch steps 4/8 (router starts on port 4000, "Inference smoke passed", "Inference route set"), 6/8 ("Sandbox 'repro-router' created") and 7/8.
  4. Right after the failure, inspect the sandbox gateway:
    nemoclaw repro-router exec --no-stdin -- sh -c 'openclaw gateway status; tail -20 /sandbox/.openclaw/logs/gateway-persistent.log'
  5. Resume:
    nemoclaw onboard --resume --name repro-router --non-interactive --yes-i-accept-third-party-software --yes
  6. Optional: repeat step 2 without --no-gpu and a different sandbox name (GPU sandbox).

Expected Result

Step 7/8 waits for the sandbox gateway to accept connections (or retries the restart for a short grace period), and the first nemoclaw onboard run ends with "Deployment verified" and "OpenClaw is ready", as it does on v0.0.135 and as the NVIDIA Endpoints route still does on main.

Actual Result

Step 3: the first run exits 1 at step 7/8, about 1.5 seconds after the sandbox is created:

  ✓ Sandbox 'repro-router' created
  Obsolete sandbox image retirement skipped: no-owned-image
  [7/8] Setting up OpenClaw inside sandbox
  Failure layer: native agent command - gateway restart failed for 'repro-router'.
  "type": "cli_error",
  "message": "Gateway not reachable at ws://127.0.0.1:18789/ (ECONNREFUSED).\nStart it with `openclaw gateway run` or check `openclaw gateway status`. ..."
  Gateway target: ws://127.0.0.1:18789/
  Source: local loopback
  Config: /sandbox/.openclaw/openclaw.json
  Bind: loopback
Error: OpenClaw native gateway restart failed during setup (native agent command): { "ok": false, "error": { "type": "cli_error", "message": "Gateway not reachable at ws://127.0.0.1:18789/ (ECONNREFUSED). ..." } }
  Onboarding did not finish. Resume from the step that failed with:
    nemoclaw onboard --resume

Step 4 (a few seconds later): the gateway is up and listening on 18789; nemoclaw repro-router status reports Inference healthy, Phase: Ready, Agent OpenClaw v2026.9.2.

Step 5: nemoclaw onboard --resume exits 0:

  [3/8] Configuring inference provider
  ✓ Model router is already healthy on port 4000
  [7/8] Setting up OpenClaw inside sandbox
  [8/8] Policy presets
  ✓ Deployment verified — gateway, dashboard, and inference route are healthy.
  OpenClaw is ready

Step 6 (GPU sandbox): identical failure, target ws://127.0.0.1:18790/.

The same failure was seen in two automated runs of the same flow on this host earlier the same day (main, CPU sandbox), so 4 of 4 on main.

Logs

Sandbox gateway log (/sandbox/.openclaw/logs/gateway-persistent.log) read right after the step 7/8 failure; the sandbox was created at 09:40:58 UTC and the onboard failure was printed about 1.5 s later:

2026-10-19T09:40:59.572+00:00 [gateway] loading configuration…
2026-10-19T09:40:59.585+00:00 [gateway] resolving authentication…
2026-10-19T09:40:59.593+00:00 [gateway] starting...
2026-10-19T09:41:01.306+00:00 [gateway] starting HTTP server...
2026-10-19T09:41:01.728+00:00 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
2026-10-19T09:41:02.078+00:00 [gateway] ⚠️  Gateway is binding to a non-loopback address. Ensure authentication is configured before exposing to public networks.
2026-10-19T09:41:02.317+00:00 [gateway] http server listening (14 plugins: ...; 2.7s)
2026-10-19T09:41:02.744+00:00 [gateway] ready
2026-10-19T09:41:03.719+00:00 [gateway] remote model catalog updated; restart the Gateway to apply it

openclaw gateway status inside the sandbox after the failure:

Service: systemd user (disabled)
Gateway: bind=loopback (127.0.0.1), port=18789 (env/config)
Probe target: ws://127.0.0.1:18789
CLI version: 2026.9.2
listener: LISTEN 0.0.0.0:18789

Host side after the failure: the Model Router process started in step 4/8 is running and GET http://127.0.0.1:4000/v1/models returns HTTP 200.

Activity

  1. added
    NV QA
    needs: triage
    QA Test Blocker
    on Oct 19, 2026
  2. added theissue type on Oct 19, 2026
  3. added a commit that references this issue on Oct 19, 2026
    d087dbc
  4. added
    area: onboarding
    integration: openclaw
    and removed
    needs: triage
    on Oct 22, 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

    NV QAQA Test Blockerarea: onboardingintegration: openclaw

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions