-
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
Cluster mode "ENOENT: no such file or directory, uv_cwd" issue. Doesn't appear to relate to symlinks. #2057
Comments
DId you check PM2's its own Working Directory (pwd)? So, How to check PM2's working directory?
If PM2 running in removable directory. Kill PM2 daemon ( |
@mooyoul thank you - I owe you so many beers! Could have sworn I had killed PM2 and addressed this, but you were spot on and PM2 was running in a deleted directory. Thank you! |
Yup, This article - Capistrano-like Deployments might be helpful too. check this out :) Keep it up @PaddyMann ! |
1.ps ax | grep PM2 Reference:http://www.hackerav.com/?post=32 |
@mooyoul you saved the day :D |
add this in doc? |
Thanks :D |
Here was my solution:
|
I have similar problem with PM2 V3.5.1, my app run ok with in fork mode but fails in cluster or more than one instance, this was my solution. ps -fea | grep pm2
kill -9 [PM2_PID]
rm -rf ~/.pm2 |
for me this is working thanks @mooyoul |
this really works! thank you! |
Does this mean that PM2 cluster mode will not be usable on WSL2 as well? UPDATE: Yeah it seems that PM2 cluster mode works neither on Windows PWSH7 nor on WSL2 Ubuntu. |
When I start pm2 in cluster mode (on a dedicated Ubuntu 14.04 server), I get the following error:
This appears similar to #1623 but in that issue it appears that for most people it related to using symlinks and removing use of symlinks fixed the issue.
I was originally using symlinks but haven't been able to get around the issue.
I have now:
Whenever I start pm2, either with
pm2 start server.js -i 2
, or with a JSON config file, it leads to the above error (if it's set to cluster mode). Works fine in forked mode.Any ideas? I'm slowly going crazy! :)
The text was updated successfully, but these errors were encountered: