LoadError crashing Mongrel servers

Added by Rob Felix almost 11 years ago

Hi everyone,

We are hosting Redmine on the following infrastructure:

  • Windows 2003 Server Edition
  • Ruby 1.8
  • Rails 2.0.2
  • Apache 2.2.8
  • Mongrel 1.1.4

Our Mongrel servers have been crashing with the following error being found in the Redmine log:

Processing Base#login (for 142.178.220.23 at 2008-10-29 11:23:07) [GET]
  Session ID: 7210b616ad023a7a2a35dbcf8307497e
  Parameters: {"action"=>"login", "controller"=>"account"}

LoadError (Expected e:/Redmine/app/controllers/account_controller.rb to define AccountController):
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:465:in `const_missing'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/inflector.rb:257:in `constantize'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
    /vendor/rails/actionpack/lib/action_controller/routing.rb:1426:in `recognize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:170:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:159:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `process_client'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:282:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/mongrel_rails:128:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/../lib/mongrel/command.rb:212:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86-mswin32-60/bin/mongrel_rails:281
    c:/ruby/bin/mongrel_rails:16:in `load'
    c:/ruby/bin/mongrel_rails:16

Rendering e:/Redmine/public/500.html (500 Internal Server Error)

Any ideas on how to solve this?

Replies (2)

RE: LoadError crashing Mongrel servers - Added by Eric Davis almost 11 years ago

I've seen this before but for Settings, something like (Expected e:/Redmine/app/models/setting.rb to define Setting). I haven't figured out what causes it to occur but I've got a plugin in the works that might make these kind of errors easier to track down.

Eric

RE: LoadError crashing Mongrel servers - Added by Rob Felix almost 11 years ago

Great, let me know once this plugin is ready, as we have noticed that a similar error occurs as well when the SVN credentials for a repository are set incorrectly in Redmine, then while it's trying to connect to the SVN, and you click on another link, the mongrel port just hangs. Once the port hangs, we are only able to close it by restarting the server.
Not sure if these errors are related at all or not...

(1-2/2)