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 cluster EADDRINUSE #3518

Closed
scriptsure opened this issue Mar 5, 2018 · 3 comments
Closed

pm2 cluster EADDRINUSE #3518

scriptsure opened this issue Mar 5, 2018 · 3 comments

Comments

@scriptsure
Copy link

Your issue may already be reported!
Please search on the issue tracker before creating one.

What's going wrong?

When starting application in cluster mode i get the following:

Error: bind EADDRINUSE null:4000

I AM TOTALLY POSITIVE THERE IS NOTHING RUNNING ON PORT 4000

running on the latest PM2 version... 2.10

How could we reproduce this issue?

HAVE NO IDEA!

Supporting information

{
"apps": [
{
"name": "load",
"script": "bin/www",
"instances": "max",
"exec_mode": "cluster",
"watch": false,
"cwd": "/home/ubuntu/sites/load",
"env": {
"NODE_ENV": "production"
}
}
]
}

Please run the following command (available on PM2 >= 2.6)

$ pm2 report

===============================================================================
--- PM2 REPORT (Mon Mar 05 2018 21:57:15 GMT+0000 (UTC)) ----------------------
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 2.10.1
node version         : 8.9.3
node path            : undefined
argv                 : /usr/bin/node,/usr/lib/node_modules/pm2/bin/pm2,resurrect,--no-daemon
argv0                : node
user                 : root
uid                  : 0
gid                  : 0
uptime               : 30min
===============================================================================
--- CLI ----------------------------------------------------
local pm2            : 2.10.1
node version         : 8.9.3
node path            : undefined
argv                 : /usr/bin/node,/usr/bin/pm2,report
argv0                : node
user                 : root
uid                  : 0
gid                  : 0
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : linux
type                 : Linux
cpus                 : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
cpus nb              : 1
freemem              : 181116928
totalmem             : 2095595520
home                 : /home/ubuntu
===============================================================================

@cnscorpions
Copy link

same issue, nee help :(

@Unitech
Copy link
Owner

Unitech commented Nov 6, 2019

Not related to pm2
Check which app is listening on a port via ‘ sudo netstat -ltnp | grep -w ':80'’

@Unitech Unitech closed this as completed Nov 6, 2019
@cnscorpions
Copy link

sudo pkill PM2, and then pm2 reload all solve this issue.

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

No branches or pull requests

3 participants