Skip to content

[WSL2 + Docker Desktop] Sandbox not found after GPU allocation failure prevents policy setup #140

Closed

Description

@jacobcollado

Environment

  • OS: Windows 11
  • Runtime: WSL2 (Ubuntu) + Docker Desktop
  • GPU: NVIDIA RTX 40 series, 12282MB VRAM
  • NemoClaw: v0.1.0
  • OpenShell: 0.0.7

What happened

After completing onboarding steps 1-6 successfully, the gateway
consistently fails to apply policy presets at step 7/7.

Error sequence

  1. Sandbox image builds and uploads to gateway successfully
  2. GPU allocation fails with:
    FailedPrecondition: GPU sandbox requested, but the active gateway has no allocatable GPUs
  3. Sandbox shows as created (listed in nemoclaw help)
  4. All subsequent commands fail with:
    NotFound: sandbox not found

Reproduction steps

  1. Install NemoClaw on Windows 11 via WSL2 + Docker Desktop
  2. Run nemoclaw onboard
  3. Select NVIDIA Cloud API (option 2) at step 4/7
  4. Accept suggested policy presets (pypi, npm) at step 7/7
  5. 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.

Activity

  1. coltongroves commented on Mar 17, 2026

    @coltongroves

    Im having this same issue. Have tried so many times. I am running 5070 TI.

  2. brianwtaylor commented on Mar 17, 2026

    @brianwtaylor
    Contributor

    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.

  3. jacobcollado commented on Mar 17, 2026

    @jacobcollado
    Author

    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.

  4. jacobcollado commented on Mar 17, 2026

    @jacobcollado
    Author

    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!

  5. brianwtaylor commented on Mar 17, 2026

    @brianwtaylor
    Contributor

    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.

  6. added
    area: onboarding
    area: sandbox
    platform: container
    platform: wsl
    on Nov 13, 2026
  7. added theissue type on Nov 13, 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

    area: onboardingarea: sandboxplatform: containerplatform: wsl

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions