[All Platforms][Onboard] ollama can not onboard sandbox
Description
On DGX Spark, onboarding aborts before creating the sandbox:
Error: Cannot allocate dashboard port: NemoClaw could not prove OpenShell forward ownership.
Nothing about the host explains the refusal. The documented dashboard range has nine of its eleven ports free, the gateway port is one that has never been used on the host and has no state directory, and the sandbox name is new. The message names no port, no competing owner, and no action the operator can take.
The failure is not specific to a profile or an agent: it reproduces with a plain onboard using the default agent and cloud inference, with no managed local-inference profile involved.
Scope observed so far: both DGX Spark hosts available for this pass reproduce it. The same build on three non-Spark Linux hosts onboarded successfully many times during the same session, so the failure appears specific to these Spark hosts rather than to the build in general. What distinguishes them is that they carry other users' sandboxes that already hold some dashboard ports, but free ports remain in the range.
- Platform scope: Reproduced on two DGX Spark (GB10) hosts running Ubuntu 24.04 aarch64; non-Spark Linux hosts on the same build did not reproduce it this pass.
- Regression: Unknown — earlier builds not tested for this path this pass.
- OpenShell issue: Unclear from the outside. The message attributes the failure to an OpenShell forward-ownership proof, but it is NemoClaw's onboarding that refuses; the OpenShell gateway itself is healthy and
openshell forward listreports no active forwards.
Environment
Device: NVIDIA DGX Spark (GB10), two separate hosts
OS: Ubuntu 24.04.4 LTS
Architecture: aarch64
Docker: Docker version 29.2.1
OpenShell CLI: openshell 0.0.116
NemoClaw: nemoclaw v0.0.126
Agent: OpenClaw
Provider: NVIDIA cloud inference
Steps to Reproduce
-
On a DGX Spark that already hosts other sandboxes, record which ports in the documented dashboard range are in use, and confirm several are free:
for p in $(seq 18789 18799); do ss -ltnH | awk '{print $4}' | grep -qw $p && echo "$p busy" || echo "$p free" done -
Choose a gateway port that has never been used on this host and confirm it has no state directory under the NemoClaw state root.
-
Onboard a brand-new sandbox name with the default agent and cloud inference:
NEMOCLAW_GATEWAY_PORT={unused port} nemoclaw onboard --fresh --name {new name} \ --non-interactive --yes --yes-i-accept-third-party-software -
Read the tail of the output and the exit code.
-
Run
openshell forward listandopenshell gateway list.
Expected Result
Onboarding allocates one of the free dashboard ports and continues.
If it genuinely cannot prove ownership of a candidate port, the error should name the port it tried, say who it believes owns it, and tell the operator what to do — the same way the port-conflict message for the managed local-inference port does, which names both the port and the holding process.
Actual Result
dashboard range 18789 free, 18790 free, 18791 busy, 18792 busy,
18793-18799 all free
gateway port chosen previously unused, no state directory
sandbox name new
onboard exit code 1
Error: Cannot allocate dashboard port: NemoClaw could not prove OpenShell forward ownership.
Onboarding did not finish. Resume from the step that failed with:
nemoclaw onboard --resume
No port number appears anywhere in the message. Afterwards:
openshell forward list No active forwards.
openshell gateway list the gateway is registered and healthy
Reproduced on a second DGX Spark host with the same build, a different unused gateway port and a different new sandbox name.
Logs
onboard (plain, default agent) exit 1, "could not prove OpenShell forward ownership"
onboard (managed llama.cpp profile) exit 1, same message
free ports in the dashboard range 9 of 11
gateway state directory before run absent
openshell forward list after No active forwards.
non-Spark hosts, same build onboarding succeeded repeatedly
Related issues / not duplicate of
No existing report covers this refusal.
Closest, and not duplicates:
- #8798 — the dashboard port was baked into the sandbox image before being bound, so onboard destroyed the freshly built sandbox when the port turned out to be in use. That one is about a port that is genuinely occupied and is already fixed; here the range has free ports and no port is named at all.
- #4084 — the dashboard bound an occupied 18789 instead of moving to the next free port in the range. That is the inverse: it bound something it should not have, where this refuses to bind anything.
- #11963 — dashboard forward times out on macOS/WSL2. Different symptom (a timeout after the port is chosen) on different platforms.
Additional repro: also reproduces on a non-Spark x86_64 host, and also blocks Hermes Portable's multi-forward allocation (not just the single dashboard port)
Reproduced the identical failure — Cannot allocate dashboard port: NemoClaw could not prove OpenShell forward ownership. — on a standard Linux x86_64 host with a discrete NVIDIA GPU (not DGX Spark), so this does not appear to be Spark-specific after all.
Environment
Device: Linux x86_64 server, discrete NVIDIA GPU (32 GB)
OS: Ubuntu 24.04.4 LTS
Architecture: x86_64
Docker: 29.7.2
OpenShell CLI: openshell 0.0.116
NemoClaw: v0.0.126
Agent: Hermes Portable (nemohermes onboard)
Provider: NVIDIA cloud inference (also reproduced earlier the same session with ollama-local)
Repro steps (3 independent hits this session):
nemohermes onboard --fresh --name <new> --non-interactive --yes --yes-i-accept-third-party-softwareon a gateway port that had never been used before (no prior state directory) — failed at step [6/8] Creating sandbox with the forward-ownership error.- Repeated on a second, completely fresh
NEMOCLAW_GATEWAY_PORT+NEMOCLAW_OPENSHELL_GATEWAY_STATE_DIR(never used before) — same error, same wording. openshell forward listwas empty (No active forwards.) both before and after each failure, and the gateway's own server-side log shows zero forward-related RPC calls around the failure — the refusal appears to happen client-side, before any forward request reaches OpenShell at all.
New angle vs. the original report: for Hermes Portable specifically, the same "could not prove ownership" refusal also blocks the Hermes API port (a different forward than the browser dashboard port) — so whatever this check is, it's not limited to the dashboard-port allocation path; it fires on the general forward-allocation code path Hermes Portable's multi-forward launch readiness also goes through.
This confirms the bug is general (not Spark-only) and broader than dashboard-port allocation (also hits the Hermes-API-port allocation used by Hermes Portable's launch-readiness step).
Scope updated in the title. Renamed from [DGX Spark][Onboard] onboarding cannot allocate a dashboard port ... to reflect the corroborating report above.
To be explicit about whose evidence supports what, since the two differ:
- My original report covers DGX Spark and the dashboard-port allocation path only. That is all I verified.
- The broadening is @lyral-commits' evidence, not mine, and I have not independently reproduced it: a standard Linux x86_64 host with a discrete GPU, three independent hits on never-before-used gateway ports and state directories, and the same refusal blocking the Hermes API port as well as the dashboard port.
I renamed it because leaving [DGX Spark] on a failure that has been reported on x86_64 risks triage de-prioritising or mis-routing it, and because the original tag is now the narrower claim. If the cross-platform reproduction turns out not to hold, the title should go back.
The most actionable detail in that report, for whoever picks this up: openshell forward list was empty before and after each failure, and the gateway's server-side log shows no forward-related RPC calls at all around the failure. That places the refusal on the client side, before any forward request reaches OpenShell — so the ownership proof appears to fail without ever consulting the service that owns the forwards.
This issue is currently unassigned and unlabelled.
I observed a related dashboard-port allocation failure on an N1X Windows ARM64 system running NemoClaw inside WSL2.
Behavior
After a clean NemoClaw installation, onboarding completed the preflight checks, started a healthy OpenShell gateway, and configured local Ollama inference with qwen3.6:35b. It then failed during sandbox creation:
[6/8] Creating sandbox
──────────────────────────────────────────────────
Error: Cannot allocate dashboard port: The OpenShell forward operation timed out.
Onboarding did not finish. Resume from the step that failed with:
nemoclaw onboard --resume
At the time of failure:
- Ports 18789–18799 were all free.
openshell forward listreported no active forwards.- The NemoClaw OpenShell gateway was registered and healthy at
https://127.0.0.1:8080. - Local Ollama was healthy on
127.0.0.1:11434. - No web search, messaging channel, or resource profile was enabled.
The exact error differs from the original report: N1X WSL reports The OpenShell forward operation timed out, while this issue reports could not prove OpenShell forward ownership. Both failures occur at the same dashboard-port allocation/forwarding stage despite free dashboard ports and a healthy gateway. This may be the WSL-specific variant of the same underlying forward-ownership or readiness problem.
Machine configuration
Platform
- Product: NVIDIA N1X
- System model: Yukon B00
- System family: TUMAZ
- Architecture: ARM64
- System memory: about 63.4 GiB
Windows
- Edition: Windows 11 Enterprise
- Build: 28000
- Revision: 3086
- Architecture: ARM64
WSL
- WSL release: 3.0.1
- Distribution: Ubuntu 24.04.5 LTS
- Architecture: aarch64
- Kernel: WSL2 microsoft-standard kernel 6.18
GPU
- GPU: NVIDIA RTX Spark N1X (6144-core Blackwell RTX GPU)
- GPU memory: 64000 MiB
- Driver/KMD version: 617.42
- CUDA UMD version: 13.4
Runtime
- Docker Desktop: 4.94.0
- Docker client/server: 29.8.2 / 29.8.2
- Ollama: 0.40.1
- OpenShell CLI: 0.0.116
- NemoClaw: v0.0.131
- Node.js: v22.23.3
- npm: 10.9.9
Onboarding
- Agent: OpenClaw
- Provider: Local Ollama
- Model:
qwen3.6:35b
Test update from another DGX Spark, and follow-up on merged PR #13048 (4160e2f7):
- On this Spark,
lsof -ti4TCP:<port> -sTCP:LISTENreturned exit 1 with empty stdout and stderr for every port from 18789 through 18799.openshell forward listreported no active forwards. - Using the real host
lsofand TCP probes, the adapter classified port 18789 asabsenton both pre-fixmain(bc4f3b4e3) and the PR commit (3951239b5). We did not reproduce the reported failure on this host. - I could not complete a live onboarding run here: the configured OpenShell gateway refused connections, and Ollama was not installed or listening. This host does not provide end-to-end evidence that the PR resolves the issue.
- The focused regression test did reproduce the code bug: with a free port and
lsofexit 1, empty stdout, and a stderr warning, pre-fixmainreturnedindeterminatewith an ownership error. The PR returnedabsent. All 83 tests inforward-cli.test.tspassed on the PR commit.
@wangericnv @lyral-commits, could you retry onboarding on a host where this failure occurred, using a build that includes merge commit 4160e2f7 from #13048? A newer release only tests this change if it contains that commit. Please report whether onboarding passes. If it still fails, please share the exact error and the output and exit code from the affected host for a free dashboard port, for example:
lsof -ti4TCP:18789 -sTCP:LISTEN
printf 'exit=%s\n' "$?"
openshell forward list
The WSL2 report of The OpenShell forward operation timed out has a different error; #13048 does not address that timeout.
Retest with merge commit 4160e2f7 (#13048) on a DGX Spark (GB10, aarch64, Ubuntu 24.04), per @prekshivyas's request — PASS.
Build: cloned NVIDIA/NemoClaw fresh, checked out 4160e2f7ef43bd978a1a8683ca09dd564a81aec9 directly (this commit is not yet in a release tag — latest is still v0.0.133, cut before this merge), npm install (triggers the build), ran via node bin/nemoclaw.js so the host's existing installed v0.0.132 and its live sandbox were left untouched. node bin/nemoclaw.js --version reported nemoclaw v0.0.133-4-g4160e2f7e, confirming the fix commit is in the binary under test.
Host state before the run (same host also carries another live sandbox, confirming this reproduces the "other users' sandboxes hold some dashboard ports, free ports remain" condition from the original report):
18789 busy (pre-existing sandbox's dashboard)
18790-18799 all free
NEMOCLAW_GATEWAY_PORT=19999 — never used before, no prior state directory.
Repro steps run (ollama provider, matching this issue's current title):
NEMOCLAW_GATEWAY_PORT=19999 NEMOCLAW_PROVIDER=ollama NEMOCLAW_MODEL=qwen3.5:9b \
node bin/nemoclaw.js onboard --fresh --name v11979test \
--non-interactive --yes --no-gpu --yes-i-accept-third-party-software
Result: exit 0. Onboarding completed all 8 steps, allocated dashboard port 18790 (the first free port in the range) without error, and finished with "✓ Deployment verified — gateway, dashboard, and inference route are healthy." No "could not prove OpenShell forward ownership" error, and no timeout. openshell gateway list showed the new gateway nemoclaw-19999 healthy. Cleaned up afterward (destroy --yes, gateway removed) — host left in its original state.
This confirms the fix resolves the dashboard-port allocation path on DGX Spark with a pre-occupied low port in the range and ollama as the provider. I did not test the Hermes-API-port / Hermes Portable angle from @lyral-commits' comment, or the WSL2 timeout variant from @puyanz11's comment (different error text, already noted as out of scope for this PR) — those would need separate verification once reproducible environments are available.
Retested on the N1X/WSL2 host using a build from merge commit 4160e2f7ef43bd978a1a8683ca09dd564a81aec9 from #13048. Verified version: v0.0.133-4-g4160e2f7e, onboarding still fails at [6/8] Creating sandbox, with exit code 1: Error: Cannot allocate dashboard port: The OpenShell forward operation timed out.
Thanks for retesting, @puyanz11. This confirms that #13048 did not resolve the N1X/WSL2 timeout. Please keep this issue open.
One diagnostic would help locate the delay. Your earlier report used the default gateway port 8080. On that port, NemoClaw rechecks the packaged OpenShell user-service authority during the dashboard forward observation. A free nondefault gateway port avoids that service check. Could you repeat the same onboarding command with NEMOCLAW_GATEWAY_PORT=<free nondefault port>, --fresh, and a new sandbox name, while keeping the other options the same? Please report:
- whether step 6 passes or still times out;
- the elapsed time from
[6/8] Creating sandboxto the result; - the output of
openshell forward listafter the attempt.
This is a diagnostic hypothesis, not a confirmed WSL2 cause. The 15-second observation budget can also be consumed by the forward-list command or host probes. If the nondefault-port run still fails, those paths need separate timing evidence.
Correction to my previous diagnostic request: I traced the call order more closely. The default-port packaged-service check runs outside the forward adapter's 15-second observation deadline. It can add elapsed time, but it does not explain The OpenShell forward operation timed out. from dashboard-port allocation. A nondefault-port comparison may still be useful, but it is not the first test to run for this error.
That timeout can come from the adapter's openshell forward list invocation, a TCP reachability probe, or exhaustion of the shared 15-second deadline while observing the port batch. The fast standalone port scans reported for WSL2 do not exercise the gateway-scoped forward-list command used by onboarding.
@puyanz11, while the failing gateway is healthy, could you time the exact read-only command that onboarding invokes and share its output and elapsed time?
time openshell forward list --gateway nemoclaw --gateway-endpoint https://127.0.0.1:8080 --workspace default
If the gateway name or endpoint differs on that run, use the values from openshell gateway list. If this command is fast, the next step is to time each stage inside the adapter during one failing onboarding run; the current error does not identify which stage consumed the deadline.
@puyanz11, could you compare your failing setup with the configuration that passed on our ARM64 WSL2 host?
- Ubuntu 24.04.5 LTS, Docker Desktop 4.95.0 with WSL integration enabled (engine 29.8.2).
- OpenShell CLI/gateway/sandbox 0.0.116; WSL-local Ollama 0.40.1; model
qwen3.6:35b. - Source checkout at
4160e2f7ef43bd978a1a8683ca09dd564a81aec9, using fresh sandbox names and--non-interactive --yes --no-gpu --yes-i-accept-third-party-software.
Both gateway ports 8080 and 19979 completed all eight onboarding steps with exit 0. With dashboard port 18789 occupied, the 8080 run selected 18790.
Our environment differs: WSL 2.6.3.0/kernel 6.6.87.2 and root-owned standalone gateways. The generated build identity recorded the commit above, but the CLI reported v0.1.0, unlike your reported version string. This is a configuration comparison, not a confirmed timeout fix or a recommendation to downgrade WSL or run as root.
Could you try the same Docker/OpenShell/Ollama combination with a fresh sandbox and report whether the timeout persists? Before changing the failing setup, the timed gateway-scoped openshell forward list command requested above would also help locate the delay.
@prekshivyas @rsliter QA verified on v0.0.134 — PASS.
Platform: DGX Spark GB10, Ubuntu 24.04 aarch64, openshell 0.0.116
The host already carried another sandbox holding a dashboard port, which is the precondition this issue describes.
Dashboard port range before the test:
18789 free, 18790 free, 18791 free, 18792 free, 18793-18799 all free
$ nemoclaw list
Sandboxes:
test-sandbox *
dashboard: http://127.0.0.1:18789/
$ openshell forward list
No active forwards.
Onboarded a brand-new sandbox with a gateway port that had never been used on this host:
NEMOCLAW_GATEWAY_PORT=40901 nemoclaw onboard --fresh --name portcheck-a \
--non-interactive --yes --yes-i-accept-third-party-software
Onboarding completed. It allocated a free dashboard port instead of refusing:
Remote access (SSH session detected):
ssh -L 18790:127.0.0.1:18790 <user>@<host>
$ nemoclaw portcheck-a status
Inference: healthy (https://inference.local/v1/models)
Inference (route reachability): reachable (https://inference.local/v1/models)
Inference (vllm backend): healthy (http://127.0.0.1:8000/v1/models)
Sandbox GPU: enabled (auto) (CUDA verified)
Port 18790 is bound afterwards, 18789 still belongs to the other sandbox:
18789 free, 18790 busy, 18791 free
Cannot allocate dashboard port and could not prove OpenShell forward ownership appear 0 times in the full onboarding log.
One note for triage: the issue title says ollama can not onboard sandbox, but the description and repro steps are about dashboard-port allocation on DGX Spark with no Ollama involved. I verified against the description.
Close it.