Skip to content

[Ubuntu 24.04][Install] nemoclaw uninstall does not kill running openshell-gateway host process — port 8080 leaks after uninstall #3516

@cr7258

Description

@cr7258

Description

Description

`nemoclaw uninstall --yes` exits 0 and reports a clean teardown, but the `openshell-gateway` host process spawned during onboard continues to run and holds port 8080. The process survives uninstall because NemoClaw's lifecycle teardown does not handle the host-process gateway mode introduced in v0.0.41 (see `src/lib/onboard/docker-driver-gateway-launch.ts:shouldUseContainerizedGateway` — when host glibc >= gateway requirement, NemoClaw spawns `/usr/local/bin/openshell-gateway` directly without a container wrapper). The orphan process keeps binding 8080 until manual `pkill -f /usr/local/bin/openshell-gateway`.

Environment
OS:            Ubuntu 24.04.4 LTS
Architecture:  x86_64
Node.js:       v22.22.2
npm:           10.9.7
Docker:        29.4.1
OpenShell CLI: openshell 0.0.39
NemoClaw:      v0.0.41
OpenClaw:      2026.4.24-17c3fa238f70
Steps to Reproduce
1. Fresh Ubuntu 24.04 host (glibc 2.39, satisfies host-process gateway path)
2. curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash       # installs v0.0.41
3. NEMOCLAW_NON_INTERACTIVE=1 NEMOCLAW_PROVIDER=build \
     NVIDIA_API_KEY= nemoclaw onboard --fresh --name smoke
4. Confirm gateway is running as host process (not container):
     ps -ef | grep "/usr/local/bin/openshell-gateway"   # PID X visible
     docker ps --filter name=openshell                  # empty
5. nemoclaw uninstall --yes                              # exit 0
6. ss -ltnp 'sport = :8080'                              # still occupied
Expected Result
After step 5, port 8080 is free and no `openshell-gateway` process is running.
Actual Result
Port 8080 stays bound by the surviving openshell-gateway process:

State  Recv-Q Send-Q Local Address:Port  Peer Address:Port  Process
LISTEN 0      128    172.18.0.1:8080     0.0.0.0:*          users:(("openshell-gatew",pid=1627107,fd=14))
LISTEN 0      128    127.0.0.1:8080      0.0.0.0:*          users:(("openshell-gatew",pid=1627107,fd=15))

$ ps -p 1627107 -o pid,user,cmd
    PID USER     CMD
1627107 root     /usr/local/bin/openshell-gateway


Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Install, NemoClaw_Sandbox

[NVB#6177367]

Metadata

Metadata

Assignees

Labels

NV QABugs found by the NVIDIA QA Teamarea: sandboxOpenShell sandbox lifecycle, runtime, config, or recoveryplatform: ubuntuAffects Ubuntu Linux environments

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions