Skip to content

error creating server listener: No such file or directory (os error 2) ON WSL #1321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vivian27 opened this issue Sep 9, 2020 · 1 comment
Labels
Command-serve Command: serve

Comments

@vivian27
Copy link

vivian27 commented Sep 9, 2020

I use Ubuntu 20.04 in WSL 1, when i usemdbook serve XXX,there is the os error comes and no respond at both localhost:3000 and 127.0.0.1:3000

version : mdbook v0.4.3

2020-09-09 13:32:22 [INFO] (mdbook::book): Book building has started
2020-09-09 13:32:22 [INFO] (mdbook::book): Running the html backend
2020-09-09 13:32:22 [INFO] (mdbook::cmd::serve): Serving on: http://localhost:3000
thread '' panicked at 'error binding to 127.0.0.1:3000: error creating server listener: No such file or directory (os error 2)', /home/USERNAME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macros.rs:16:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
2020-09-09 13:32:22 [INFO] (mdbook::cmd::watch): Listening for changes...

@LoganDark
Copy link

Oh this is annoying. This issue has been open for over a year.

Looks like I can't bind to any port, not even using hostname 0.0.0.0 instead of localhost. Luckily files are still in book so I can just use a normal web browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-serve Command: serve
Projects
None yet
Development

No branches or pull requests

3 participants