Skip to content
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

"forever list" shows no processes (v0.10.0) #432

Closed
kmdm opened this issue Jun 13, 2013 · 3 comments
Closed

"forever list" shows no processes (v0.10.0) #432

kmdm opened this issue Jun 13, 2013 · 3 comments

Comments

@kmdm
Copy link

kmdm commented Jun 13, 2013

Hi,

Having a problem where "forever list" is showing no processes, hoping to help diagnose it further.

Steps performed so far:-

# NODE_USER=xxxx
# NODE_SCRIPT=yyyy.js
# su -c 'forever list' $NODE_USER
info:    No forever processes running
# ps -ef | grep $NODE_USER | grep $NODE_SCRIPT
$NODE_USER        504     1  0 Jun12 ?        00:00:00 /usr/local/bin/node /usr/local/lib/node_modules/forever/bin/monitor $NODE_SCRIPT
$NODE_USER        534   504  1 Jun12 ?        00:10:07 /usr/local/bin/node $PATH/$NODE_SCRIPT
# netstat -ap | egrep '(504|534)/node'
unix  2      [ ACC ]     STREAM     LISTENING     198999247 504/node            /home/$NODE_USER/.forever/sock/worker.1371049943066lTx.sock
unix  3      [ ]         STREAM     CONNECTED     198999241 534/node
unix  3      [ ]         STREAM     CONNECTED     198999240 504/node
unix  3      [ ]         STREAM     CONNECTED     198999239 534/node
unix  3      [ ]         STREAM     CONNECTED     198999238 504/node
unix  3      [ ]         STREAM     CONNECTED     198999237 504/node
unix  3      [ ]         STREAM     CONNECTED     198999236 534/node
# ls -la /home/$NODE_USER/.forever/sock/worker.1371049943066lTx.sock
ls: /home/$NODE_USER/.forever/sock/worker.1371049943066lTx.sock: No such file or directory
# ls -la /home/$NODE_USER/.forever/sock/
total 0
# grep version /usr/local/lib/node_modules/forever/package.json
  "version": "0.10.0",
@westonplatter
Copy link

@kmdm I'm having the same issue after I close my SSH session. Did you find any solutions to this?,

Here's my forever script, https://github.com/westonplatter/example_meteor_deploy/blob/master/roles/deploy_quick_task/tasks/main.yml#L31

@dandv
Copy link
Contributor

dandv commented Mar 31, 2014

@kmdm: maybe while closing ssh sessions, you ended up being logged in as another user? See #544. Have you tried pm2 as an alternative to forever? It's more actively maintained, and more powerful (shows memory usage, to begin with).

@indexzero
Copy link
Member

Going to close this as a duplicate of #544.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants