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.
|
Showing messages 1 through 1 of 1.
When you reinstall from scratch, match sure you delete the old dircetory first. If your installation directory is corrupt somehow, you wouldn't want to install on top of that.
Also, you could try using Instant Rails (a prepackaged combo of Ruby, Rails, and MySQL) to see if that works:
http://instantrails.rubyforge.org/
Finally, you can post this to the ruby-talk mailing list to see if anyone else recognizes the problem:
http://www.ruby-lang.org/en/20020104.html
If you post here, don't use Rails in the subject line (use WEBrick as you did here), because if you do, people will assume you're posting about a Rails problem and figure you should have posted to the Rails mailing list and so may not even read it.