I have a fresh installation of Ruby, Rails and Mongrel. Unfortunately the server doesn''t start. Any ideas ? => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:18: undefined method `options'' for []:Array (NoMethodError) from c:/Programme/Ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'' from c:/Programme/Ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' from c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'' from c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'' from c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'' from c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 from c:/Programme/Ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from c:/Programme/Ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/server:3
On 7/16/07, Nikolaus Rumm <nikolaus.rumm at gmail.com> wrote:> I have a fresh installation of Ruby, Rails and Mongrel. Unfortunately > the server doesn''t start. > > Any ideas ? >Instead of using script/server could you try: ''mongrel_rails start'' instead? Also, will be very helpful if you provide version of every part of your system: OS, Ruby, RubyGems and Mongrel.> => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > Exiting > c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:15: > warning: already initialized constant OPTIONS > c:/Programme/Ruby/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:18: > undefined method `options'' for []:Array (NoMethodError) > from c:/Programme/Ruby/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in > `gem_original_require''[...] -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
Solved it. The problem was a missing gem and all this had nothing to do with Mongrel. Instead the whole Rails environment couldn''t start. When launching the Rails environment via script/console a helpful error message was shown (in my case the ferret-gem was missing). Unfortunately the Mongrel error message was both wrong and misleading. On 7/17/07, Luis Lavena <luislavena at gmail.com> wrote:> Also, will be very helpful if you provide version of every part of your system: > OS, Ruby, RubyGems and Mongrel.
On 7/17/07, Nikolaus Rumm <nikolaus.rumm at gmail.com> wrote:> Solved it. The problem was a missing gem and all this had nothing to > do with Mongrel. Instead the whole Rails environment couldn''t start. >I know your pain :-)> When launching the Rails environment via script/console a helpful > error message was shown (in my case the ferret-gem was missing). > > Unfortunately the Mongrel error message was both wrong and misleading. >Even mongrel_rails message? I know script/server is a bit hacky how it pre-initializes the environment and then hook mongrel to finish up loading rails, but plain mongrel do the opposite... Anyway, I''m glad you solved it ;-) -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi