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

PM2启动报错 #1

Open
jguang opened this issue Mar 14, 2018 · 1 comment
Open

PM2启动报错 #1

jguang opened this issue Mar 14, 2018 · 1 comment
Labels
事故 线上事故等等

Comments

@jguang
Copy link
Contributor

jguang commented Mar 14, 2018

Cluster mode下pm2启动出错,服务启动不了

2018-03-14 14:56:10: App name:nodebase id:2 online
path.js:1182
          cwd = process.cwd();
                        ^

Error: ENOENT: no such file or directory, uv_cwd
    at Object.resolve (path.js:1182:25)
    at Function.Module._resolveLookupPaths (module.js:416:17)
    at Function.Module._resolveFilename (module.js:530:20)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/data/deploy/node-v8.9.3-linux-x64/lib/node_modules/pm2/lib/ProcessContainer.js:13:15)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
2018-03-14 14:56:10: App name:nodebase id:2 disconnected
2018-03-14 14:56:10: App [nodebase] with id [2] and pid [24733], exited with code [1] via signal [SIGINT]
@jguang jguang added the 事故 线上事故等等 label Mar 14, 2018
@jguang
Copy link
Contributor Author

jguang commented Mar 14, 2018

参考issues解决:
Unitech/pm2#2057
http://robinchen.me/tech/2016/12/24/pm2-usage.html

注意点五
完全关闭 pm2 的方法是 pm2 kill,使用 pm2 delete someApp 只能关闭所有的 pm2 应用,而不能关闭 pm2。
使用 ps ax | grep pm2 、 ps ax | grep PM2 、ps ax | grep God Daemon 来确定是否完全关闭了 pm2。

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

No branches or pull requests

1 participant