[Ubuntu 24.04][Sandbox] stale sandbox recovery removes registry entry before rebuild can recover
Description
Description
Template 5987908 validates recovery when the local registry and live container state diverge. On vm4 with NemoClaw v0.0.53, the CLI first suggested rebuild --yes, but connect removed the stale local registry entry before rebuild could run, leaving no usable recovery path.
Environment
Device: NVIDIA A100-SXM4-40GB VM
OS: Ubuntu 24.04.4 LTS
Architecture: x86_64
Node.js: command not found on host
npm: command not found on host
Docker: Docker version 29.5.2, build 79eb04c
OpenShell CLI: openshell 0.0.44
NemoClaw: nemoclaw v0.0.53
OpenClaw: OpenClaw v2026.5.22 (from nemoclaw my-assistant status)Steps to Reproduce
- Create a throwaway sandbox by restoring a snapshot into
div-vm4-121836. - Confirm a marker file exists in the throwaway sandbox.
- Remove the throwaway sandbox Docker container outside NemoClaw.
- Run
nemoclaw list. - Run
nemoclaw div-vm4-121836 status. - Run
nemoclaw div-vm4-121836 connect. - Follow the earlier recovery hint and run
nemoclaw div-vm4-121836 rebuild --yes.Expected Result
The CLI should provide one consistent recovery path. If status recommends rebuild --yes, a subsequent recovery command should still be able to rebuild/recreate the sandbox and preserve workspace state, or the CLI should not delete the registry state needed for that recovery.Actual Result
list still showed the stale sandbox. status reported the sandbox was stuck in Provisioning and recommended rebuild:
Sandbox 'div-vm4-121836' is stuck in 'Provisioning' phase.
Run nemoclaw div-vm4-121836 rebuild --yes to recreate the sandbox
Then connect removed the local registry entry:
Sandbox 'div-vm4-121836' is not present in the live OpenShell gateway. Removed stale local registry entry.
After that, rebuild could not run:
Sandbox 'div-vm4-121836' does not exist. Registered sandboxes: my-assistant
Bug Details
| Field | Value |
|---|---|
| Priority | Unprioritized |
| Action | Dev - Open - To fix |
| Disposition | Open issue |
| Module | Machine Learning - NemoClaw |
| Keyword | NemoClaw, NemoClaw_CLI&UX, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Sandbox |
[NVB#6239911]
Verified on Ubuntu 24.04 with nemoclaw v0.0.58 and openshell 0.0.44.
The original registry deletion behavior is partially improved: after deleting the live Docker container, status preserves the local registry entry and prints No local registry entry was removed by this status check.
However, the recovery path is still not complete. The suggested command still cannot recover the sandbox:
nemoclaw <sandbox> rebuild --yesreturns rc=1- output:
Sandbox '<sandbox>' is not running. Cannot back up state. Start it first or recreate with nemoclaw onboard --recreate-sandbox. - follow-up
status/connect --probe-onlystill report the sandbox is registered locally but absent from the live OpenShell gateway
So this is only partially fixed. The registry entry is preserved, but the advertised rebuild-based recovery still does not work.