ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails, Part 2
Subject:   WEBrick initialisation error
Date:   2006-05-01 07:38:17
From:   BrianWatson
I successfully installed Ruby, Rails MySQl and entered the example all was working well. Then today when I try to start the WEBrick server I get the following messages:


U:\RoR Projects\CookBook>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-05-01 13:24:53] INFO WEBrick 1.3.1
[2006-05-01 13:24:53] INFO ruby 1.8.4 (2005-12-24) [i386-mswin32]
[2006-05-01 13:24:53] WARN TCPServer Error: Bad file descriptor - bind(2)
u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Bad file descriptor -
bind(2) (Errno::EBADF)
from u:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
from u:/ruby/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'
from u:/ruby/lib/ruby/1.8/webrick/server.rb:75:in `listen'
from u:/ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
from u:/ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
from u:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:59
:in `dispatch'
from u:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/web
rick.rb:59
from u:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
from u:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo
rt/dependencies.rb:147:in `require'
from u:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:3
0
from u:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
from u:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo
rt/dependencies.rb:147:in `require'
from script/server:3


U:\RoR Projects\CookBook>


if you can not help can you guide me to where I might get help. I have tried reinstalling everything but still get the same problem.


1 to 1 of 1
  1. Curt Hibbs photo WEBrick initialisation error
    2006-05-01 10:03:06  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    • Curt Hibbs photo WEBrick initialisation error
      2006-05-01 10:04:05  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

      • WEBrick initialisation error
        2006-05-01 11:21:12  BrianWatson [View]

1 to 1 of 1