Actions
Bug #14225
closedsuper: no superclass method `load_defaults' for #<Class:..> on startup
Description
Nightly tests on Debian Wheezy and Ubuntu Precise are failing to start the application under Apache with the following error:
[ pid=9283 thr=19585120 file=utils.rb:176 time=2016-03-16 08:51:14.807 ]: *** Exception NoMethodError in PhusionPassenger::Rack::ApplicationSpawner (super: no superclass method `load_defaults' for #<Class:0x00000002e035d8>) (process 9283, thread #<Thread:0x0000000255b0c0>): from /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-4.1.14.2/lib/active_record/dynamic_matchers.rb:26:in `method_missing' from /usr/share/foreman/app/models/setting/general.rb:5:in `load_defaults' from /usr/share/foreman/config/initializers/foreman.rb:21:in `each' from /usr/share/foreman/config/initializers/foreman.rb:21:in `<top (required)>' from /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in `load' from /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in `block in load' from /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:232:in `load_dependency' from /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:241:in `load' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/engine.rb:648:in `block in load_config_initializer' from /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-4.1.14.2/lib/active_support/notifications.rb:161:in `instrument' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/engine.rb:647:in `load_config_initializer' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/engine.rb:611:in `each' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/engine.rb:611:in `block in <class:Engine>' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in `instance_exec' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in `run' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:55:in `block in run_initializers' from /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each' from /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component' from /usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from' from /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from' from /usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:44:in `each' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:44:in `tsort_each_child' from /usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from' from /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component' from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each' from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component' from /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/initializable.rb:54:in `run_initializers' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/application.rb:300:in `initialize!' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `public_send' from /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `method_missing' from /usr/share/foreman/config/environment.rb:5:in `<top (required)>' from config.ru:3:in `require' from config.ru:3:in `block in <main>'
These are the two Ruby 1.9.3 platforms remaining, so it could only affect 1.9.3. Reverting the commit in #6924 lets the application load normally.
Actions