Sandbox stuck in unrecoverable Error phase after supervisor session drops (SSH disconnect); stop/start refuse to act

Aperta
#3,308 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, cli

Direzione di ricerca

Inizia tracciando la gestione della sessione del supervisor e la convalida della fase del sandbox alla base degli errori segnalati sandbox stop e sandbox start, utilizzando i log del gateway e i passaggi di riproduzione forniti. Il lavoro è completato quando una connessione SSH interrotta non distrugge più la possibilità di recupero, oppure quando un percorso di recupero esplicito ripristina il sandbox senza eliminare /sandbox.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

state:triage-needed

Summary

When the SSH connection carrying a sandbox's supervisor session drops (e.g. client-side "Broken pipe"), the sandbox transitions to Phase: Error and there is no way to recover it short of sandbox delete + sandbox create. sandbox stop and sandbox start both refuse to act on an Error-phase sandbox, so the workspace inside /sandbox is unrecoverable.

Steps to reproduce

  1. openshell sandbox create (image/policy running openclaw-start as main command)
  2. Attach interactively over SSH and run through a long-running foreground process (e.g. an onboarding wizard)
  3. Let the SSH client disconnect mid-session (e.g. network blip → client_loop: send disconnect: Broken pipe)
  4. openshell sandbox get <name>Phase: Error
  5. openshell sandbox stop <name>Error: sandbox must be Ready to stop (current phase: Error)
  6. openshell sandbox start <name>Error: sandbox must be Stopped to start (current phase: Error)

Relevant logs

[1789391074.213] [gateway] [WARN ] supervisor session: stream error
[1789391074.213] [gateway] [INFO ] supervisor session: ended

(log capture was truncated at time of report)

Expected

Either:

  • The supervisor session should be independent of the client SSH connection that carries it (a network drop on the client side shouldn't kill the sandbox), or
  • Error phase should have a documented recovery path (e.g. sandbox stop --force / sandbox recover) that doesn't discard the workspace.

Actual

The only path out of Error phase is sandbox delete, which discards the sandbox's workspace with no export/backup step offered.

openshell version: 0.0.116

Lingua principale
Rust
Stelle
8.7k
Fork
1.3k
Merge medio
2g 7h
PR unite (30g)
243

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/OpenShell

Tutte le issue di NVIDIA/OpenShell

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.