-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
running bun server in pm2 now crashes: ENXIO: No such device or address, SIGHUP #4327
Comments
Can confirm that it runs on 0.7.3 so it's a regression happening in 0.8.1 PS: also got some weird looking errors related to https://www.npmjs.com/package/@swc/core (binding errors) and also a (maybe unrelated) SIGSEGV error. As a temporary solution I have downgraded bun back to 0.7.3 in production, using |
I am experiencing this when running my server with Edit: I actually was able to bypass this issue by running |
Not sure if 0.8.1 changed in the meantime (I've downgraded to 0.7.3 and upgraded again just now) but now I'm getting The curious thing is:
Conclusion: Still have no idea how to fix and thus I'm stuck at 0.7.3 |
We will fix this in Bun v0.8.2 In the meantime, make sure your linux distro has |
This is fixed by #4378, right? |
What version of Bun is running?
0.8.1
What platform is your computer?
Linux 5.15.0-79-generic x86_64 x86_64
What steps can reproduce the bug?
NODE_ENV=production pm2 start bun --name \"bun-server\" -- start
)NODE_ENV=production bun src/server.cli.ts
,which in turn would launch a server using Bun.serveWhat is the expected behavior?
pm2 works
What do you see instead?
it crashes (see screenshot)
![Screenshot 2023-08-25 at 15 12 27](https://private-user-images.githubusercontent.com/97664551/263280518-b9ec8b85-4c37-44bb-9fef-0ab7c2ce7e42.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODI0NTEsIm5iZiI6MTcyMzg4MjE1MSwicGF0aCI6Ii85NzY2NDU1MS8yNjMyODA1MTgtYjllYzhiODUtNGMzNy00NGJiLTlmZWYtMGFiN2MyY2U3ZTQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA4MDkxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2ZmQ3NjMyMmI0OTk2OWNiMTg2NzQxMDU3ZTVhNjM4YzAxN2E3OTkxZTk0ZGZkN2NiMmU1ZDllYmIxZTVkYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ak6-giqGmHfMuYgTuW6rGdAAgemTUgffIA4Qcul4Jok)
Additional information
I don't know how to make it easy to reproduce, as this is my entire server. But maybe it also happens on a smaller server? Anyway, the server worked fine before on bun 0.7.3
The text was updated successfully, but these errors were encountered: