Project

General

Profile

Actions

Bug #24625

open

installing scenario foreman fails when katello packages are installed

Added by Anonymous almost 7 years ago. Updated 9 months ago.

Status:
Needs design
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Running `foreman-installer --scenario foreman` fails when katello packages are installed


    [ERROR 2018-08-15T16:48:17 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
    [ERROR 2018-08-15T16:48:17 main]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:157:in `fail'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:164:in `sync'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:604:in `refresh'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:147:in `process_callback'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event_manager.rb:34:in `block in process_events'
    ...
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in `apply'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:186:in `block (2 levels) in apply_catalog'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:515:in `block in thinmark'
    [ERROR 2018-08-15T16:48:17 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'


Running rake manually as done by the installer :

    [root@foremandev ~]# /bin/bash /usr/sbin/foreman-rake --trace -- config -k db_pending_migration
    /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
    /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
    /usr/share/foreman/lib/core_extensions.rb:182: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
    /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
    ** Invoke config (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
    rake aborted!
    NoMethodError: undefined method `actions' for nil:NilClass
    /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.8.0.rc2/lib/katello/permissions/organization_permissions.rb:3:in `<top (required)>'
    /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
    /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
    /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
    ...
    /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
    /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
    /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
    /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
    /opt/rh/rh-ruby24/root/usr/bin/rake:23:in `load'
    /opt/rh/rh-ruby24/root/usr/bin/rake:23:in `<main>'
    Tasks: TOP => config => environment

Actions

Also available in: Atom PDF