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
Sandbox Not Available Anymore After Machine Restart #486
It is the second day it happens to me. I can not connect to my sandbox. Here is the result for the three following commands:
nemoclaw gege status
openshell sandbox list
openshell status
Sandbox: gege
Model: nvidia/nemotron-3-super-120b-a12b
Provider: nvidia-nim
GPU: no
Policies: npm, pypi, telegram, docker, huggingface
NIM: not running
No sandboxes found.
Server Status
Gateway: openshell
Server: https://127.0.0.1:8080/
Status: Connected
Version: 0.0.10
I have to onboard again.
Do I miss something or is it the correct behavior?
Thank you in advance !
Reproduction Steps
Start the VM
nemoclaw onboard => sandbox name is gege
Use it
End of the day: openshell gateway destroy
Shutdown the VM
Start the VM
openshell gateway start
nemoclaw gege connect
=> status: NotFound, message: "sandbox not found"
Environment
OS: Ubunutu 24.04 inside VMware Workstation Pro 25H2 for Windows
Node: 24.14
Docker: 29.3
Nemoclaw: the command nemoclaw --version not working
Logs
Checklist
I confirmed this bug is reproducible
I searched existing issues and this is not a duplicate
The fix persists the generated secret to /var/lib/rancher/k3s/server/ssh-secret.dat and reuses it on subsequent starts, ensuring the gateway always injects the same secret that the Sandbox CRD already has.
Hi @mak1jk thanks for this. I tried the above solution. It does sync the secrets and enabling for the nemoclaw sandboxname connect to run. However since you have forced pod recreation, your original sandbox state gets destroyed as well. Have you verified original state of sandbox has persisted? Thanks heaps
@boagerard Good catch — you're right. The manual workaround (sync secret + kubectl delete pod) does destroy sandbox state because the sandbox pod uses ephemeral storage (no PVC for /sandbox/). After recreation, the workspace is re-initialized from scratch.
Important distinction:
The workaround (manual secret sync + pod deletion) → state is lost. This is a temporary measure only.
The upstream fix (entrypoint patch) → the secret persists across restarts, so the pod never needs to be recreated. Gateway and sandbox secrets match from the start. State is preserved.
If you need the workaround today, you could mitigate state loss by:
openshell sandbox download <name> /sandbox/ /tmp/backup/ before deleting the pod
Delete and wait for pod recreation
openshell sandbox upload <name> /tmp/backup/ /sandbox/ to restore
But the proper solution is the entrypoint fix — no pod recreation needed at all.
Hi @mak1jk thanks for this. I tried the above solution. It does sync the secrets and enabling for the nemoclaw sandboxname connect to run. However since you have forced pod recreation, your original sandbox state gets destroyed as well. Have you verified original state of sandbox has persisted? Thanks heaps
The best solution is the one of Drew but at the moment even with that I'm not able to make it run on Wsl
@jacobtomlinson@ericksoa
Still reproducible as of v0.1.0 / OpenShell 0.0.16. After a host reboot, nemoclaw list shows "No sandboxes registered" and a full re-onboard is required. This is a significant usability issue — sandbox persistence across reboots is essential for any production or long-running use case. Related: #888, #859, #1086. Would really appreciate this being prioritized.
For anyone hitting this: the workspace lives on the pod's overlay filesystem, not a PVC. Every pod restart (reboot, crash, gateway restart) resets it to image defaults.
I documented an automated workaround using a cron watchdog that detects wipes and restores from backup:
Nightly backup — SSH+tar from sandbox to host disk, maintains a latest-good symlink (only updated when backup has real content, so a backup taken during broken SSH doesn't overwrite a good one)
Watchdog (cron every minute) — writes a sentinel file (/sandbox/.openclaw-data/.nemoclaw-restored) after successful restore. Sentinel is on the overlay so it disappears on wipe. Watchdog detects missing sentinel → restores workspace + skills + cron from latest-good via tar-over-SSH → resets sessions (systemSent:true caches stale system prompt) → writes new sentinel
Session reset is critical — without clearing /sandbox/.openclaw-data/agents/main/sessions/ after restore, the agent ignores the restored SOUL.md/USER.md
Activity
fix(cluster): persist SSH handshake secret across container restarts
mak1jk commentedon Mar 20, 2026
Root Cause Analysis
The issue is in OpenShell's
deploy/docker/cluster-entrypoint.sh, not NemoClaw itself.What happens on container restart:
SSH_HANDSHAKE_SECRETfrom/dev/urandomopenshell-0) picks up the new secretOPENSHELL_SSH_HANDSHAKE_SECRETenv varhandshake verification failedConfirmed by comparing env vars after restart:
Workaround (until upstream fix)
After restarting the container, sync the secrets manually:
Upstream Fix
Submitted to OpenShell: Vouch Request + branch
The fix persists the generated secret to
/var/lib/rancher/k3s/server/ssh-secret.datand reuses it on subsequent starts, ensuring the gateway always injects the same secret that the Sandbox CRD already has.drew commentedon Mar 20, 2026
Please track this issue on the OpenShell side here, ai-openshell/openshell#488.
Jo-ar commentedon Mar 23, 2026
Hi @mak1jk thanks for this. I tried the above solution. It does sync the secrets and enabling for the nemoclaw sandboxname connect to run. However since you have forced pod recreation, your original sandbox state gets destroyed as well. Have you verified original state of sandbox has persisted? Thanks heaps
mak1jk commentedon Mar 23, 2026
@boagerard Good catch — you're right. The manual workaround (sync secret +
kubectl delete pod) does destroy sandbox state because the sandbox pod uses ephemeral storage (no PVC for/sandbox/). After recreation, the workspace is re-initialized from scratch.Important distinction:
If you need the workaround today, you could mitigate state loss by:
openshell sandbox download <name> /sandbox/ /tmp/backup/before deleting the podopenshell sandbox upload <name> /tmp/backup/ /sandbox/to restoreBut the proper solution is the entrypoint fix — no pod recreation needed at all.
mak1jk commentedon Mar 23, 2026
The best solution is the one of Drew but at the moment even with that I'm not able to make it run on Wsl
hulynn commentedon Mar 31, 2026
@jacobtomlinson @ericksoa
Still reproducible as of v0.1.0 / OpenShell 0.0.16. After a host reboot, nemoclaw list shows "No sandboxes registered" and a full re-onboard is required. This is a significant usability issue — sandbox persistence across reboots is essential for any production or long-running use case. Related: #888, #859, #1086. Would really appreciate this being prioritized.
Koneisto commentedon Apr 7, 2026
For anyone hitting this: the workspace lives on the pod's overlay filesystem, not a PVC. Every pod restart (reboot, crash, gateway restart) resets it to image defaults.
I documented an automated workaround using a cron watchdog that detects wipes and restores from backup:
latest-goodsymlink (only updated when backup has real content, so a backup taken during broken SSH doesn't overwrite a good one)/sandbox/.openclaw-data/.nemoclaw-restored) after successful restore. Sentinel is on the overlay so it disappears on wipe. Watchdog detects missing sentinel → restores workspace + skills + cron fromlatest-goodvia tar-over-SSH → resets sessions (systemSent:truecaches stale system prompt) → writes new sentinel/sandbox/.openclaw-data/agents/main/sessions/after restore, the agent ignores the restored SOUL.md/USER.mdFull documentation including the sentinel pattern, backup script, and watchdog template: https://github.com/Koneisto/nemoclaw-skill (see
references/workspace-backup.md"Automated Recovery" section)fix(onboard): upgrade OpenShell to 0.0.24 for sandbox survival across…
jieunl24 commentedon Apr 13, 2026
Verified this issue is no longer reproducible with #1587 please feel free to re-open the issue if the problem persists. Thanks!
test(e2e): migrate test-sandbox-survival.sh to vitest (#5332)