Actions
Bug #7902
closedsuper: no superclass method `load_defaults' for #<Class:0x00000003762b60> (NoMethodError)
Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Description
My foreman install gives this error when browsing to any page:¶
Message from application: super: no superclass method `load_defaults' for #<Class:0x00000003762b60> (NoMethodError) /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/dynamic_matchers.rb:55:in `method_missing' /usr/share/foreman/app/models/setting/puppet.rb:5:in `load_defaults' /usr/share/foreman/config/initializers/foreman.rb:18:in `each' /usr/share/foreman/config/initializers/foreman.rb:18:in `<top (required)>' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:587:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/engine.rb:587:in `block in <class:Engine>' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' config.ru:3:in `block in <main>' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:112:in `eval' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:112:in `preload_app' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:158:in `<module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/helper-scripts/rack-preloader.rb:28:in `<main>'
Here is my passenger apache conf:¶
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52/buildout/apache2/mod_passenger.so <IfModule mod_passenger.c> PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.52 PassengerDefaultRuby /usr/bin/ruby </IfModule> PassengerHighPerformance on PassengerUseGlobalQueue on PassengerMaxPoolSize 6 #PassengerMaxRequests 1000 #PassengerPoolIdleTime 600
h3. Here is my apache foreman.conf:
Listen 3000 <VirtualHost *:3000> ServerName amlnx-ppp-ppt01.pressplus.cloudha.rrdha.int SSLEngine on SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ALL:!ASH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP SSLCertificateFile /var/lib/puppet/ssl/certs/obfuscated.pem SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/obfuscated.pem SSLCertificateChainFile /var/lib/puppet/ssl/certs/ca.pem SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem SSLVerifyClient optional SSLVerifyDepth 1 SSLOptions +StdEnvVars RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e DocumentRoot /usr/share/foreman/public/ PassengerAppRoot /usr/share/foreman PassengerRuby /usr/bin/ruby193-ruby PassengerMinInstances 1 AddDefaultCharset UTF-8 <Directory /usr/share/foreman/public/> Options None AllowOverride AuthConfig Order allow,deny allow from all </Directory> ErrorLog /var/log/httpd/foreman_error.log LogLevel debug CustomLog /var/log/httpd/foreman_access.log combined ServerSignature On </VirtualHost>
I can provide any additional information needed. I did check the issue list and Google first but could not find enough info to help myself. Assistance much appreciated.
Actions