You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[WSL2 + Docker Desktop] Sandbox not found after GPU allocation failure prevents policy setup #140
area: onboardingOnboarding FSM, provider setup, sandbox launch, or first-run flowarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryplatform: containerAffects Docker, containerd, Podman, or imagesplatform: wslAffects Windows Subsystem for Linux
After completing onboarding steps 1-6 successfully, the gateway
consistently fails to apply policy presets at step 7/7.
Error sequence
Sandbox image builds and uploads to gateway successfully
GPU allocation fails with: FailedPrecondition: GPU sandbox requested, but the active gateway has no allocatable GPUs
Sandbox shows as created (listed in nemoclaw help)
All subsequent commands fail with: NotFound: sandbox not found
Reproduction steps
Install NemoClaw on Windows 11 via WSL2 + Docker Desktop
Run nemoclaw onboard
Select NVIDIA Cloud API (option 2) at step 4/7
Accept suggested policy presets (pypi, npm) at step 7/7
Error occurs consistently — reproduced 3+ times
Expected behavior
Sandbox should be reachable after creation and policy presets
should apply successfully.
Notes
The gateway detects the GPU (12282 MB VRAM detected) during
preflight checks but fails to allocate it to the sandbox container.
Workaround unknown — nemoclaw <sandbox> connect also returns sandbox not found.
This looks like the same root cause as #208 — on WSL2, GPU passthrough to k3s-in-Docker doesn't work, causing sandbox creation to fail when --gpu is passed.
PR #209 adds WSL2 detection and skips --gpu in that environment, which should resolve this.
Update after PR #209 merge:
The GPU allocation error is resolved, onboarding now completes successfully with policies applied. However sandbox not found persists on connect.
Steps completed successfully:
Gateway starts and shows healthy
Sandbox my-assistant created with Landlock + seccomp + netns
Model configured: nvidia/nemotron-3-super-120b-a12b (NVIDIA Cloud API)
Policies applied
Still failing:
nemoclaw my-assistant connect
Error: status: NotFound, message: "sandbox not found"
Command failed (exit 1): openshell sandbox connect my-assistant
Reproduced consistently after fresh gateway destroy/recreate and full re-onboard. Environment: Windows 11, WSL2 + Docker Desktop, RTX 40 series.
PR #209 resolved the GPU allocation error during onboarding (GPU sandbox requested but no allocatable GPUs)
PR #208 was the actual workaround that got the sandbox connecting successfully — manually creating the gateway, provider, inference route, and sandbox without the --gpu flag
For anyone on Windows 11 + WSL2 + Docker Desktop, #209 alone won't get you to a working connect. The manual steps from #208 are still required until a fuller fix lands.
Traced through the code — found two compounding bugs in createSandbox() (bin/lib/onboard.js line 195).
Bug 1: Pipeline masks creation failures. The sandbox create command is piped through awk to deduplicate a log line. Bash returns the exit status of the last pipeline command (awk, always 0), not openshell sandbox create. If creation fails — Docker Desktop networking timeout, image push issue, k3s not ready — the wizard doesn't notice and continues to step 4.
Bug 2: No readiness verification before registering. After that command, the wizard immediately writes the sandbox to ~/.nemoclaw/sandboxes.json without checking that openshell sandbox list shows it as Ready. The legacy setup.sh script does verify readiness (lines 184-200), but the onboard.js wizard skipped that step. So NemoClaw thinks the sandbox exists, but OpenShell's k3s cluster never fully created it.
Can you confirm?
# What OpenShell actually has:
openshell sandbox list
# What NemoClaw thinks it has:
cat ~/.nemoclaw/sandboxes.json
If openshell sandbox list is empty or shows no Ready sandbox, that confirms the phantom registration.
Workaround:
rm ~/.nemoclaw/sandboxes.json
nemoclaw onboard
Fix is in PR #229 — removes the awk pipe so failures surface, adds a readiness poll before registering, and cleans up temp files on failure.
area: onboardingOnboarding FSM, provider setup, sandbox launch, or first-run flowarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryplatform: containerAffects Docker, containerd, Podman, or imagesplatform: wslAffects Windows Subsystem for Linux
Activity
coltongroves commentedon Mar 17, 2026
Im having this same issue. Have tried so many times. I am running 5070 TI.
brianwtaylor commentedon Mar 17, 2026
This looks like the same root cause as #208 — on WSL2, GPU passthrough to k3s-in-Docker doesn't work, causing sandbox creation to fail when
--gpuis passed.PR #209 adds WSL2 detection and skips
--gpuin that environment, which should resolve this.jacobcollado commentedon Mar 17, 2026
Update after PR #209 merge:
The GPU allocation error is resolved, onboarding now completes successfully with policies applied. However sandbox not found persists on connect.
Steps completed successfully:
Gateway starts and shows healthy
Sandbox my-assistant created with Landlock + seccomp + netns
Model configured: nvidia/nemotron-3-super-120b-a12b (NVIDIA Cloud API)
Policies applied
Still failing:
nemoclaw my-assistant connect
Error: status: NotFound, message: "sandbox not found"
Command failed (exit 1): openshell sandbox connect my-assistant
Reproduced consistently after fresh gateway destroy/recreate and full re-onboard. Environment: Windows 11, WSL2 + Docker Desktop, RTX 40 series.
jacobcollado commentedon Mar 17, 2026
Clarification on fixes:
PR #209 resolved the GPU allocation error during onboarding (GPU sandbox requested but no allocatable GPUs)
PR #208 was the actual workaround that got the sandbox connecting successfully — manually creating the gateway, provider, inference route, and sandbox without the --gpu flag
For anyone on Windows 11 + WSL2 + Docker Desktop, #209 alone won't get you to a working connect. The manual steps from #208 are still required until a fuller fix lands.
Commands that worked:
bashopenshell sandbox delete my-assistant 2>/dev/null
openshell gateway destroy --name nemoclaw 2>/dev/null
docker volume rm openshell-cluster-nemoclaw 2>/dev/null
openshell gateway start --name nemoclaw
openshell provider create --name nvidia-nim --type nvidia --credential NVIDIA_API_KEY=
openshell inference set --provider nvidia-nim --model nvidia/nemotron-3-super-120b-a12b
openshell sandbox create --name my-assistant --from openclaw
Thank you, Brian!
brianwtaylor commentedon Mar 17, 2026
Traced through the code — found two compounding bugs in
createSandbox()(bin/lib/onboard.jsline 195).Bug 1: Pipeline masks creation failures. The sandbox create command is piped through
awkto deduplicate a log line. Bash returns the exit status of the last pipeline command (awk, always 0), notopenshell sandbox create. If creation fails — Docker Desktop networking timeout, image push issue, k3s not ready — the wizard doesn't notice and continues to step 4.Bug 2: No readiness verification before registering. After that command, the wizard immediately writes the sandbox to
~/.nemoclaw/sandboxes.jsonwithout checking thatopenshell sandbox listshows it asReady. The legacysetup.shscript does verify readiness (lines 184-200), but theonboard.jswizard skipped that step. So NemoClaw thinks the sandbox exists, but OpenShell's k3s cluster never fully created it.Can you confirm?
If
openshell sandbox listis empty or shows noReadysandbox, that confirms the phantom registration.Workaround:
rm ~/.nemoclaw/sandboxes.json nemoclaw onboardFix is in PR #229 — removes the awk pipe so failures surface, adds a readiness poll before registering, and cleans up temp files on failure.
fix: gate sandbox registration on creation readiness and guard WSL na…
fix: gate sandbox registration on creation readiness and guard WSL na…
fix: gate sandbox registration on creation readiness and guard WSL na…
fix(server): clamp list RPC page limit to prevent unbounded queries (N…
fix: gate sandbox registration on creation readiness and guard WSL na…