get Error: listen EADDRINUSE :::3000 but website seems ok, still concerned that it might not be working propperly

July 13, 2019 118 views
Nginx Node.js

I created a simple website with express, with chat feature using sockect.io. I was told that the conversations where droping all the time so I checked if I had any errors and I found this.

Error: listen EADDRINUSE :::3000

but after doing sudo lsof -iTCP -sTCP:LISTEN -P

I see only one app running on port 3000

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
systemd-r 699 systemd-resolve 13u IPv4 15747 0t0 TCP localhost:53 (LISTEN)
sshd 1006 root 3u IPv4 19017 0t0 TCP *:22 (LISTEN)
sshd 1006 root 4u IPv6 19028 0t0 TCP *:22 (LISTEN)
nginx 3800 root 6u IPv4 226644 0t0 TCP *:80 (LISTEN)
nginx 3800 root 7u IPv6 226645 0t0 TCP *:80 (LISTEN)
nginx 3804 www-data 6u IPv4 226644 0t0 TCP *:80 (LISTEN)
nginx 3804 www-data 7u IPv6 226645 0t0 TCP *:80 (LISTEN)
node\x20/ 3955 bruno 12u IPv6 227645 0t0 TCP *:3000 (LISTEN)

any idea how to get rid of that error?

1 Answer
Have another answer? Share your knowledge.