NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

install failed

Open andyoulovexy opened this issue 8 months ago • 16 comments

root@spark-791a:~# curl -fsSL https://nvidia.com/nemoclaw.sh | bash [INFO] === NemoClaw Installer === [INFO] Node.js found: v22.22.1 [INFO] Runtime OK: Node.js v22.22.1, npm 10.9.4 [INFO] Installing NemoClaw from npm… npm warn deprecated [email protected]: Use your platform's native DOMException instead

added 638 packages in 39s

122 packages are looking for funding run npm fund for details [INFO] Verified: nemoclaw is available at /root/.nvm/versions/node/v22.22.1/bin/nemoclaw

────────────────────────────────────────────────── [WARN] Your current shell may not have the updated PATH.

To use nemoclaw now, run:

source /root/.bashrc

Or open a new terminal window. ──────────────────────────────────────────────────

[INFO] Running nemoclaw onboard…

NemoClaw Onboarding

[1/7] Preflight checks ────────────────────────────────────────────────── ✓ Docker is running ✓ openshell CLI: openshell 0.0.10-dev.1+g13f13c2 ✓ NVIDIA GPU detected: 1 GPU(s), 0 MB VRAM

[2/7] Starting OpenShell gateway ────────────────────────────────────────────────── ✓ Checking Docker ✓ Downloading gateway x Initializing environment x Gateway failed: nemoclaw Error: × K8s namespace not ready ╰─▶ timed out waiting for namespace 'openshell' to exist: Error from server (NotFound): namespaces "openshell" not found

Command failed (exit 1): openshell gateway start --name nemoclaw

andyoulovexy avatar Mar 18 '26 03:03 andyoulovexy

root@spark-791a:~# curl -fsSL https://nvidia.com/nemoclaw.sh | bash [INFO] === NemoClaw Installer === [INFO] Node.js found: v22.22.1 [INFO] Runtime OK: Node.js v22.22.1, npm 10.9.4 [INFO] Installing NemoClaw from npm… npm warn deprecated [email protected]: Use your platform's native DOMException instead

added 638 packages in 39s

122 packages are looking for funding run npm fund for details [INFO] Verified: nemoclaw is available at /root/.nvm/versions/node/v22.22.1/bin/nemoclaw

────────────────────────────────────────────────── [WARN] Your current shell may not have the updated PATH.

To use nemoclaw now, run:

source /root/.bashrc

Or open a new terminal window. ──────────────────────────────────────────────────

[INFO] Running nemoclaw onboard…

NemoClaw Onboarding

[1/7] Preflight checks ────────────────────────────────────────────────── ✓ Docker is running ✓ openshell CLI: openshell 0.0.10-dev.1+g13f13c2 ✓ NVIDIA GPU detected: 1 GPU(s), 0 MB VRAM

[2/7] Starting OpenShell gateway ────────────────────────────────────────────────── ✓ Checking Docker ✓ Downloading gateway x Initializing environment x Gateway failed: nemoclaw Error: × K8s namespace not ready ╰─▶ timed out waiting for namespace 'openshell' to exist: Error from server (NotFound): namespaces "openshell" not found

Command failed (exit 1): openshell gateway start --name nemoclaw

root@spark-791a:~# curl -fsSL https://nvidia.com/nemoclaw.sh | bash [INFO] === NemoClaw Installer === [INFO] Node.js found: v22.22.1 [INFO] Runtime OK: Node.js v22.22.1, npm 10.9.4 [INFO] Installing NemoClaw from npm… npm warn deprecated [email protected]: Use your platform's native DOMException instead

added 638 packages in 39s

122 packages are looking for funding run npm fund for details [INFO] Verified: nemoclaw is available at /root/.nvm/versions/node/v22.22.1/bin/nemoclaw

────────────────────────────────────────────────── [WARN] Your current shell may not have the updated PATH.

To use nemoclaw now, run:

source /root/.bashrc

Or open a new terminal window. ──────────────────────────────────────────────────

[INFO] Running nemoclaw onboard…

NemoClaw Onboarding

[1/7] Preflight checks ────────────────────────────────────────────────── ✓ Docker is running ✓ openshell CLI: openshell 0.0.10-dev.1+g13f13c2 ✓ NVIDIA GPU detected: 1 GPU(s), 0 MB VRAM

