{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/4022","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/4022/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/4022/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/4022/events","html_url":"https://github.com/Unitech/pm2/issues/4022","id":380105687,"node_id":"MDU6SXNzdWUzODAxMDU2ODc=","number":4022,"title":"pm2 start by cluster mode will throw error listen EADDRINUSE","user":{"login":"WynnLin","id":26760434,"node_id":"MDQ6VXNlcjI2NzYwNDM0","avatar_url":"https://avatars2.githubusercontent.com/u/26760434?v=4","gravatar_id":"","url":"https://api.github.com/users/WynnLin","html_url":"https://github.com/WynnLin","followers_url":"https://api.github.com/users/WynnLin/followers","following_url":"https://api.github.com/users/WynnLin/following{/other_user}","gists_url":"https://api.github.com/users/WynnLin/gists{/gist_id}","starred_url":"https://api.github.com/users/WynnLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WynnLin/subscriptions","organizations_url":"https://api.github.com/users/WynnLin/orgs","repos_url":"https://api.github.com/users/WynnLin/repos","events_url":"https://api.github.com/users/WynnLin/events{/privacy}","received_events_url":"https://api.github.com/users/WynnLin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-13T08:13:33Z","updated_at":"2018-11-14T02:44:50Z","closed_at":null,"author_association":"NONE","body":"\r\n## What's going wrong?\r\nWhen i startde my node with pm2 by cluster mode, it will give the error **EADDRINUSE**\r\n\r\n## How could we reproduce this issue?\r\nHere is my code:\r\n1. node code\r\n![image](https://user-images.githubusercontent.com/26760434/48399200-f6007500-e75d-11e8-9cce-b6a295a5502b.png)\r\n2. pm2 start json\r\n![image](https://user-images.githubusercontent.com/26760434/48399211-044e9100-e75e-11e8-8343-878b19ef55d3.png)\r\n3. package.json\r\n![image](https://user-images.githubusercontent.com/26760434/48399243-19c3bb00-e75e-11e8-8d28-e2040e62c3dd.png)\r\n\r\n## Supporting information\r\nHere is the error\r\n![image](https://user-images.githubusercontent.com/26760434/48399278-2e07b800-e75e-11e8-90a1-a8066814ecbe.png)\r\n\r\n<!--\r\nPlease run the following command (available on PM2 >= 2.6)\r\n-->\r\n```\r\n$ pm2 report\r\n```\r\npm2 version: 3.2.2\r\nnode version: v10.7.0\r\nnpm version: 6.1.0\r\nboth error in MacOx and ubuntu\r\n![image](https://user-images.githubusercontent.com/26760434/48399308-411a8800-e75e-11e8-93d6-ecbc792a0512.png)\r\n![image](https://user-images.githubusercontent.com/26760434/48399315-47a8ff80-e75e-11e8-8167-b650f84b6cfc.png)\r\n\r\nI have tried the change exec_mode with **cluster_mode** and **cluster**. None of them works for me!\r\nSo, Please Help Me"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/438517600","html_url":"https://github.com/Unitech/pm2/issues/4022#issuecomment-438517600","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/4022","id":438517600,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODUxNzYwMA==","user":{"login":"WynnLin","id":26760434,"node_id":"MDQ6VXNlcjI2NzYwNDM0","avatar_url":"https://avatars2.githubusercontent.com/u/26760434?v=4","gravatar_id":"","url":"https://api.github.com/users/WynnLin","html_url":"https://github.com/WynnLin","followers_url":"https://api.github.com/users/WynnLin/followers","following_url":"https://api.github.com/users/WynnLin/following{/other_user}","gists_url":"https://api.github.com/users/WynnLin/gists{/gist_id}","starred_url":"https://api.github.com/users/WynnLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WynnLin/subscriptions","organizations_url":"https://api.github.com/users/WynnLin/orgs","repos_url":"https://api.github.com/users/WynnLin/repos","events_url":"https://api.github.com/users/WynnLin/events{/privacy}","received_events_url":"https://api.github.com/users/WynnLin/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T02:44:50Z","updated_at":"2018-11-14T02:44:50Z","author_association":"NONE","body":"I tried to delete the exec_mode option, but keep instances option. The app will start by cluster mode without the **EADDRINUSE** error.\r\nIt seems to delete the exec_mode option is a way to solve the problem.\r\nBut why ?"}}
{"actor":{"display_login":"WynnLin"}}