workers-sdk: ๐ BUG: `Error: write EPIPE` in WSL2 (Ubuntu 20.04.6 LTS)
Which Cloudflare product(s) does this pertain to?
Wrangler
What version of Wrangler are you using?
3.0.0
What operating system are you using?
WSL2 (Ubuntu 20.04.6 LTS)
Describe the Bug
When running npx wrangler dev I get the following error:
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:907:11)
at Socket._write (node:net:919:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at Runtime.updateConfig (/home/luke/eop/worker/node_modules/miniflare/dist/src/index.js:5120:26)
at async #assembleAndUpdateConfig (/home/luke/eop/worker/node_modules/miniflare/dist/src/index.js:9130:23)
at async #init (/home/luke/eop/worker/node_modules/miniflare/dist/src/index.js:8894:5)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
I saw a few posts saying this might be related to missing dependencies. Iโve installed clang, libc++-dev, lld and python3 based on the workerd readme.
Versions of apps:
clang -v=Ubuntu clang version 11.0.0-2~ubuntu20.04.1node -v=Node.js v19.3.0libc++-dev=1:10.0-50~exp1python3 --version=3.8.10python3-distutils=3.8.10-0ubuntu1~20.04
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 11
- Comments: 24 (8 by maintainers)
Hey everyone! ๐ Wanted to give an update on this issue. Weโve now got builds working with statically linked
libc++that should support older Linux distributions and macOS versions. Just having a few issues getting some tests to pass, but hoping to resolve them soon. ๐Hey! ๐ Thanks for raising this. As pointed out earlier in the thread, the
workerdnpm distribution is currently incompatible with Debian 11 โBullseyeโ, so wonโt work with any distro based off that (e.g. Ubuntu 20.04). Debian 12 โBookwormโ based distros (e.g. Ubuntu 22.04) should work, provided youapt install libc++1. Weโre working on getting a statically linked version ofworkerdpublished that should work on older Linux versions. No timeline on when this will be available though. ๐I donโt think itโs Debian/Ubuntu specific, getting the same error also with all dependencies installed on Arch Linux (
6.3.1-arch2-1)while wrangler 2 worked perfectly, facing same issue in fedora 38 container after updating to wrangler 3.
I can confirm that the beta version (
0.0.0-3f61892d) of wrangler fixes this for me on Arch Linux.same bro
Getting this again in December 2023
Hey everyone! ๐ Weโve just released a new
betaversion of Wrangler that should improve compatibility. Try it out withnpx wrangler@beta dev.On Linux,
libc++is now statically linked, and we targetglibc 2.31when building. This means any Linux distro providingglibc 2.31or higher should be supported. The following OSes have been tested:Ubuntu 18.04 (which is now end-of-life) and Debian 10 will not be supported.
Please let us know if you encounter any issues. ๐
downgrading to 2.20.0 from 3.0 fixed it for me
A number of us have been experiencing the same error and reported it in #2583.