{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/1623","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/1623/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/1623/events","html_url":"https://github.com/Unitech/pm2/issues/1623","id":106971329,"number":1623,"title":"pm2 cluster mode fails to start because `Error: ENOENT, no such file or directory` for process.cwd()","user":{"login":"yinrong","id":4221569,"avatar_url":"https://avatars.githubusercontent.com/u/4221569?v=3","gravatar_id":"","url":"https://api.github.com/users/yinrong","html_url":"https://github.com/yinrong","followers_url":"https://api.github.com/users/yinrong/followers","following_url":"https://api.github.com/users/yinrong/following{/other_user}","gists_url":"https://api.github.com/users/yinrong/gists{/gist_id}","starred_url":"https://api.github.com/users/yinrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinrong/subscriptions","organizations_url":"https://api.github.com/users/yinrong/orgs","repos_url":"https://api.github.com/users/yinrong/repos","events_url":"https://api.github.com/users/yinrong/events{/privacy}","received_events_url":"https://api.github.com/users/yinrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-09-17T12:18:45Z","updated_at":"2015-09-25T23:44:52Z","closed_at":null,"body":"same as #1244 \r\nThis always happen when stop the old server, replace the source code, and start the new server.\r\n\r\nOne way  to fix the problem is to kill PM2 and restart again. However, I can't do this, because I have to keep some processes running while stop/start the others."},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/143378165","html_url":"https://github.com/Unitech/pm2/issues/1623#issuecomment-143378165","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/1623","id":143378165,"user":{"login":"md2k","id":195619,"avatar_url":"https://avatars.githubusercontent.com/u/195619?v=3","gravatar_id":"","url":"https://api.github.com/users/md2k","html_url":"https://github.com/md2k","followers_url":"https://api.github.com/users/md2k/followers","following_url":"https://api.github.com/users/md2k/following{/other_user}","gists_url":"https://api.github.com/users/md2k/gists{/gist_id}","starred_url":"https://api.github.com/users/md2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/md2k/subscriptions","organizations_url":"https://api.github.com/users/md2k/orgs","repos_url":"https://api.github.com/users/md2k/repos","events_url":"https://api.github.com/users/md2k/events{/privacy}","received_events_url":"https://api.github.com/users/md2k/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T23:44:52Z","updated_at":"2015-09-25T23:44:52Z","body":"Seems i found something.\r\nBy strace i found next:\r\n----\r\n```\r\nwait4(29587, 0x7ffe9f7cec50, WNOHANG, NULL) = 0\r\nwait4(30216, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 30216\r\nwrite(1, \"2015-09-26 01:43:46: App name:St\"..., 61) = 61\r\nunlink(\"/home/deployment/.pm2/pids/Stream-1.pid\") = -1 ENOENT (No such file or directory)\r\nepoll_wait(5, {{EPOLLIN, {u32=21, u64=21}}}, 1024, 24156) = 1\r\n```"}}