{"action":"opened","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/1336","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/1336/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/1336/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/1336/events","html_url":"https://github.com/Unitech/PM2/issues/1336","id":85877538,"number":1336,"title":"Error: connect EACCES - Brand new ubuntu install - Non-root user","user":{"login":"noducks","id":3964334,"avatar_url":"https://avatars.githubusercontent.com/u/3964334?v=3","gravatar_id":"","url":"https://api.github.com/users/noducks","html_url":"https://github.com/noducks","followers_url":"https://api.github.com/users/noducks/followers","following_url":"https://api.github.com/users/noducks/following{/other_user}","gists_url":"https://api.github.com/users/noducks/gists{/gist_id}","starred_url":"https://api.github.com/users/noducks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noducks/subscriptions","organizations_url":"https://api.github.com/users/noducks/orgs","repos_url":"https://api.github.com/users/noducks/repos","events_url":"https://api.github.com/users/noducks/events{/privacy}","received_events_url":"https://api.github.com/users/noducks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-07T08:50:24Z","updated_at":"2015-06-07T08:50:24Z","closed_at":null,"body":"Am getting this issue on a brand new server install. Created a new user, and installed everything including pm2 with that user. npm install works ok, but then it breaks. Any suggestions?\r\n\r\n     ➜  test git:(develop) pm2 deploy production \r\n     --> Deploying to production environment\r\n     --> on host xx.xx.xx.xx -p xxxx\r\n       ○ deploying\r\n       ○ hook pre-deploy\r\n       ○ fetching updates\r\n     Fetching origin\r\n     From xxxxxx\r\n        06c8208..eff846c  develop    -> origin/develop\r\n       ○ resetting HEAD to origin/develop\r\n     HEAD is now at eff846d test\r\n       ○ executing post-deploy `npm install && pm2 startOrRestart ecosystem.json --env production`\r\n     \r\n     events.js:72\r\n             throw er; // Unhandled 'error' event\r\n                   ^\r\n     Error: connect EACCES\r\n         at errnoException (net.js:901:11)\r\n         at Object.afterConnect [as oncomplete] (net.js:892:19)\r\n     \r\n       post-deploy hook failed\r\n     \r\n     Deploy failed\r\n\r\n\r\nRunning this command with sudo works when logged directly into the server, but not if I add sudo to the ecosystem.json script.\r\n\r\n`sudo pm2 startOrRestart ecosystem.json --env production`\r\n"}}