Tcpserver Error: Address Already in Use - Bind(2)

TCPServer Error: Address already in use - bind(2)

Type this in your terminal to find out the PID of the process that's using the 3000 port:

$ lsof -wni tcp:3000

Then, use the number in the PID column to kill the process:

$ kill -9 PID

Rails: Address already in use - bind(2) (Errno::EADDRINUSE)

You need to use kill -9 59780 with 59780 replaced with found PID number (use lsof -wni tcp:3000 to see which process used 3000 port and get the process PID).

Or you can just modify your puma config change the tcp port tcp://127.0.0.1:3000 from 3000 to 9292 or other port that not been used.

Or you can start your rails app by using:

bundle exec puma -C config/puma.rb -b tcp://127.0.0.1:3001

jekyll 2.2.0 | Error: Address already in use - bind(2)

Try to see which process is using that port, kill it and run again or try running jekyll on different port.

Address already in use - bind(2) when starting server in Cloud9 IDE

You're killing it with the wrong way.
You need to use:

kill -9 18415

9 - signal 'kill'

18415 - process id

Also you can kill all ruby processes like this:

killall -9 ruby

But use it only when you know what you're doing.

Bind failed: Address already in use

The error usually means that the port you are trying to open is being already used by another application. Try using netstat to see which ports are open and then use an available port.

Also check if you are binding to the right ip address (I am assuming it would be localhost)



Related Topics



Leave a reply



Submit