Project

General

Profile

Actions

Bug #5583

closed

Have a more friendly developer error if orgs are not enabled

Added by David Davis almost 10 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
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 1 (1 open0 closed)

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

Actions
Actions #1

Updated by David Davis almost 10 years ago

  • Status changed from New to Assigned
  • Assignee set to David Davis
Actions #2

Updated by David Davis almost 10 years ago

  • Status changed from Assigned to New
  • Priority changed from Normal to Low
Actions #3

Updated by Eric Helms almost 10 years ago

  • Category set to 83
  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 114
Actions #5

Updated by Eric Helms over 8 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
Actions #6

Updated by Anonymous about 5 years ago

  • Status changed from New to Resolved

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

Actions

Also available in: Atom PDF