NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Jentson Orin][aarch64] OpenClaw TUI HTTP 503 "inference service unavailable"

Open zNeill opened this issue 7 months ago • 12 comments

Description

Description: On Jetson Orin (platform), OpenClaw TUI fails with repeated HTTP 503 inference service unavailable and LLM request timed out when using NVIDIA cloud inference (nemotron-3-super-120b-a12b via integrate.api.nvidia.com). The gateway proxy routes the request correctly (NET:OPEN ALLOWED) but the inference call fails with NET:FAIL on inference.local:443 approximately every 4 seconds, suggesting the request times out before the remote LLM can respond.

[Environment] Device: NVIDIA IGX Orin Development Kit OS: Ubuntu 22.04.5 LTS (Jetson L4T R36.4.6) Architecture: aarch64 Node.js: v22.22.2 npm: 10.9.7 Docker: Docker version 29.1.2 OpenShell CLI: 0.0.26 NemoClaw: v0.0.16 OpenClaw: TUI shows openclaw-tui (version not retrievable due to 503 error)

[Steps to Reproduce]

  1. On Jetson Orin, install NemoClaw and complete onboarding with NVIDIA Endpoints provider
  2. Verify sandbox is created: nemoclaw list Output: test2 — model: nvidia/nemotron-3-super-120b-a12b, provider: nvidia-prod
  3. Connect to sandbox and launch TUI: nemoclaw test2 connect openclaw tui
  4. Send any prompt (e.g. what's your name )
  5. Observe repeated 503 errors and eventual timeout

[Expected Result] The TUI should connect to integrate.api.nvidia.com via the gateway inference proxy and return a response from nemotron-3-super-120b-a12b within the configured timeout.

[Actual Result] TUI shows repeated errors:

    HTTP 503:  inference service unavailable 
    HTTP 503:  inference service unavailable 
    HTTP 503:  inference service unavailable 
    HTTP 503:  inference service unavailable 
    run error: LLM request timed out.
    connected | error

Gateway logs show a repeating cycle (~4s interval):

    [sandbox] [OCSF] NET:FAIL [LOW] inference.local:443
    [sandbox] [OCSF] NET:OPEN [INFO] ALLOWED inference.local:443
    [sandbox] [INFO] [openshell_router] routing proxy inference request (streaming)
      endpoint=https://integrate.api.nvidia.com/v1
      path=/v1/chat/completions
      protocols=openai_chat_completions,openai_completions,openai_responses,model_discovery

The request is routed and allowed by policy, but fails repeatedly before the LLM can complete inference. Root Cause: The remote NVIDIA cloud inference provider (nvidia-prod) does not have a timeout configured, unlike local providers (vllm, ollama) which set timeout_secs: 180.

  1. Missing timeout in blueprint profile:

    • File: nemoclaw-blueprint/blueprint.yaml
    • The default nvidia inference profile does NOT define timeout_secs
    • Local profiles (nim-local, vllm) correctly set timeout_secs: 180
  2. Missing --timeout flag for remote providers in onboard:

    • File: src/lib/onboard.ts (lines 3585-3614)
    • When running openshell inference set for nvidia-prod provider, no --timeout flag is passed
    • For local providers (vllm-local, ollama-local), the code correctly adds: --timeout , String(LOCAL_INFERENCE_TIMEOUT_SECS) // 180 seconds
    • For remote providers (nvidia-prod, openai-api, anthropic-prod), NO timeout is added
  3. Blueprint runner respects timeout when defined but default profile omits it:

    • File: nemoclaw/src/blueprint/runner.ts (lines 311-313)
    • Code: if (inferenceCfg.timeout_secs !== undefined) { inferenceArgs.push( --timeout , ...) }
    • Since default profile has no timeout_secs, this branch is never taken

Without an explicit timeout, OpenShell's gateway uses a very short default HTTP idle timeout. For remote cloud LLM inference (which can take 10-30+ seconds for large models), this default is insufficient, causing the gateway to return 503 before the LLM response arrives.

This is likely exacerbated on Jetson Orin due to:

  • ARM64 platform may have different network stack behavior
  • Possible additional latency from NVIDIA network path on Jetson devices

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-SWQA-RelBlckr-Recommended

[NVB# 6081485]

zNeill avatar Apr 15 '26 12:04 zNeill

Hi @zNeill - I tested on the L4T r36.5 (latest public release) on the Orin Nano, with NVIDIA cloud inference (nemotron-3-super-120b-a12b)

OpenClaw TUI works fine.

Timeout is default when not specificities; that is not a concern.

$ openshell inference get
Gateway inference:

  Provider: nvidia-prod
  Model: nvidia/nemotron-3-super-120b-a12b
  Version: 1
  Timeout: 60s (default)

System inference:

  Not configured

Two days back, we added https://github.com/NVIDIA/NemoClaw/blob/main/scripts/setup-jetson.sh that loads br_netfilter module:

  "${SUDO[@]}" modprobe br_netfilter
  "${SUDO[@]}" sysctl -w net.bridge.bridge-nf-call-iptables=1 >/dev/null

  echo "br_netfilter" | "${SUDO[@]}" tee /etc/modules-load.d/nemoclaw.conf >/dev/null
  echo "net.bridge.bridge-nf-call-iptables=1" | "${SUDO[@]}" tee /etc/sysctl.d/99-nemoclaw.conf >/dev/null

Can you try again and if you still see the same issue, please check if the module is loaded:

$ lsmod | grep br_netfilter
br_netfilter           32768  0
bridge                405504  1 br_netfilter

paritoshd-nv avatar Apr 15 '26 15:04 paritoshd-nv

https://github.com/NVIDIA/NemoClaw/pull/1910 is merged that enables nemoclaw installation on Jetson r39. Tested installation with r36, r38 and r39 with remote inference. It worked fine.

paritoshd-nv avatar Apr 16 '26 13:04 paritoshd-nv

Retested on Jetson Orin on v0.0.18 version. Still hit it:

sandbox@my-assistant:~$ openclaw agent --agent main --local -m "hello" --session-id jetson-ssh-test
[SECURITY] Warning: 'openclaw agent --local' bypasses the NemoClaw gateway.
[SECURITY] Secret scanning, network policy, and inference auth are NOT enforced in local mode.
(node:5654) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5662) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)

:lobster: OpenClaw 2026.4.2 (d74a122) — Deployed locally, trusted globally, debugged eternally.

10:36:35+00:00 [agent/embedded] embedded run agent end: runId=jetson-ssh-test isError=true model=nvidia/nemotron-3-super-120b-a12b provider=inference error=LLM request timed out. rawError=503 "inference service unavailable"
10:36:51+00:00 [agent/embedded] embedded run agent end: runId=jetson-ssh-test isError=true model=nvidia/nemotron-3-super-120b-a12b provider=inference error=LLM request timed out. rawError=503 "inference service unavailable"
10:37:08+00:00 [agent/embedded] embedded run agent end: runId=jetson-ssh-test isError=true model=nvidia/nemotron-3-super-120b-a12b provider=inference error=LLM request timed out. rawError=503 "inference service unavailable"
10:37:30+00:00 [agent/embedded] embedded run agent end: runId=jetson-ssh-test isError=true model=nvidia/nemotron-3-super-120b-a12b provider=inference error=LLM request timed out. rawError=503 "inference service unavailable"
10:37:30+00:00 [agent/embedded] embedded run failover decision: runId=jetson-ssh-test stage=assistant decision=surface_error reason=timeout provider=inference/nvidia/nemotron-3-super-120b-a12b profile=-

Maybe related with the host domain error:

Defaulted container "agent" out of: agent, workspace-init (init)
  [PASS] DNS forwarder running (pid=496): dns-proxy: 10.200.0.1:53 -> 10.42.0.5:53 pid=496
  [PASS] resolv.conf -> nameserver 10.200.0.1
  [PASS] iptables: UDP 10.200.0.1:53 ACCEPT rule present
  [FAIL] getent hosts [github.com](http://github.com/) returned empty (DNS not resolving)
  DNS verification: 3 passed, 1 failed
WARNING: DNS setup incomplete. Sandbox DNS resolution may not work. See issue #626, #557.
  ✓ Sandbox 'my-assistant' created

hulynn avatar Apr 17 '26 13:04 hulynn

Hi @hulynn - please provide the Jetpack version you are using and other details here:

$ head -1 /etc/nv_tegra_release
$ lsmod | grep br_netfilter
$ sysctl net.bridge.bridge-nf-call-iptables
$ cat /proc/device-tree/model

Just to update again. Orin works for me with r36.5 (latest public release) and JP7.2 (in dev)

paritoshd-nv avatar Apr 17 '26 16:04 paritoshd-nv

shsqa@cloudnative-igx-igpu-01:~$ head -1 /etc/nv_tegra_release
# R36 (release), REVISION: 4.6, GCID: 40634356, BOARD: generic, EABI: aarch64, DATE: Fri May 16 05:16:21 UTC 2025
shsqa@cloudnative-igx-igpu-01:~$ lsmod | grep br_netfilter
br_netfilter           32768  0
bridge                327680  1 br_netfilter
shsqa@cloudnative-igx-igpu-01:~$ sysctl net.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-iptables = 1
shsqa@cloudnative-igx-igpu-01:~$ cat /proc/device-tree/model
NVIDIA IGX Orin Development Kitshsqa@cloudnative-igx-igpu-01:~$ 

hulynn avatar Apr 18 '26 05:04 hulynn

@paritoshd-nv Thanks for the info. Our environment is IGX Orin Development Kit running R36.4.6, which differs from the Orin + R36.5 you validated on. Could you advise whether R36.4.6 on IGX is a supported configuration? If so, we can try upgrading to R36.5 to narrow down the root cause.

hulynn avatar Apr 18 '26 05:04 hulynn

Hi @hulynn , I tested on the IGX Orin as well, with its latest IGX SW-1.1.2 (v1.1.6 ISO). Inference requests to NVIDIA cloud inference (nemotron-3-super-120b-a12b) works for me. Please note the "openclaw --local" mode is no longer supported from the NemoClaw sandbox now.

paritoshd-nv avatar Apr 19 '26 23:04 paritoshd-nv

Closing the issue and it is working on Jetson and IGX with latest public releases. Please test it when you get time and discuss on slack if you still see an issue.

paritoshd-nv avatar Apr 22 '26 12:04 paritoshd-nv

This is not fixed on Nemoclaw v0.0.22 as well.
Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK. When reading HEARTBEAT.md, use workspace file /sandbox/.openclaw/workspace/HEARTBEAT.md (exact case). Do not read docs/heartbeat.md. Current time: Thursday, April 23rd, 2026 — 12:13 AM (UTC) / 2026-04-23 00:13 UTC

HTTP 503: "inference service unavailable"

HTTP 503: "inference service unavailable"

HTTP 503: "inference service unavailable"

HTTP 503: "inference service unavailable"

what is your name

run error: LLM request timed out. connected | error agent main | session main (openclaw-tui) | inference/nvidia/nemotron-3-super-120b-a12b | tokens ?/131k

PrachiShevate-nv avatar Apr 23 '26 00:04 PrachiShevate-nv

Hi @PrachiShevate-nv , There appears to be an issue on your / Lynn's setup, which I am not able to see on my setup. Best way to debug it would be to provide me remote access to the system. Let's discuss further on the slack.

paritoshd-nv avatar Apr 23 '26 13:04 paritoshd-nv

Hi @zNeill, thank you for reporting this. You filed this on v0.0.16, which is around 76 releases behind v0.0.92, with significant rework across onboarding, the sandbox runtime, DNS handling, and inference route health since (inference.local/v1/models is now the authoritative route-health source, and DNS probes fail fast with clearer diagnostics). Could you give it a try on the latest version and confirm whether you are still seeing the 503 on the Orin/IGX path? Cheers!

latenighthackathon avatar Jul 23 '26 03:07 latenighthackathon

Hi @zNeill, thanks for documenting the Orin and IGX inference failures. We’re planning an updated architecture for NemoClaw, so we’re closing this report for the earlier inference setup as not planned.

If this is still an issue that needs prioritization, please re-open and tag @wscurran.

wscurran avatar Nov 18 '26 03:11 wscurran