RocketChat / hubot-rocketchat

Rocket.Chat Hubot adapter
MIT License
578 stars 228 forks source link

ERROR Error: listen EADDRINUSE 0.0.0.0:8080 #285

Closed rajivfx closed 6 years ago

rajivfx commented 6 years ago

I am running rocket chat on nginx (centos7) port 80. rocketchat is running on port 3000.

when I run bot This error came: ERROR Error: listen EADDRINUSE 0.0.0.0:8080

lsof -i tcp:8080

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME node 32489 root 12u IPv4 129722955 0t0 TCP *:webcache (LISTEN)

port 8080 is used by node.

how to fix this ?

timkinnane commented 6 years ago

Hi @vfxpandit, the port configuration is actually a Hubot issue, not something managed by the adapter. Use EXPRESS_PORT or PORT environment variable. It defaults to 8080.

For more information please see the Hubot docs.