nullhub icon indicating copy to clipboard operation
nullhub copied to clipboard

WSL Issue

Open kachunchan-analytics opened this issue 8 months ago • 1 comments

Hello, I have been using Windows Subsystem for Linux 2 (WSL2) to run nullhub, however ran into error situation. Has nullhub been tested on WSL2 (p.s. I am not sure if wsl2 is the culprit behind the error)?

Error:

listening on http://127.0.0.1:19800
access chain: http://nullhub.local:19800 -> http://nullhub.localhost:19800 -> http://127.0.0.1:19800
request error: error.BrokenPipe
request error: error.BrokenPipe

Furthermore I can't set up any agents using OpenRouter nor POE API.

Other Info: nullhub v2026.3.21 Windows 10 WSL2 with Debian 13

kachunchan-analytics avatar Mar 25 '26 18:03 kachunchan-analytics

Thanks for the detailed report. This looks like WSL2 networking rather than the hub itself: WSL2 runs in a VM with its own network stack, so 127.0.0.1 inside Debian isn't automatically the Windows host's loopback. Reachability depends on WSL's localhost-forwarding, which varies by Windows/WSL version and can drop connections with exactly these BrokenPipe symptoms.

Things to try, in order:

  1. Confirm the hub is healthy inside WSL: curl -s http://127.0.0.1:19800/health from the Debian shell. If that works, the hub is fine and the problem is the Windows→WSL hop.
  2. Bind to all interfaces and use the WSL2 IP from Windows: nullhub serve --host 0.0.0.0, then ip addr show eth0 and open http://<that-ip>:19800.
  3. On Windows 11 / recent WSL, mirrored networking makes localhost behave: add [wsl2] / networkingMode=mirrored to %UserProfile%\.wslconfig, then wsl --shutdown and restart.

Also worth noting v2026.3.21 is several releases old — upgrading is worthwhile once you're in. The OpenRouter/POE setup trouble is most likely downstream of not having a working UI session; retry once the dashboard loads.

This is the same reachability family as the host-binding discussion in #31, but with its own WSL2 twist — keeping this open separately pending your results.

vernonstinebaker avatar Sep 28 '26 06:09 vernonstinebaker