Project

General

Profile

Bug #5583

Have a more friendly developer error if orgs are not enabled

Added by David Davis over 5 years ago. Updated 5 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The current error (below is not very helpful). We could display something more helpful.

/home/dadavis/Projects/katello/lib/katello/plugin.rb:141:in `block in <top (required)>': undefined method `actions' for nil:NilClass (NoMethodError)
        from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `instance_eval'
        from /home/dadavis/Projects/foreman/app/services/foreman/plugin.rb:61:in `register'
        from /home/dadavis/Projects/katello/lib/katello/plugin.rb:1:in `<top (required)>'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
        from /home/dadavis/Projects/katello/lib/katello/engine.rb:112:in `block in <class:Engine>'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `instance_exec'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:30:in `run'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `each'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/initializable.rb:54:in `run_initializers'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/application.rb:136:in `initialize!'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in `method_missing'
        from /home/dadavis/Projects/foreman/config/environment.rb:5:in `<top (required)>'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `block in require'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in `load_dependency'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in `require'
        from /home/dadavis/Projects/foreman/config.ru:3:in `block in <main>'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
        from /home/dadavis/.rvm/gems/ruby-1.9.3-p545@foreman/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
        from /home/dadavis/Projects/foreman/config.ru:in `new'
        from /home/dadavis/Projects/foreman/config.ru:in `<main>'

Related issues

Related to Katello - Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installationNeed more information

History

#1 Updated by David Davis over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to David Davis

#2 Updated by David Davis over 5 years ago

  • Status changed from Assigned to New
  • Priority changed from Normal to Low

#3 Updated by Eric Helms about 5 years ago

  • Category set to 83
  • Triaged changed from No to Yes

#4 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

#5 Updated by Eric Helms over 3 years ago

  • Related to Tracker #7605: As a Foreman user, I would like to be able to add Katello later to an existing Foreman installation added

#6 Updated by Michael Moll 5 months ago

  • Status changed from New to Resolved

In the meanwhile, orgs and locs became mandatory in Foreman itself.

Also available in: Atom PDF