[Brev][Ubuntu 22.04][Onboard] NVIDIA Endpoints provider setup fails with tcp Connection refused on v0.0.39
Description
Description
During fresh onboarding on v0.0.39, after the user selects "NVIDIA Endpoints" as the inference provider, pastes a valid nvapi- key, picks a Nemotron model, and confirms the configuration, step [4/8] Setting up inference provider fails with a tcp Connection refused (os error 111) immediately after the gateway is activated. The wizard then loops back to step [3/8] and re-prompts for the inference choice. Reproduces on both a Brev shadecloud Ubuntu 22.04 H100 instance and a bare-metal Ubuntu 22.04 host with 4x NVIDIA L4. Preflight checks all pass on both hosts (Docker CDI, gateway port, GPU detection). Local-Ollama option has not been tried yet — the failure is specific to the NVIDIA Endpoints path.
Environment
Device: Brev shadecloud (NVIDIA H100 PCIe x1) — also reproduces on Ubuntu 22.04 bare-metal with 4x NVIDIA L4 OS: Ubuntu 22.04.5 LTS (Jammy) Architecture: x86_64 Kernel: 6.8.0-90-generic GPU Driver: 570.195.03 (Brev) / 535.309.01 (bare-metal) Node.js: v22.22.2 npm: 10.9.7 Docker: Not captured (docker-pr proxies running, daemon healthy) OpenShell CLI: openshell 0.0.37 NemoClaw: nemoclaw v0.0.39 OpenClaw: N/A (onboard not completed)Steps to Reproduce
1. brev shell into a fresh Ubuntu 22.04 instance (or use any Ubuntu 22.04 host with NVIDIA GPU + Docker) 2. curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash 3. At the license prompt, type: yes 4. Wait through preflight checks and gateway start (both succeed) 5. At [3/8] Configuring inference, choose: 1 (NVIDIA Endpoints) 6. Paste a valid NVIDIA_API_KEY (starts with nvapi-) 7. At the cloud model menu, choose: 1 (Nemotron 3 Super 120B) 8. Provide a sandbox name (e.g. abc) and confirm with Y at "Apply this configuration?"Expected Result
Inference provider is registered against the OpenShell gateway and onboarding proceeds to step [5/8] (sandbox build).
Actual Result
Step [4/8] activates the gateway successfully, then immediately fails with a tcp connect / Connection refused error. The wizard loops back to step [3/8] and re-prompts for the inference choice, so onboarding cannot complete.
[4/8] Setting up inference provider ────────────────────────────────────────────────── ✓ Active gateway set to 'nemoclaw' Error: × transport error ├─▶ tcp connect error ├─▶ tcp connect error ╰─▶ Connection refused (os error 111) Error: × transport error ├─▶ tcp connect error ├─▶ tcp connect error ╰─▶ Connection refused (os error 111) Please choose a provider/model again.Logs
Gateway log path on host: /home/shadeform/.local/state/nemoclaw/openshell-docker-gateway/openshell-gateway.log Not captured at filing time — will attach gateway log and openshell connection target details on request.
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_Inference, NemoClaw_Onboard, NemoClaw_Policy&Network, NemoClaw-SWQA-RelBlckr-Recommended, NemoClaw-SWQA-Sprint4-Blocker, NemoClaw-SWQA-Test-Blocker |
[NVB#6168009]
Duplicate of https://github.com/NVIDIA/NemoClaw/issues/3111, glibc 2.38/2.39 is required for openshell.
Cross-linking likely relevant fixes that were not originally attached to this issue:
- #3378 fixed the Docker-driver gateway false-positive health check where onboarding could report the gateway healthy even though the
openshell-gatewayprocess had crashed, leading to a laterConnection refused (os error 111). - #3434 added a NemoClaw-side OpenShell gateway compatibility path for Ubuntu 22.04 / Brev-style hosts where the installed
openshell-gatewaybinary requires newer glibc than the host provides, by running the gateway in an Ubuntu 24.04 container when needed.
This issue was also identified as a duplicate/same root cause as #3111, but #3434 appears especially relevant to the remaining Ubuntu 22.04/Brev validation gap. I would not close this issue solely from the links; we should validate fresh onboarding on the originally reported platform(s) with a fixed build first.
Suggested validation before closing:
- Fresh Ubuntu 22.04 x86_64 GPU host with glibc 2.35, Docker healthy, NVIDIA container runtime/CDI available.
- Exercise the NVIDIA Endpoints onboarding path with a real
nvapi-key: choose NVIDIA Endpoints, choose a Nemotron model, confirm config, and verify step [4/8] completes and onboarding advances to sandbox build instead of looping back to provider selection. - Capture the gateway log and confirm no
GLIBC_2.38/GLIBC_2.39loader failure and no downstreamConnection refused (os error 111).
If that passes on a Brev Ubuntu 22.04 GPU VM, this is likely safe to close as fixed by #3378/#3434 (duplicate of #3111). If possible, also repeat on a non-Brev Ubuntu 22.04 GPU host because the report reproduced on bare metal L4 as well.
Follow-up validation update:
I added PR #3546 with a repeatable Jammy/glibc regression runner and ran it locally with a real NVIDIA_API_KEY from .env:
NVIDIA_API_KEY=... bash test/e2e/runtime/run-issue-3396-jammy-container.sh
Result: passed. Evidence from the run:
- Ubuntu 22.04 container userspace with glibc 2.35
- host NVIDIA GPU visible from the container
- OpenShell gateway compatibility patch activated: host glibc 2.35 older than gateway requirement 2.39
- gateway started through the Docker compatibility container and reported healthy
- NVIDIA Endpoints provider setup completed at step [4/8]
- inference route set to
nvidia-prod / nvidia/nemotron-3-super-120b-a12b - no
Connection refused (os error 111)signature - no
GLIBC_2.38/GLIBC_2.39loader failure signature
Caveat: this local run was on the available newer host GPU machine using an Ubuntu 22.04 container userspace, not a fresh Brev x86_64 H100/L4 VM. It validates the glibc/provider failure class, but I would still prefer one Brev Ubuntu 22.04 x86_64 GPU confirmation before closing #3396 as fully fixed for the originally reported environment.
QA verified on v0.0.46 — fix confirmed, closing as V2C
Re-ran the original repro on a fresh Brev shadecloud Ubuntu 22.04 H100 instance (kernel 6.8.0-90-generic, host glibc 2.35) on 2026-05-20 with NemoClaw v0.0.46 / OpenShell 0.0.39 (gateway running in compatibility container due to glibc < 2.39). The tcp connect error / Connection refused (os error 111) at Step [4/8] no longer reproduces.
Repro confirmation
1. brev shell into fresh Ubuntu 22.04 H100 instance 2. curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash 3. Choose NVIDIA Endpoints + paste valid nvapi- key + pick Nemotron 3 Super 120B + confirm 4. Step [4/8] now completes cleanly — Chat Completions API validated (HTTP 200 against integrate.api.nvidia.com) 5. Wizard advances through [5/8] → [6/8] (45-step Dockerfile build + sandbox Ready + GPU proof all pass)
With an invalid token the wizard now surfaces a clean HTTP 403: Authorization failed at the same step instead of the misleading tcp error — also a UX win.
Note — different blocker now exists at [7/8]
Onboarding now reaches Step [7/8] "Setting up Hermes Agent inside sandbox" before hitting a separate, unrelated failure: nemoclaw-start exits 0 silently after mktemp: Permission denied on /sandbox following drop_capabilities. Tracked separately in NVB#6195131 / GitHub Issue #3891 — not the same root cause as this ticket, the [4/8] gRPC layer is fully resolved.
Verdict
Marking V2C. Disposition: Bug - Fixed.