1

After deleting the file Server.pids as instructed in the below link, I still can not run my app. Please see at the end of this message the output in terminal. How can I solve this?

Thanks

Link: Server is already running in Rails

New error in terminal (Mac): Exiting /Users/agustinguerrero/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/socket.rb:206:in `bind': Address already in use - bind(2) for 0.0.0.0:3000 (Errno::EADDRINUSE)

Community
  • 1
  • 1
Tripon
  • 81
  • 1
  • 10

2 Answers2

1

You are getting this error because another server is really running - try running localhost:3000 in your browser.

It doesn't need to be the same rails app - it is simply saying that port 3000 is already taken. You might:

  1. Restart your machine
  2. Run app on different port: rails s -p 3001 #or other port
  3. Find what is taking port 3000 and kill it (you must be sure it is ok to kill it first though):

    fuser -n tcp 3000 #=> 3000/tcp: xxxx kill xxxx

BroiSatse
  • 44,031
  • 8
  • 61
  • 86
0

Kill the already running instance by getting the pid through:

ps aux | grep rails

Then kill it

don ali
  • 157
  • 2
  • 16