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

sudo forever start app.js loses running instances #88

Closed
jaypeeZero opened this issue Jul 20, 2011 · 7 comments
Closed

sudo forever start app.js loses running instances #88

jaypeeZero opened this issue Jul 20, 2011 · 7 comments

Comments

@jaypeeZero
Copy link

Using an Amazon EC2 Micro instance to test right now and wanted to leave it running overnight to show a coworker of mine.
My app is using port 80 so I have to start it with 'sudo'
If I use 'sudo forever start app.js' forever launches it and tells me that it is running, then I do some things on the site (simple chat server for testing purposes right now, nothing spectacular) and run 'forever list' again and it tells me there are no running instances, even though I am currently using the site.

To make it worse, if you run 'sudo forever start app.js' again it goes through the same process, but it seems like the previous running process doesn't get stopped then either because the server progressively slows down at that point the more you launch new processes.

@indexzero
Copy link
Member

@jamespwright What version of forever are you using?

@indexzero
Copy link
Member

@jamespwright I can confirm the sudo issues in forever@0.6.1 ... I will investigate

@indexzero
Copy link
Member

@jamespwright This is fixed in forever@0.6.2, but you were also using it wrong. If you use sudo forever start ... you need to use sudo forever list... to see these processes.

You will now get warnings to remind you:

$ sudo forever start examples/server.js -p 8080
info:   Running action: start
info:   Forever processing file: examples/server.js
$ forever list
info:   Running action: list
warn:   Error contacting: /Users/Charlie/.forever/sock/forever.sock
info:   No forever processes running
$ sudo forever list
info:   Running action: list
info:   Forever processes running
data:       uid  command script                     forever pid   uptime      logfile                          
data:   [0] x_gw node    examples/server.js -p 8080 43611   43612 0:0:0:3.659 /Users/Charlie/.forever/x_gw.log 

@jverkoey
Copy link

I'm running into this problem as well - when I run a node.js file with forever and then do forever list it doesn't show any running processes, even though top verifies that the processes are there.

@smithworx
Copy link

Yep, I'm having the same problem... I'm not sure that this is fixed. The script continues to run, but forever doesn't list it.

@ralyodio
Copy link

same here. not fixed.

@sahanDissanayake
Copy link

@indexzero @jamespwright Is this been fixed ?

I'm struggling with the same reason right now. Jeezzz. :(

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

6 participants