openclaw - ✅(Solved) Fix [Bug]: Crash in sandbox: uv_interface_addresses error (networkInterfaces) causes gateway disconnect [1 pull requests, 2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71721Fetched 2026-04-26 05:09:21
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×2cross-referenced ×1labeled ×1

OpenClaw gateway crashes inside a Nemoclaw/OpenShell sandbox with:

SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1

This prevents the TUI from connecting (gateway disconnected: closed | idle).

Error Message

SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1

Root Cause

Openclaw does not function. No responses because of gateway.

PR fix notes

PR #71950: fix(gateway): guard networkInterfaces calls against sandbox SystemError [AI-assisted]

Description (problem / solution / changelog)

🤖 AI-assisted (built with Claude Code via Hermes orchestration). Test level: fully tested. Prompt summary available on request.

Summary

  • Problem: In sandboxed environments (Docker/Nemoclaw/OpenShell), os.networkInterfaces() throws SystemError: uv_interface_addresses returned Unknown system error 1, crashing the gateway and preventing TUI connection.
  • Why it matters: Gateway becomes completely unusable in any sandboxed environment that restricts network interface enumeration.
  • What changed: Two callers switched from the unsafe readNetworkInterfaces() to the safe safeNetworkInterfaces() variant that catches errors and returns undefined. Corresponding tests updated to assert graceful fallback behavior.
  • What did NOT change (scope boundary): The readNetworkInterfaces() and safeNetworkInterfaces() functions themselves are unchanged. No other callers or unrelated code was modified.

Change Type (select all)

  • Bug fix

Scope (select all touched areas)

  • Gateway
  • Infrastructure

Linked Issue/PR

  • Closes #71721
  • This PR fixes a bug or regression

Root Cause

  • Root cause: src/gateway/net.ts and src/infra/tailnet.ts called readNetworkInterfaces() which directly invokes os.networkInterfaces() without error handling. In sandboxed environments, this OS call throws a SystemError because uv_interface_addresses is unavailable.
  • Missing detection / guardrail: The codebase already had safeNetworkInterfaces() (with try/catch) but the two gateway-critical callers used the unsafe variant.
  • Contributing context: The safe variant existed and was used by src/pairing/setup-code.ts, but gateway/net.ts and infra/tailnet.ts were written before or without awareness of the sandbox failure mode.

Regression Test Plan

  • Coverage level that should have caught this:
    • Unit test
  • Target test or file: src/gateway/net.test.ts, src/infra/tailnet.test.ts
  • Scenario the test should lock in: When os.networkInterfaces() throws, pickPrimaryLanIPv4() returns undefined and listTailnetAddresses() returns empty arrays instead of propagating the error.
  • Why this is the smallest reliable guardrail: Tests mock os.networkInterfaces to throw, verifying the exact failure path reported in the issue.
  • Existing test that already covers this: Updated existing tests that previously asserted throw behavior to now assert graceful fallback.
  • If no new test is added, why not: N/A — existing tests were updated to cover the new behavior.

User-visible / Behavior Changes

  • Gateway no longer crashes in sandboxed environments that restrict os.networkInterfaces(). Network-dependent features (LAN IP display, Tailnet detection) gracefully degrade to unavailable instead of crashing the process.

Diagram (if applicable)

N/A

Security Impact (required)

  • New permissions/capabilities? No
  • This fix only changes error handling to return undefined/empty instead of throwing. No new capabilities, no change to data flow, no security surface change.

Changed files

  • src/gateway/net.test.ts (modified, +2/-2)
  • src/gateway/net.ts (modified, +2/-2)
  • src/infra/tailnet.test.ts (modified, +4/-2)
  • src/infra/tailnet.ts (modified, +2/-2)

Code Example

SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Summary

OpenClaw gateway crashes inside a Nemoclaw/OpenShell sandbox with:

SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1

This prevents the TUI from connecting (gateway disconnected: closed | idle).

Steps to reproduce

Clean Docker environment:

docker system prune -a --volumes -f Fresh Nemoclaw setup (pulls latest sandbox image)

Connect to sandbox:

nemoclaw connect <sandbox>

Run:

openclaw gateway run Actual Behavior

Gateway starts, then throws:

Unhandled promise rejection: SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1 at Object.networkInterfaces (node:os:218:16) at Function.assumeNetworkInterfaceNames (...) at NetworkManager.getCurrentNetworkInterfaces (...)

After that:

TUI cannot connect gateway disconnected: closed | idle

Expected behavior

Gateway should start normally and allow TUI connection.

Actual behavior

OpenClaw gateway crashes inside a Nemoclaw/OpenShell sandbox with:

SystemError: A system error occurred: uv_interface_addresses returned Unknown system error 1

This prevents the TUI from connecting (gateway disconnected: closed | idle)

OpenClaw version

2026.4.2

Operating system

Linux (Dell ProMax GB10 image)

Install method

Nemoclaw

Model

qwen3.6:27b

Provider / routing chain

Local Ollama

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

Openclaw does not function. No responses because of gateway.

Additional information

No response

extent analysis

TL;DR

The OpenClaw gateway crash is likely due to a system error related to network interface addresses, and a workaround may involve modifying the network configuration or updating the OpenClaw version.

Guidance

  • Verify the network interface configuration inside the Nemoclaw/OpenShell sandbox to ensure it is correctly set up and compatible with OpenClaw.
  • Check the Node.js version used by OpenClaw, as the uv_interface_addresses error might be related to a known issue in certain Node.js versions.
  • Investigate the assumeNetworkInterfaceNames function in the OpenClaw code to see if it's handling the network interface names correctly.
  • Consider updating the OpenClaw version to a newer release, if available, to see if the issue is resolved.

Example

No code snippet is provided due to the lack of specific code details in the issue.

Notes

The exact cause of the issue is unclear, and more information about the network configuration and Node.js version would be helpful for a more accurate diagnosis.

Recommendation

Apply workaround: Modify the network configuration inside the Nemoclaw/OpenShell sandbox to ensure compatibility with OpenClaw, as updating the OpenClaw version may not be feasible without further information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Gateway should start normally and allow TUI connection.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: Crash in sandbox: uv_interface_addresses error (networkInterfaces) causes gateway disconnect [1 pull requests, 2 comments, 3 participants]