Content view is not visible on it via web UI

*** foreman 3.1 installation completed successfully but when we are trying to access the web UI we could not able to see content view in the foreman web UI

Expected outcome: : we required content view

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

Sorry, you really have to give more details. It’s impossible to tell what you problem is.

So far, it sounds to me as if you have just installed foreman without katello. If that’s the case, you’ll have to start over on a new host and install foreman with katello… Of course, then you should not install 3.1 to begin with but a current version…

we have upgraded from 3.1 to 3.2 for Katella services. but getting failed
[root@boldforeman ~]# foreman-maintain service status -b
Running Status Services

Get status of applicable services:

Displaying the following service(s):
rh-redis5-redis, postgresql, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, foreman-proxy

  • displaying rh-redis5-redis [OK]
    \ displaying postgresql [OK]
    | displaying dynflow-sidekiq@orchestrator [FAIL]
    | displaying foreman [FAIL]
    | displaying httpd [OK]
    | displaying puppetserver [OK]
    | displaying dynflow-sidekiq@worker-1 [FAIL]
    / displaying foreman-proxy [OK]
    / All services displayed [FAIL]
    Some services are not running (dynflow-sidekiq@orchestrator, foreman, dynflow-sidekiq@worker-1)

Scenario [Status Services] failed.

The following steps ended up in failing state:

[service-status]

Resolve the failed steps and rerun the command.
In case the failures are false positives, use
–whitelist=“service-status”

[root@boldforeman ~]#

[root@boldforeman ~]# systemctl status foreman-proxy
● foreman-proxy.service - Foreman Proxy
Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/foreman-proxy.service.d
└─90-limits.conf
Active: active (running) since Wed 2023-03-01 02:09:12 MST; 6min ago
Main PID: 1349 (ruby)
Tasks: 8
Memory: 66.3M
CGroup: /system.slice/foreman-proxy.service
└─1349 ruby /usr/share/foreman-proxy/bin/smart-proxy --no-daemonize

Mar 01 02:09:05 boldforeman.micron.com systemd[1]: Starting Foreman Proxy…
Mar 01 02:09:11 boldforeman.micron.com smart-proxy[1349]: /opt/theforeman/tfm/root/usr/share/gems/gems/sequel-5.42.0/lib/sequel/adapters/sqlite.rb:114: warning: rb_check_safe_obj will be removed in Ruby 3.0
Mar 01 02:09:12 boldforeman.micron.com systemd[1]: Started Foreman Proxy.
[root@boldforeman ~]# systemctl status foreman
● foreman.service - Foreman
Loaded: loaded (/usr/lib/systemd/system/foreman.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/foreman.service.d
└─installer.conf
Active: activating (start) since Wed 2023-03-01 02:15:26 MST; 8s ago
Docs: https://theforeman.org
Main PID: 5519 (ruby)
Tasks: 3
Memory: 128.8M
CGroup: /system.slice/foreman.service
└─5519 ruby /usr/share/foreman/bin/rails server --environment production

Mar 01 02:15:26 boldforeman.micron.com systemd[1]: foreman.service: main process exited, code=exited, status=1/FAILURE
Mar 01 02:15:26 boldforeman.micron.com systemd[1]: Failed to start Foreman.
Mar 01 02:15:26 boldforeman.micron.com systemd[1]: Unit foreman.service entered failed state.
Mar 01 02:15:26 boldforeman.micron.com systemd[1]: foreman.service failed.
Mar 01 02:15:26 boldforeman.micron.com systemd[1]: Starting Foreman…
Mar 01 02:15:34 boldforeman.micron.com foreman[5519]: => Booting Puma
Mar 01 02:15:34 boldforeman.micron.com foreman[5519]: => Rails 6.0.3.7 application starting in production
Mar 01 02:15:34 boldforeman.micron.com foreman[5519]: => Run rails server --help for more startup options
[root@boldforeman ~]# journalctl -xe
Mar 01 02:15:53 boldforeman.micron.com systemd[1]: dynflow-sidekiq@worker-1.service failed.
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: uninitialized constant ActiveRecord::Base::EnsureNotUsedBy
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-19.0.1/app/models/concerns/discovery_taxonomy_extensions.rb:5:in block in <module:DiscoveryTaxonom Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concern.rb:122:in class_eval’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concern.rb:122:in append_features' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-19.0.1/lib/foreman_discovery/engine.rb:205:in include’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-19.0.1/lib/foreman_discovery/engine.rb:205:in block in <class:Engine>' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:428:in instance_exec’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:428:in block in make_lambda' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:200:in block (2 levels) in halting’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:605:in block (2 levels) in default_terminator' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:604:in catch’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:604:in block in default_terminator' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:201:in block in halting’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:513:in block in invoke_before' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:513:in each’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:513:in invoke_before' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:134:in run_callbacks’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/reloader.rb:88:in prepare!' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/application/finisher.rb:113:in block in module:Finisher
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/initializable.rb:32:in instance_exec' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/initializable.rb:32:in run’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in block in run' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in benchmark’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in run' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/initializable.rb:61:in block in run_initializers’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:228:in block in tsort_each' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:350:in block (2 levels) in each_strongly_connected_component’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:431:in each_strongly_connected_component_from' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:349:in block in each_strongly_connected_component’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:347:in each' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:347:in call’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:347:in each_strongly_connected_component' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:226:in tsort_each’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/ruby/tsort.rb:205:in tsort_each' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/initializable.rb:60:in run_initializers’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/application.rb:363:in initialize!' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in public_send’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in method_missing' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /usr/share/foreman/config/environment.rb:5:in <top (required)>’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /usr/share/foreman/extras/dynflow-sidekiq.rb:21:in <top (required)>’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/rh/rh-ruby27/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:292:in boot_system' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:46:in run’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/bin/sidekiq:12:in <top (required)>' Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/bin/sidekiq:23:in load’
Mar 01 02:15:54 boldforeman.micron.com dynflow-sidekiq@orchestrator[5617]: /opt/theforeman/tfm/root/usr/bin/sidekiq:23:in `’
Mar 01 02:15:54 boldforeman.micron.com systemd[1]: dynflow-sidekiq@orchestrator.service: main process exited, code=exited, status=1/FAILURE
Mar 01 02:15:54 boldforeman.micron.com systemd[1]: Failed to start Foreman jobs daemon - orchestrator on sidekiq.
– Subject: Unit dynflow-sidekiq@orchestrator.service has failed
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit dynflow-sidekiq@orchestrator.service has failed.

– The result is failed.
Mar 01 02:15:54 boldforeman.micron.com systemd[1]: Unit dynflow-sidekiq@orchestrator.service entered failed state.
Mar 01 02:15:54 boldforeman.micron.com systemd[1]: dynflow-sidekiq@orchestrator.service failed.
[root@boldforeman ~]#

[root@boldforeman system]# foreman-installer --scenario katello --foreman-initial-organization “My_Organization” --foreman-initial-location “My_Location” --foreman-initial-admin-username admin --foreman-initial-admin-password redhat --force
2023-03-01 03:37:53 [NOTICE] [scenario_manager] Scenario /etc/foreman-installer/scenarios.d/katello.yaml was selected
2023-03-01 03:37:53 [NOTICE] [root] Due to scenario change the configuration (/etc/foreman-installer/scenarios.d/katello.yaml) was updated with /etc/foreman-installer/scenarios.d/foreman.yaml and reloaded.
2023-03-01 03:37:53 [WARN ] [boot] Unsetting environment variable ‘http_proxy’ for the duration of the install.
2023-03-01 03:37:53 [WARN ] [boot] Unsetting environment variable ‘https_proxy’ for the duration of the install.
2023-03-01 03:37:53 [NOTICE] [root] Loading installer configuration. This will take some time.
Traceback (most recent call last):
18: from /usr/sbin/foreman-installer:8:in <main>' 17: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in run’
16: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in run' 15: from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in new’
14: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:157:in initialize' 13: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:316:in set_parameters’
12: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/scenario_manager.rb:217:in load_and_setup_configuration' 11: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:268:in preset_defaults_from_puppet’
10: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:258:in params' 9: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:132:in modules’
8: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:396:in register_data_types' 7: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:396:in each’
6: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:397:in block in register_data_types' 5: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:397:in each’
4: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:398:in block (2 levels) in register_data_types' 3: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:20:in register’
2: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:20:in each' 1: from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type_parser.rb:22:in block in register’
/opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/data_type.rb:31:in `register_type’: Data type Apache::LogLevel is already registered, cannot be re-registered (ArgumentError)
[root@boldforeman system]#

Forman installation completed successfully as well as we can access the web UI access but we coul not able to see content view .

you can see attachment and suggest me to get content view

3.2-foreman

You did not install foreman with the katello plugin. You’ll need to reinstall the server and start over.

2 Likes

I solved it by changing the user’s language