[2/7] Starting OpenShell gateway ────────────────────────────────────────────────── ✓ Checking Docker ✓ Downloading gateway x Initializing environment x Gateway failed: nemoclaw Error: × K8s namespace not ready ╰─▶ timed out waiting for namespace 'openshell' to exist: Error from server (NotFound): namespaces "openshell" not found

Command failed (exit 1): openshell gateway start --name nemoclaw

andyoulovexy avatar Mar 18 '26 04:03 andyoulovexy

finished

andyoulovexy avatar Mar 18 '26 04:03 andyoulovexy

This looks like a cgroup v2 / cgroupns misconfiguration on DGX Spark.

What's happening: openshell gateway start launches an embedded k3s cluster inside a Docker container. On Ubuntu 24.04 (which defaults to cgroup v2), k3s fails to initialize because it can't access cgroup paths unless Docker is configured with "default-cgroupns-mode": "host". Because k3s never starts, the openshell Kubernetes namespace is never created, and you get the "timed out waiting for namespace" error.

Fix:

# Add cgroupns=host to Docker daemon config
sudo python3 -c "
import json, os
p = '/etc/docker/daemon.json'
c = json.load(open(p)) if os.path.exists(p) else {}
c['default-cgroupns-mode'] = 'host'
json.dump(c, open(p, 'w'), indent=2)
"
sudo systemctl restart docker

# Then re-run onboard
nemoclaw onboard

