-
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
v6.0.5 Cluster Mode not working with Bun #5963
Comments
Thank you for this quality report. |
@Unitech thank you very much for your quick feedback. This report is from my local machine. I hope my setup is correct and I have not misunderstood something about the PM2/BUN concept 🤷♂️
|
@Unitech have you been able to take a closer look at the problem? Or is the problem with my implementation? |
Yes this is caused by https://github.com/Unitech/pm2/blob/master/bin/pm2#L1 |
Hi there, from what I know you can force shebang forced apps to be called with bun using the |
I’m experiencing an issue where PM2 version 6.0.5 does not seem to work in Cluster Mode with Bun, even though the release notes mention that Bun should be compatible with PM2 now.
index.js
):ecosystem.config.js
):Expected Behavior: The application should run in Cluster Mode, with instances of Bun being spawned as specified in the ecosystem.config.js file.
Actual Behavior: There are no errors in the PM2 logs, but the application does not seem to function as expected in Cluster Mode. The cluster instances are not being spawned, or the application is not responding properly.
Environment:
PM2 Version: 6.0.5
Bun Version: v1.2.5
Node.js Version: v23.6.0
OS: Linux Ubuntu x86_64 x86_64 x86_64 GNU/Linux
Additional Context:
PM2 does not show any error messages in the logs.
The issue only occurs in Cluster Mode, and switching to fork mode seems to work fine with Bun.
The text was updated successfully, but these errors were encountered: