could not run: address already in use -bind(2)

asked 2014-11-26 14:35:29 -0600

jimsonpai gravatar image

updated 2014-11-26 21:37:58 -0600

GregLarkin gravatar image

Yes, I googled it before I post on this forum don't worry... Anyways when I tried to do sudo puppet master --verbose --no-daemonize the error could not run: address already in use -bind(2) pops up. Note 1) I do not have apache2 installed so apache can't be using port 8140 2) initially, the error isn't bind(2) but smething about I removed it and now I get this error 3) when i typed "netstat -ntlp" I see port 8140 is in "LISTEN" state. I don't know what it means. 4) I did typed server puppetmaster stop to make sure puppetmaster is not running on 8140 before i type the verbose command.

Please help

When i type netstat -ntlp | grep 8140 the follow appear

tcp        0      0  *               LISTEN


edit retag flag offensive close merge delete



Can you show us the output of `netstat -ntlp | grep 8140` please? There might be a PID/Program name column that will tell us which PID/process is using port 8140.

jonn gravatar imagejonn ( 2014-11-26 14:47:13 -0600 )edit

^ it looks something like this tcp 0: *:* LISTEN

jimsonpai gravatar imagejimsonpai ( 2014-11-26 15:23:36 -0600 )edit

Is that definitely the entire output?

jonn gravatar imagejonn ( 2014-11-26 16:14:27 -0600 )edit

You could also run the command "lsof -i :8140" to see the process that holds the port.

GregLarkin gravatar imageGregLarkin ( 2014-11-26 16:33:34 -0600 )edit

^ i edited the entire output in the original post.

jimsonpai gravatar imagejimsonpai ( 2014-11-26 18:30:03 -0600 )edit