-
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
Apps not showing on list #992
Comments
+1, been getting this too recently. |
How did you start your apps? Different users? |
I used this to start pm2
And my post-deploy hook ends with:
which is executed with the |
So there is a user conflict here. You need to install the package globally for your
And everything should work just fine! Explanation: Hope that's clear enough ;). |
@soyuka everything works fine for me for a while, and then it disappears after using the API in node. Let me see if I can get something together to consistently reproduce. Its intermittent at the min. |
The API in node is being used inside a PM2 launched process if that makes any difference? |
@soyuka thanks for the explanation. |
@soyuka I couldn't replicate the issue when upgrading node versions. |
@soyuka, what does the |
I seem to get the same error, but I can't even see the processes started by the same user. After a while, they just dissapear from the list, only that latest started apps appear. (There pid is saved in the same folder as the more recent ones, so I really don't get why this is happening). |
i'm seeing this - same user, but not showing in the list:
i'm logged in as root and the running pm2 process was started by root in a different session... any explanation? |
Getting the same issue as you @crobinson42 Setup npm and node ad root I can see the app list showing on the terminal the deploy is executed but as soon as I log into the server and gain sudo privilegies Y can not see any app on the list. |
You likely launched your apps with a different Check to see where you have pm2 daemons running:
Chances are you have more than one, e.g.:
The daemon that is running your applications will have .pid files in PM2_HOME/pids. Find out which one that is (probably /etc/.pm2/pids). Then set the PM2_HOME variable and try again:
You'll probably want to relocate your apps to run from a PM2_HOME other than /etc/.pm2 |
I have a problem with PM2 when running my app; As I am new node developer may my steps to run app looks funny :) After uploading code to server I use BUT the main problem is long time running! My project stops after some days running (about 4 days) |
@FaShapouri PM2 might run out of memory and somethings like this, could you check |
@vmarchaud Sorry I have just seen your answer, I got the permission denied when try |
@FaShapouri Shouldn't be the case, that mean that your daemon is launched with another user (root in this case) and you don't have access to his log (so you can't access it too), try to fix that. |
@vmarchaud I have two users to login on server and my current user is not limited also I run pm2 by this user; OK I found at first step I need to have this log; I try to get it. |
Hi
I've started two apps with pm2. Both apps are working (I get a response from the API) but they don't show when I execute pm2 list. Any ideas on what can be causing this? I'm running a ec2 ubuntu instance.
Thanks!
The text was updated successfully, but these errors were encountered: