question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: Forever cannot find process with id

See original GitHub issue

My app is currently running, let’s say its name is name.js.

If I run forever list, it shows name.js related entry.

But if I run forever stop name.js it throws

error:   Forever cannot find process with id: name.js

If I look at ps aux output, it shows one entry for the currently running name.js app, and one entry for the monitor process.

Versions: node: 0.10.33 npm: 1.4.28 forever: 0.13.0

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
Tjatsecommented, Nov 12, 2014

If you have a directory like /User/bitliner/Node/app, and the entry is name.js, forever stop only works in following manners: Start it like these:

$ cd /User/bitliner/Node/app
$ forever start name.js

or

$ cd /User/bitliner/Node
$ forever start app/name.js

or

$ cd ~/
$ forever start --sourceDir /User/bitliner/Node/app name.js

If you wanna stop it, try to pass a relative or absolute path, like:

$ cd /User/bitliner/Node/app
$ forever stop name.js

or

$ cd /User/bitliner/Node/app
$ forever stop ./name.js

or

$ cd /User/bitliner/Node
$ forever stop app/name.js

or

$ cd ~/
$ forever stop /User/bitliner/Node/app/name.js
1reaction
exit99commented, Aug 3, 2018

+1 This is a real problem . version 0.15.3

screen shot 2018-08-02 at 10 13 57 pm
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - How to stop a forever process knowing the name
If you close it while it's not running, it will throw an error. Forever cannot find process with id. The first line looks...
Read more >
Forever cannot find process with id - Bountysource
Cannot stop the mydomoathome: Forever cannot find process with id.
Read more >
forever - npm
A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever). Latest version: 4.0.3, last published: a year ago....
Read more >
Why does my node app process keep getting stopped when I ...
If the process is stopped after disconnecting from ssh, then try running nohup first. nohup forever start app.js. Or you can use forever...
Read more >
Running Node.js scripts continuously using forever
Even if some error occurs, forever will restart the script for us. ... of the index id , script name, the uid ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found