NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Gateway fails at Step 2 on DGX Spark — k3s CoreDNS cannot resolve internal cluster hostnames

Open eddie22777 opened this issue 8 months ago • 6 comments

Environment

  • Machine: NVIDIA DGX Spark
  • GPU: 1x GPU, 122566 MB VRAM
  • OS: Ubuntu (via SSH)
  • Docker: using nvidia-container-runtime, default-cgroupns-mode: host
  • openshell CLI: 0.0.9
  • Node.js: v22.22.1
  • Applied fix from #[ISSUE] (pipefail + GPU poll loop + forward stop)

What happens

Installation fails at [2/7] Starting OpenShell gateway every time. The gateway container starts but k3s CoreDNS cannot resolve internal cluster hostnames:

x Initializing environment
x Gateway failed: nemoclaw

Cluster DNS resolution failed
  × K8s namespace not ready
  ╰─▶ dial tcp: lookup registry: Try again

The hostname registry (bare, no TLD) fails to resolve inside the k3s cluster. This is not a host DNS issue — external DNS resolution from Docker works fine:

$ docker run --rm busybox nslookup registry.hub.docker.com
# resolves correctly via 192.168.65.1

The gateway logs show etcd-client repeatedly retrying and then the connection closing, followed by the DNS failure.

What I've already tried

  • Updated /etc/docker/daemon.json with correct host DNS servers
  • docker network prune -f
  • openshell gateway destroy --name nemoclaw and recreating
  • sudo systemctl restart docker
  • Applied the GPU sandbox fix (pipefail + GPU poll loop + forward stop) from the related issue

None of these resolved it. The failure is consistent and reproducible across multiple attempts.

Hypothesis

On DGX Spark, k3s runs inside Docker with --gpu. The CoreDNS pod inside k3s may not be coming up correctly, possibly due to iptables FORWARD rules on the DGX blocking traffic between the Docker bridge and the k3s container network, preventing CoreDNS from serving internal cluster DNS.

Is anyone else hitting this on DGX Spark or similar NVIDIA GPU hosts? Any workarounds appreciated.

eddie22777 avatar Mar 19 '26 21:03 eddie22777

Can you update openshell to the latest version and try again?

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

@zyang-dev - i tried again after updated to openshell 0.0.10 and 0.0.12. Gave back same errors mentioned above in the issue. Thank you!

eddie22777 avatar Mar 20 '26 15:03 eddie22777

@eddie22777 , Just do confirm which openshell version is being used. Can you run the commands below and copy the result here?

docker ps
which openshell
openshell --version

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

Hello, here is the result of that command. I have also trie using openshell 0.0.12 as well. I am currnetly on 10 because someone else from this forum recommended that. eddie22777@spark-1284:~/NemoClaw$ docker ps which openshell openshell --version CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES /usr/local/bin/openshell openshell 0.0.10 eddie22777@spark-1284:~/NemoClaw$

eddie22777 avatar Mar 20 '26 20:03 eddie22777

@eddie22777 , Can you run this?

  openshell gateway destroy
  openshell gateway start --name nemoclaw --gpu

After it fails, run

openshell doctor logs >  ./openshell-logs.txt

If openshell-logs.txt is empty, run

docker logs $(docker ps -aq --filter name=openshell) > ./openshell-logs.txt 2>&1

Then attach the file openshell-logs.txt.

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

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