You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var path = (i >= 0) ? arguments[i] : process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Error (native)
at Object.posix.resolve (path.js:424:50)
at Function.Module._resolveLookupPaths (module.js:250:17)
at Function.Module._resolveFilename (module.js:317:31)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/opt/app/nodev5/lib/node_modules/pm2/lib/ProcessContainer.js:12:15)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
2017-01-04 13:58:11: App name:NODE-MOBILE-v1 id:20 disconnected
2017-01-04 13:58:11: App [NODE-MOBILE-v1] with id [20] and pid [15091], exited with code [1] via signal [SIGINT]
DId you check PM2's its own Working Directory (pwd)?
PM2 daemon's working directory should not be in removable directory.
So, How to check PM2's working directory?
It's easy. Try this methods.
1. Type ps ax | grep PM2 on your console and hit Enter.
You'll find your PM2 daemon process row, first column is pid which is Number. remember/note it.
2. Type ls -l /proc/PM2_PID/cwd
Check working directory is removable (will be removed) directory.
3. If PM2 running in removable directory. Kill PM2 daemon (pm2 kill) and start pm2 daemon on another directory (e.g. cd ~ && pm2)
The text was updated successfully, but these errors were encountered:
今天测试环境的
pm2
又抽了,重启服务一直挂掉,一直报这个错误:Google之后,发现是
pm2
的守护进程出问题了,具体见这篇issue,解决方法搬过来记录下:The text was updated successfully, but these errors were encountered: