I've a problem starting my rails server using the command rails s
. I'm using thin as my web server. Whenever I try to start the rails server, thin starts listening on port 3000 and then it calls eventmachine
gem to start a server by calling start_tcp_server
which gives me the error that something is already running on port 3000
which is, of course, the thin server. I've tried so many solutions out there on internet but nothing seems to work for me. There are so many questions on Stackoverflow as well related to this problem but nothing solved my problem. Please have a look at this paste: http://chopapp.com/#mtvadchu
UPDATE:
There was a problem with my /etc/hosts
file. I had some invalid characters in my file i.e.
ahi 127.0.0.1 localhost
so the ahi
part was not valid. I just removed those characters and everything got fine. So if anyone else encounters this problem, just make sure that your /etc/hosts
file is valid.