Context: NemoClaw had a preflight check that caught this exact misconfiguration and gave a clear error message with remediation steps (#62). It was removed in #248 on the assumption that OpenShell handles it upstream — but the user is on openshell 0.0.10-dev.1 which clearly doesn't include that fix yet.

Also noted: the preflight reports 1 GPU(s), 0 MB VRAM — on DGX Spark (GB10), VRAM detection via nvidia-smi --query-gpu=memory.total can return empty since it uses unified memory. This is cosmetic but worth a separate look.

brianwtaylor avatar Mar 18 '26 04:03 brianwtaylor

Update: Reproduced and confirmed on a second DGX Spark. The root cause is exactly as described above — k3s fails on cgroup v2 paths without cgroupns=host.

The simpler fix is to just upgrade OpenShell. Your build (0.0.10-dev.1+g13f13c2) is a dev snapshot from before the cgroup fix (OpenShell #329) shipped in v0.0.8. Upgrading to the latest stable release will resolve this without needing to touch daemon.json:

curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | OPENSHELL_VERSION=v0.0.10 sh
nemoclaw onboard

brianwtaylor avatar Mar 18 '26 06:03 brianwtaylor

hi @brianwtaylor , maybe not ok,the 0.0.10 still error

curl -fsSL https://nvidia.com/nemoclaw.sh | bash

[INFO]  === NemoClaw Installer ===
[INFO]  Node.js found: v22.17.1
[INFO]  Runtime OK: Node.js v22.17.1, npm 10.9.2
[INFO]  Installing NemoClaw from npm…
npm warn deprecated [email protected]: Use your platform's native DOMException instead

added 1 package, and changed 642 packages in 59s

122 packages are looking for funding
  run `npm fund` for details
[INFO]  Verified: nemoclaw is available at /usr/bin/nemoclaw
[INFO]  Running nemoclaw onboard…

  NemoClaw Onboarding
  ===================

  [1/7] Preflight checks
  ──────────────────────────────────────────────────
  ✓ Docker is running
  openshell CLI not found. Attempting to install...
  Installing openshell CLI...
openshell openshell 0.0.10
  ✓ openshell CLI: openshell 0.0.10
  ✓ NVIDIA GPU detected: 2 GPU(s), 49128 MB VRAM

  [2/7] Starting OpenShell gateway
  ──────────────────────────────────────────────────
✓ Checking Docker
✓ Downloading gateway
x Initializing environment                                                                                                                                                                                               x Gateway failed: nemoclaw
Error:   × K8s namespace not ready
  ╰─▶ timed out waiting for namespace 'openshell' to exist: Error from server (NotFound): namespaces "openshell" not found


  Command failed (exit 1): openshell gateway start --name nemoclaw

ltm920716 avatar Mar 18 '26 06:03 ltm920716

@ltm920716 I tested this on openshell 0.0.10 with cgroup v2 and no daemon.json workaround — gateway starts fine, so the cgroup fix is working and likely not your issue. The "K8s namespace not ready" error is unfortunately a catch-all for a lot of different things.

Could you share some additional logs from the failed run? In particular the output of docker logs for the gateway container after it fails would help narrow down what's actually going wrong.

brianwtaylor avatar Mar 18 '26 07:03 brianwtaylor

Related: https://github.com/NVIDIA/OpenShell/issues/211

brianwtaylor avatar Mar 18 '26 07:03 brianwtaylor

@ltm920716 I tested this on openshell 0.0.10 with cgroup v2 and no daemon.json workaround — gateway starts fine, so the cgroup fix is working and likely not your issue. The "K8s namespace not ready" error is unfortunately a catch-all for a lot of different things.

Could you share some additional logs from the failed run? In particular the output of docker logs for the gateway container after it fails would help narrow down what's actually going wrong.

The issue should be that the container cannot pull the image. Modifying the image address inside the container also didn't work, and I am trying to use a proxy.

andyoulovexy avatar Mar 18 '26 07:03 andyoulovexy

thanks,I find the pod named openshell-cluster-nemoclaw and get logs bellow:

"RunPodSandbox from runtime service failed" err="rpc error: code = DeadlineExceeded desc = failed to start sandbox \"0fed6091be38d1ecb64b7f84ef946805cbbeaa7024a25874bd407e2311075d9b\": failed to get sandbox image \"rancher/mirrored-pause:3.6\"

I will try to confiure the proxy

ltm920716 avatar Mar 18 '26 08:03 ltm920716

Ah that confirms it — the actual failure is an image pull for
rancher/mirrored-pause:3.6, not a cgroup issue. k3s inside the gateway container can't reach the registry without proxy config. The "K8s namespace
not ready" error was just hiding this it seems..

brianwtaylor avatar Mar 18 '26 08:03 brianwtaylor

how to set the container's proxy?

bjwulin avatar Mar 18 '26 12:03 bjwulin

any update?

vjixy avatar Mar 19 '26 12:03 vjixy

root@VM-0-7-ubuntu:/data/nemoclaw# curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash [INFO] === NemoClaw Installer === [INFO] Node.js found: v24.14.0 [INFO] Runtime OK: Node.js v24.14.0, npm 11.9.0 [INFO] Installing NemoClaw from GitHub… npm warn deprecated [email protected]: Use your platform's native DOMException instead

changed 643 packages in 2m

122 packages are looking for funding run npm fund for details [INFO] Verified: nemoclaw is available at /usr/local/bin/nemoclaw [INFO] Running nemoclaw onboard… [INFO] Installer stdin is piped; attaching onboarding to /dev/tty…

NemoClaw Onboarding

[1/7] Preflight checks ────────────────────────────────────────────────── ✓ Docker is running ✓ Container runtime: docker ✓ openshell CLI: openshell 0.0.10 ✓ Port 8080 available (OpenShell gateway) ✓ Port 18789 available (NemoClaw dashboard) ⓘ No GPU detected — will use cloud inference

[2/7] Starting OpenShell gateway ────────────────────────────────────────────────── ✓ Checking Docker ✓ Downloading gateway x Initializing environment x Gateway failed: nemoclaw Error: × K8s namespace not ready ╰─▶ timed out waiting for namespace 'openshell' to exist: Error from server (NotFound): namespaces "openshell" not found

Command failed (exit 1): openshell gateway start --name nemoclaw

whiteape avatar Mar 20 '26 02:03 whiteape

@ltm920716 , does 'docker pull rancher/mirrored-pause:3.6' work for you on your host machine without nemoclaw?

zyang-dev avatar Mar 20 '26 17:03 zyang-dev

I had exactly the same issue with "openshell" not found, but on MacBook Pro.

  1. I ran codex to investigate why the openshell container doesn't start in docker (colima).
  2. codex identified that colima provisioned only 20GB of space for docker, and the opensheel container was experiencing DiskPressure, and so we cleaned up the space and increased it to 60GB.
  3. I then re-ran nemoclaw installation, and it worked just fine.

So behind this error around namespace "openshell" not found there can be multiple issues around why the container doesn't start.

dimileeh avatar Mar 21 '26 22:03 dimileeh

Closing this issue due to lack of the requested information for further triage. Please reopen if the same issue still occurs with the latest NemoClaw.

zyang-dev avatar Mar 31 '26 00:03 zyang-dev