node.js - Forever stop server.js returns "server.js is not a valid index for a forever process." -
i inherited server , i'm having odd issue. having problem when running forever start server.js
in didn't return message, , forever list
didn't show forever processes running. after digging found people suggested running forever sudo
.
after ran sudo forever start server.js
seemed fire fine, , forever list
shows server.js running. however, cannot stop process. running kill
removes node list displayed @ top
, forever still views server.js running. running sudo forever stop server.js
returns error "server.js not valid index forever process." running sudo forever stopall
or sudo forever list
returns
node.js:63 throw e; ^ typeerror: cannot call method 'replace' of undefined @ argv (/usr/local/lib/node/.npm/optimist/0.1.2/package/lib/optimist.js:38:33) @ object.<anonymous> (/usr/local/lib/node/.npm/forever/0.3.0/package/bin/forever:81:26) @ module._compile (node.js:462:23) @ module._loadscriptsync (node.js:469:10) @ module.loadsync (node.js:338:12) @ loadmodule (node.js:283:14) @ require (node.js:411:14) @ object.<anonymous> (/usr/local/bin/forever:11:18) @ module._compile (node.js:462:23) @ module._loadscriptsync (node.js:469:10)
no matter do, can't stop server.js. guess forever being little overzealous in it's mission. suggestions?
no idea why worked, reason solved problem. not entirely, partially. when su root
, run forever commands, able start
, stopall
without hitch. still getting same error forever stop server.js
, whatever reason i'm unable stop server way, got around being able run forever stopall
su root
.
Comments
Post a Comment