Katello/Foreman "Web application could not be started"

**Problem:*When trying to connect to the hosted foreman http://foreman.domain.com web interface I get the error Web application could not be started attached/uploaded is the compressed html error message from trying to connect via the web browser. *

**Expected outcome:I should get a web login screen

Foreman and Proxy versions: 1.24.2

Foreman and Proxy plugin versions: 1.24.2 Katello: 3.14.1

**Distribution and version:*CentOS 7.7.1908 *

**Other relevant data:*

*

[web_app_could_not_be_started.tgz|attachment](upload://vjP7bjSpfzFaBJc5OYeGxAgjFt4.tgz) (41.5 KB)[

Looks like the file attachment didn’t work, can you paste the text of the error? also, where exactly does it fail? from the screenshot of the plugin list looks like the ui is working?

The screenshot is from a previous case as nothing has changed.

    Web application could not be started
    stack level too deep (SystemStackError)
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_key'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_with_index'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `D_'
      /usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `block in d_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext.rb:22:in `with_domain'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `d_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:114:in `block in D_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_key'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_with_index'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `D_'
      /usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
    ......
    /usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `block in d_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext.rb:22:in `with_domain'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `d_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:114:in `block in D_'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_key'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_with_index'
      /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `D_'
      /usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
      /usr/share/foreman/app/models/nic/interface.rb:14:in `<class:Interface>'
      /usr/share/foreman/app/models/nic/interface.rb:2:in `<module:Nic>'
      /usr/share/foreman/app/models/nic/interface.rb:1:in `<top (required)>'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
      /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
      /usr/share/foreman/app/models/nic/managed.rb:2:in `<module:Nic>'
      /usr/share/foreman/app/models/nic/managed.rb:1:in `<top (required)>'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
      /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
      /usr/share/foreman/app/services/interface_type_mapper.rb:4:in `<class:InterfaceTypeMapper>'
      /usr/share/foreman/app/services/interface_type_mapper.rb:1:in `<top (required)>'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
      /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
      /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
      /usr/share/foreman/config/initializers/apipie.rb:22:in `block in <top (required)>'
      /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/apipie_module.rb:38:in `configure'
      /usr/share/foreman/config/initializers/apipie.rb:3:in `<top (required)>'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:657:in `block in load_config_initializer'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:170:in `instrument'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:656:in `load_config_initializer'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:613:in `each'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:613:in `block in <class:Engine>'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:228:in `block in tsort_each'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:421:in `block in each_strongly_connected_component_from'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `each'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:415:in `call'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:415:in `each_strongly_connected_component_from'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `each'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `call'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:226:in `tsort_each'
      /opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:205:in `tsort_each'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
      /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
      /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
      config.ru:5:in `block in <main>'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/builder.rb:55:in `instance_eval'
      /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/builder.rb:55:in `initialize'
      config.ru:1:in `new'
      config.ru:1:in `<main>'
      /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `eval'
      /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `preload_app'
      /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
      /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
      /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
    Error ID
    ff318b0f

running foreman-rake apipie:cache --trace generates the same error.

/usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `block in d_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext.rb:22:in `with_domain'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `d_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:114:in `block in D_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_key'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_with_index'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `D_'
/usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `block in d_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext.rb:22:in `with_domain'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:105:in `d_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:114:in `block in D_'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_key'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `each_with_index'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/fast_gettext-2.0.2/lib/fast_gettext/translation.rb:112:in `D_'
/usr/share/foreman/lib/foreman/gettext/all_domains.rb:6:in `_'
/usr/share/foreman/app/models/nic/interface.rb:14:in `<class:Interface>'
/usr/share/foreman/app/models/nic/interface.rb:2:in `<module:Nic>'
/usr/share/foreman/app/models/nic/interface.rb:1:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
/usr/share/foreman/app/models/nic/managed.rb:2:in `<module:Nic>'
/usr/share/foreman/app/models/nic/managed.rb:1:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
/usr/share/foreman/app/services/interface_type_mapper.rb:4:in `<class:InterfaceTypeMapper>'
/usr/share/foreman/app/services/interface_type_mapper.rb:1:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in `block in require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in `loading'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in `require_or_load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:506:in `load_missing_constant'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.16/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:193:in `const_missing'
/usr/share/foreman/config/initializers/apipie.rb:22:in `block in <top (required)>'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/apipie_module.rb:38:in `configure'
/usr/share/foreman/config/initializers/apipie.rb:3:in `<top (required)>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:657:in `block in load_config_initializer'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:170:in `instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:656:in `load_config_initializer'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:613:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:613:in `block in <class:Engine>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:228:in `block in tsort_each'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:421:in `block in each_strongly_connected_component_from'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:415:in `call'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:415:in `each_strongly_connected_component_from'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `each'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `call'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:226:in `tsort_each'
/opt/rh/rh-ruby25/root/usr/share/ruby/tsort.rb:205:in `tsort_each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:122:in `require'
/opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/application.rb:337:in `require_environment!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:217:in `block in invoke_prerequisites'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:215:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:215:in `invoke_prerequisites'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `load'
/opt/rh/rh-ruby25/root/usr/bin/rake:23:in `<main>'
Tasks: TOP => apipie:cache => environment

This looks peculiar:

We ship version 1.4 of this gem in the foreman software collection. Is it possible this was somehow manually installed on the system?

odd not to knowledge I did install hammer_cli_csv and hammer_cli_katello the previous day but I removed them.
[foreman ~]# scl enable rh-ruby25 bash
[foreman ~]# gem list

*** LOCAL GEMS ***

apipie-bindings (0.3.0)
awesome_print (1.8.0)
bigdecimal (1.3.4)
bundler (1.16.1)
clamp (1.1.2)
cmath (default: 1.0.0)
csv (default: 1.0.0)
date (default: 1.0.0)
dbm (default: 1.0.0)
did_you_mean (1.2.0)
domain_name (0.5.20190701)
etc (default: 1.0.0)
fast_gettext (2.0.2)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.0.2)
gdbm (default: 2.0.0)
hammer_cli (2.0.0)
hammer_cli_foreman (2.0.2)
hammer_cli_foreman_bootdisk (0.3.0)
hammer_cli_foreman_docker (0.0.4)
hammer_cli_foreman_tasks (0.0.14)
hashie (4.1.0)
highline (2.0.3)
http-accept (1.7.0)
http-cookie (1.0.3)
io-console (0.4.6)
ipaddr (default: 1.2.0)
json (2.3.0, 2.1.0)
jwt (2.2.1)
little-plugger (1.1.4)
locale (2.1.3)
logging (2.2.2)
mime-types (3.3.1)
mime-types-data (3.2019.1009)
minitest (5.10.3)
multi_json (1.14.1)
netrc (0.11.0)
oauth (0.5.4)
openssl (2.1.2)
powerbar (2.0.1)
psych (3.0.2)
rake (12.3.0)
rdoc (6.0.1)
rest-client (2.1.0)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
stringio (default: 0.0.1)
strscan (default: 1.0.0)
unf (0.1.4)
unf_ext (0.0.7.7)
unicode (0.4.4.4)
unicode-display_width (1.7.0)
webrick (default: 1.4.2)
zlib (default: 1.0.0)
[foreman ~]# rpm -qa | grep fast_gettex
tfm-rubygem-fast_gettext-1.4.1-3.el7.noarch

gem uninstall fast_gettext

You have requested to uninstall the gem:
fast_gettext-2.0.2

hammer_cli-2.0.0 depends on fast_gettext (>= 0)
If you remove this gem, these dependencies will not be met.

Hmm, looks like you installed hammer inside the rh-ruby25 scl. Additionally, hammer 2.0 is not compatible with Foreman 1.24, you should use hammer 0.19. How did you install it? there are packages for hammer in the foreman repositories that handle all of the requirements for you.

Thanks, I removed all the hammer gems under scl rh-ruby25.