chiselstrike icon indicating copy to clipboard operation
chiselstrike copied to clipboard

ChiselStrike is breaking on WSL2

Open WilsonNet opened this issue 3 years ago • 1 comments

If I try to run ChiselStrike using WSL2 I get even after double checking that 8080 is not in use

Error: Could not start HTTP API server

Caused by:
    0: error creating server listener: Address already in use (os error 98)
    1: Address already in use (os error 98)

There is a workaround with npm run dev -- -- --api-listen-addr 127.0.0.1:8080

On managed-services-backend.git this issue was introduced i feat(api): upgrade chiselstrike api to v0.13.2 (#352)

Slack Thread: https://chiselstrike.slack.com/archives/C02J5GYN8NB/p1672668906594949

WilsonNet avatar Jan 02 '23 14:01 WilsonNet

The issue seems to be related to chiseld being unable to bind to the IPv6 localhost address. Possible fix: make the address already in use thing non-fatal or special case for WSL2 somehow.

penberg avatar Jan 02 '23 15:01 penberg