Tuesday, 10 September 2013

Rails server doesn't work, won't be visited, and won't stop

Rails server doesn't work, won't be visited, and won't stop

It just happened today, after I fired up rails s, it can't be visited, and
I also can't stop rails server with Ctrl-C. It displays Stoping... but
just stays like that?
After fired up rails s server it looks really correct.
¨ rails s
WARNING: Nokogiri was built against LibXML version 2.8.0, but has
dynamically loaded 2.9.1
=> Booting Thin
=> Rails 3.2.14 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
But when I try to visit 127.0.0.1:3000, this browser keeps loading and
nothing happens in the console, it seems that the rails process hasn't get
the request.
I tried the port, it's opened:
¨ telnet 127.0.0.1 3000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'
And when I tried to stop rails server with Ctrl-C, it just won't stop!
¨ rails s
WARNING: Nokogiri was built against LibXML version 2.8.0, but has
dynamically loaded 2.9.1
=> Booting Thin
=> Rails 3.2.14 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
^C>> Stopping ...
^C>> Stopping ...
^C>> Stopping ...
^C>> Stopping ...
^C>> Stopping ...
^C>> Stopping ...
Why is that, and how should I trouble shoot this.
I am on Mac OSX Mountain Lion, 10.8.4 Build 12E55, ruby 1.9.3-p327-falcon,
rails 3.2.14
Need help..

No comments:

Post a Comment