Re: cannot get past "Booting WEBrick"

Thanks for the hint. The book says that I should expect the following
traces after “Booting WEBrick…”:

demo> ruby script/server

=> Booting WEBrick…

=> Rails application started on http://0.0.0.0:3000

=> Ctrl-C to shutdown server; call with --help for options

[2006-01-08 21:44:10] INFO WEBrick 1.3.1

[2006-01-08 21:44:10] INFO ruby 1.8.2 (2004-12-30) [powerpc-darwin8.2.0]

[2006-01-08 21:44:11] INFO WEBrick::HTTPServer#start: pid=10138
port=3000

But, I do not get any of these traces after “Booting WEBrick.” Is it a
problem that I do not get these traces?

Also, when I go to http://localhost:3000, I don’t see anything.

Any suggestions? Thanks again for the help.

Well, I have just installed rails with RubyGem. What I do is to create a
new app and then I start WEBrick from this new app. Then, I open a new
command window to keep on doing things, while the first one stays with
the server, let’s say.

I hope this gives you any hint to your problem… :S

A Qureshi wrote:

But, I do not get any of these traces after “Booting WEBrick.” Is it a
problem that I do not get these traces?

Also, when I go to http://localhost:3000, I don’t see anything.

Any suggestions? Thanks again for the help.

Does it go back to the prompt after saying Booting WEBrick? If that’s
the case, there is something wrong with your Rails application. Try to
run ruby script/console instead, and see if you get an exception


Ola B. (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)

“Yields falsehood when quined” yields falsehood when quined.

A Qureshi wrote:

But, I do not get any of these traces after “Booting WEBrick.” Is it
a problem that I do not get these traces?

Also, when I go to http://localhost:3000, I don’t see anything.

Any suggestions? Thanks again for the help.

I’m not able to help cos I have no idea what may be wrong. You should
normally see the remaining outputs.

  1. What rails are you using? InstantRails?
  2. Also, try to start it on another port
    prompt>ruby script\server -p3010
    then try to connect to http://localhost:3010/
  3. Are there any other installations of Ruby in your path??
    prompt>ruby --version
    What value does it return? Then go to the where you installed Ruby (for
    Rails) and run the same command again. If it is the same value, then at
    least that is set correctly - and I’m confused!

See if this helps!
Cheers
Mohit.

You might also check that you haven’t modified environment.rb or any of
the other configuration files in an illegal/non-working way. I spent an
embarassing amount of time tracing down the same issue you are
describing
and a bad environment.rb was the culprit.

Joe

I spent two weeks with a WEBrick issue on Windows and finally came
across something that shed light on the situation. This was my last
resort and luckily it worked. It had to do with resetting Winsock on
XP:

http://www.db75.com/new_blog/?p=249

It’s worth a shot :slight_smile: