NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platforms]openclaw agent --local causes sandbox crash — stuck in Provisioning, unrecoverable

Open hulynn opened this issue 7 months ago • 0 comments

Description

Description: Running openclaw agent --agent main --local -m "hello" inside a sandbox created with --dangerously-skip-permissions causes the sandbox process to crash. The sandbox enters "Provisioning" phase and never recovers to "Ready". nemoclaw connect returns gRPC FailedPrecondition "sandbox is not ready" indefinitely.

[Environment] Platform: macOS Apple Silicon (M4, 24GB unified memory) NemoClaw: v0.0.18 OpenShell: 0.0.25 OpenClaw: 2026.4.2 Docker runtime: Colima Sandbox: test2 (Cloud API, nvidia-prod, --dangerously-skip-permissions)

[Steps to Reproduce]

  1. nemoclaw onboard --dangerously-skip-permissions 2. Select NVIDIA Endpoints (Cloud API), model nemotron-3-super-120b-a12b 3. Complete onboard — sandbox created successfully, permissive policy applied 4. nemoclaw test2 connect — enters sandbox shell OK 5. Verify sandbox writable: touch /sandbox/test-write.txt → PASS 6. Verify network open: curl -s -o /dev/null -w "%{http_code}" https://api.github.com → 403 (reached GitHub, proxy open) 7. Run: openclaw agent --agent main --local -m "hello" --session-id skip-perm-test 8. Output shows:
       [SECURITY] Warning: 'openclaw agent --local' bypasses the NemoClaw gateway.
       [SECURITY] Secret scanning, network policy, and inference auth are NOT enforced in local mode.
       Then immediately: "Connection to sandbox closed by remote host."
       Host shell shows: "client_loop: send disconnect: Broken pipe"
9. nemoclaw test2 status → Phase: Provisioning (not Ready)
10. Wait 60+ seconds → still Provisioning
11. nemoclaw test2 connect → "sandbox is not ready" (gRPC FailedPrecondition)
12. Sandbox never recovers

Root Cause Analysis: openclaw agent --local bypasses the NemoClaw gateway and attempts to call the inference provider directly from within the sandbox. The [SECURITY] warning confirm this mode is intentionally unsupported in the NemoClaw-managed sandbox context.

The crash likely occurs because --local mode attempts to bind ports or spawn processes that conflict with the sandbox's entrypoint (nemoclaw-start). When the agent process crashes, it takes down the sandbox container's main process, causing OpenShell to mark the sandbox as failed and attempt re-provisioning — which never completes because the gateway state is stale.

Permissive policy (openclaw-sandbox-permissive.yaml) opens all network endpoints with access: full and binaries: /**, but filesystem remains restricted: - /sandbox/.openclaw is read-only (root-owned, mode 444) - /sandbox and /sandbox/.openclaw-data are writable The --local flag may attempt to write to restricted paths or bind to ports that conflict with the gateway's proxy configuration (10.200.0.1:3128).

Note: openclaw agent --local is documented in README.md and quickstart.md as a valid command, but the [SECURITY] Warning suggests it should NOT be used inside NemoClaw sandboxes. The docs do not mention this incompatibility.

[Expected Result] Sandbox should not crash. If --local is unsupported, clear error before execution.


[NVB# 6089861]

hulynn avatar Apr 17 '26 13:04 hulynn