-
Notifications
You must be signed in to change notification settings - Fork 68
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
@counterscale/server#build fails: EPIPE write error #155
Comments
@shazow 👋 Could you try the following and let me know what you get?
|
$ cat /home/shazow/local/src/github.com/benvinegar/counterscale/node_modules/miniflare/package.json | grep version
"version": "3.20241218.0",
$ npm run build --workspace=@counterscale/server
> @counterscale/[email protected] build
> react-router build
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:964:11)
at Socket._write (node:net:976:8)
at writeOrBuffer (node:internal/streams/writable:570:12)
at _write (node:internal/streams/writable:499:10)
at Socket.Writable.write (node:internal/streams/writable:508:10)
at Runtime.updateConfig (/home/shazow/local/src/github.com/benvinegar/counterscale/node_modules/miniflare/src/runtime/index.ts:154:24)
at Miniflare2.#assembleAndUpdateConfig (/home/shazow/local/src/github.com/benvinegar/counterscale/node_modules/miniflare/src/index.ts:1398:28)
at Mutex.runWith (/home/shazow/local/src/github.com/benvinegar/counterscale/node_modules/miniflare/src/workers/shared/sync.ts:66:45) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path /home/shazow/local/src/github.com/benvinegar/counterscale/packages/server
npm error workspace @counterscale/[email protected]
npm error location /home/shazow/local/src/github.com/benvinegar/counterscale/packages/server
npm error command failed
npm error command sh -c react-router build |
Looks like it's choking trying to write to // 3. Write config, and wait for writing to finish
runtimeProcess.stdin.write(configBuffer);
runtimeProcess.stdin.end();
await once(runtimeProcess.stdin, "finish"); I'm feeling like this has something to do with your build environment. Seems like this person on Stack Overflow may have hit the same issue? Edit: might be this cloudflare/workers-sdk/issues/3262 |
Ah interesting, looks like the nixpkgs version of wrangler does have additional workarounds, I'll see if I can replicate. |
Argh, I'm on a bandwidth-constrained internet for the next week+ so I won't be able to download the full 2gb toolchain to reproduce the environment in the flake, so going to put it off for now. :) |
@benvinegar Btw would it make sense to have a pre-built version of this that can be deployed easily? Or is that ideologically opposing? :) |
Heya, finally got around to trying counterscale (sorry it took so long 😅), followed the instructions on the README (using the latest main branch) but I'm getting an error on the
npx turbo deploy
step (note I'm running on NixOS, but I don't think it should matter).Sounds like a miniflare socket write error maybe? I'm not familiar enough with the inner workings yet to debug.
Any idea what might cause this? Full output below:
The text was updated successfully, but these errors were encountered: