A Rails 3.2.0 app, working fine with Thin web server, both locally and on Heroku cedar stack.
After:
$ git branch work
$ git checkout work
$ rails se
I had this error because I was already running rails in another terminal. Closing my other project fixed this.
Execute this in the terminal
sudo netstat -lpn |grep rails
And then
sudo kill <job id>
This works for me. Find (zombie?) server (can happen when quitting terminal with server running):
$ ps ax | grep rails
If it returns something like:
33467 s002 S+ 0:00.00 grep rails
33240 s003 S+ 0:15.05 /Users/Arta/.rbenv/versions/1.9.2-p290/bin/ruby script/rails s -p 3000
kill it, and run anew:
$ kill -9 33240
$ rails s
rvmsudo rails server thin -p 3000
Does it for me
I ran into a similar issue after getting back to the office from vacation. I run my server on the local IP as:
rails s thin -b <my_ip>
The problem was that my IP had changed, I just needed to use the new one.
The port 3000 may already be in use. Look at http://mrjaba.posterous.com/starttcpserver-no-acceptor-runtimeerror