Skip to content

[Ubuntu 24.04][Uninstall] uninstall leaves the managed OpenClaw state volume, breaking same-name re-onboard #13595

Closed

Description

@yanyunl1991

Description

nemoclaw uninstall --yes --destroy-user-data leaves the managed OpenClaw state volume (nemoclaw-openclaw-state-v1-<sandbox>) behind, even though the sandbox is registered and the uninstall exits 0. nemoclaw <sandbox> destroy removes the same volume, and uninstall already removes the managed Hermes state volume.

The leftover volume is not harmless. A later nemoclaw onboard with the same sandbox name mounts the stale /sandbox/.openclaw, which contains the previous paired CLI device. Onboarding then fails during verification:

OpenClaw onboarding for '<sandbox>' is incomplete because its canonical CLI device pairing did not appear. Resume or rerun onboarding.

After the volume is removed manually, the same onboard completes.

Platform scope: Reproduced on Ubuntu 24.04 x86_64 (Docker) only; other platforms not tested.

Regression: Probably since the managed OpenClaw state volume was introduced in #9923. Uninstall-side volume cleanup was added for Hermes only in #10133. Earlier tags were not tested.

OpenShell issue: No. The volume is a NemoClaw-managed state root, and NemoClaw destroy already removes it.

Environment

OS:            Ubuntu 24.04, x86_64, Docker
OpenShell CLI: 0.0.116
NemoClaw:      main at 95d0ed2472
OpenClaw:      v2026.9.2
Provider:      NVIDIA Endpoints (nvidia-prod), nvidia/nemotron-3-ultra-550b-a55b

Steps to Reproduce

  1. Start from a clean host (nemoclaw uninstall --yes --destroy-user-data, and no nemoclaw-* Docker volumes).
  2. nemoclaw onboard --name telemetry-openclaw --non-interactive --yes (OpenClaw). The command exits 0.
  3. docker volume ls --filter name=nemoclaw-, which shows nemoclaw-openclaw-state-v1-telemetry-openclaw.
  4. nemoclaw uninstall --yes --destroy-user-data. The command exits 0.
  5. docker volume ls --filter name=nemoclaw-.
  6. Optional: run step 2 again.

Expected Result

Uninstall removes the NemoClaw-owned OpenClaw state volume of each sandbox it removes, as destroy does and as uninstall already does for Hermes. It should keep the same exact-ownership-label checks and retry-safe failure behavior. Re-onboarding the same name starts from fresh state.

Actual Result

volumes[after-onboard]:   nemoclaw-openclaw-state-v1-telemetry-openclaw
UNINSTALL_EXIT=0
volumes[after-uninstall]: nemoclaw-openclaw-state-v1-telemetry-openclaw

For comparison, destroy on the same setup:

DESTROY_EXIT=0
  Removed managed agent state volume for 'telemetry-openclaw'.
volumes[after-destroy]:   (none)

Re-onboarding the same name over the leftover volume fails with "canonical CLI device pairing did not appear". It succeeds after docker volume rm nemoclaw-openclaw-state-v1-telemetry-openclaw.

Analysis

  • src/lib/actions/sandbox/destroy.ts removes every managed agent state volume declared in src/lib/onboard/managed-startup/state-roots.ts.
  • src/lib/actions/uninstall/hermes-uninstall-cleanup.ts (fix(uninstall): remove managed Hermes volumes #10133) removes only the Hermes state volume. The OpenClaw state root declared later (nemoclaw-openclaw-state-v1) has no uninstall counterpart.
  • docs/manage-sandboxes/uninstall-nemoclaw.mdx documents only the Hermes volume removal.

Found while verifying #13576.

Metadata

Metadata

Assignees

Labels

area: installarea: securityintegration: openclawplatform: container

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions