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

This error occurs when you run an app on 3000 port of server which was already occupied by other process. Then you need to kill the running process and run your desired process.

If you find this error in while running RoR application on server, then Type this in your terminal to find out the PID of the process that’s using the 3000 port:

$lsof|grep 3000

It will show process number in second position like

ruby 6255 adam 4u IPv4

here 6255 is process number.

$kill -9 <process number>

TCPserverError

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s