Foreman installation failing at foreman-rake db:migrate

Problem: I am trying to install foreman 3.0 with katello 4.2 on centos 8.4 server with external postgresql 12 database on centos 8.4
During installation its failing at foreman-rake db:migrate

Expected outcome: complete installation successfully

Foreman and Proxy versions: Foreman 3.0

Foreman and Proxy plugin versions: Katello 4.2

Distribution and version: Centos 8.4

Other relevant data:
when i am running installer, its failing with the below errors.

2022-01-04 04:39:13 [NOTICE] [configure] Starting system configuration.
2022-01-04 04:39:28 [NOTICE] [configure] 250 configuration steps out of 1776 steps complete.
2022-01-04 04:39:32 [NOTICE] [configure] 500 configuration steps out of 1778 steps complete.
2022-01-04 04:39:35 [NOTICE] [configure] 750 configuration steps out of 1779 steps complete.
2022-01-04 04:39:58 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-01-04 04:39:58 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from ‘notrun’ to [‘0’] failed: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-01-04 04:40:09 [NOTICE] [configure] 1250 configuration steps out of 1786 steps complete.
2022-01-04 04:40:09 [NOTICE] [configure] 1500 configuration steps out of 1786 steps complete.
2022-01-04 04:40:10 [ERROR ] [configure] ‘pulpcore-manager migrate --noinput’ returned 1 instead of one of [0]
2022-01-04 04:40:10 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns: change from ‘notrun’ to [‘0’] failed: ‘pulpcore-manager migrate --noinput’ returned 1 instead of one of [0]
2022-01-04 04:40:10 [NOTICE] [configure] 1750 configuration steps out of 1786 steps complete.
2022-01-04 04:40:13 [NOTICE] [configure] System configuration has finished.

There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.

Below is coming when try to run command db migration command individual:

foreman-rake db:migrate

Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
== 20200213184848 CreateEvrType: migrating ====================================
– enable_extension(“evr”)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::UndefinedFile: ERROR: could not open extension control file “/usr/share/pgsql/extension/evr.control”: No such file or directory
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in exec_params' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in block (2 levels) in exec_no_cache’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:674:in block in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:722:in block (2 levels) in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:721:in block in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in instrument’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:712:in log' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in execute_and_clear' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in exec_query’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:391:in enable_extension' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:890:in block in method_missing’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in block in say_with_time' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in say_with_time’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:879:in method_missing' /usr/share/gems/gems/katello-4.2.1/db/migrate/20200213184848_create_evr_type.rb:7:in up’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:831:in exec_migration' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:812:in block (2 levels) in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:811:in block in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in with_connection’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:810:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1002:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1310:in block in execute_migration_in_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in block in ddl_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in block in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in ddl_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1309:in execute_migration_in_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1281:in block in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in each’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in block in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1382:in with_advisory_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1061:in up' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1036:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/tasks/database_tasks.rb:238:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:86:in block (3 levels) in <top (required)>’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in each' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in block (2 levels) in <top (required)>’
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>’

Caused by:
ActiveRecord::StatementInvalid: PG::UndefinedFile: ERROR: could not open extension control file “/usr/share/pgsql/extension/evr.control”: No such file or directory
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in exec_params' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in block (2 levels) in exec_no_cache’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:674:in block in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:722:in block (2 levels) in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:721:in block in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in instrument’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:712:in log' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in execute_and_clear' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in exec_query’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:391:in enable_extension' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:890:in block in method_missing’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in block in say_with_time' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in say_with_time’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:879:in method_missing' /usr/share/gems/gems/katello-4.2.1/db/migrate/20200213184848_create_evr_type.rb:7:in up’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:831:in exec_migration' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:812:in block (2 levels) in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:811:in block in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in with_connection’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:810:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1002:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1310:in block in execute_migration_in_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in block in ddl_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in block in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in ddl_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1309:in execute_migration_in_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1281:in block in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in each’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in block in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1382:in with_advisory_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1061:in up' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1036:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/tasks/database_tasks.rb:238:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:86:in block (3 levels) in <top (required)>’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in each' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in block (2 levels) in <top (required)>’
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>’

Caused by:
PG::UndefinedFile: ERROR: could not open extension control file “/usr/share/pgsql/extension/evr.control”: No such file or directory
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in exec_params' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in block (2 levels) in exec_no_cache’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/share_lock.rb:187:in yield_shares’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:674:in block in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:722:in block (2 levels) in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:721:in block in log' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in instrument’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract_adapter.rb:712:in log' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in exec_no_cache’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in execute_and_clear' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:98:in exec_query’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/postgresql_adapter.rb:391:in enable_extension' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:890:in block in method_missing’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in block in say_with_time' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:858:in say_with_time’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:879:in method_missing' /usr/share/gems/gems/katello-4.2.1/db/migrate/20200213184848_create_evr_type.rb:7:in up’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:831:in exec_migration' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:812:in block (2 levels) in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:811:in block in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:471:in with_connection’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:810:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1002:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1310:in block in execute_migration_in_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in block in ddl_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in block in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1361:in ddl_transaction' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1309:in execute_migration_in_transaction’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1281:in block in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in each’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1280:in migrate_without_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in block in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1382:in with_advisory_lock' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1229:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1061:in up' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/migration.rb:1036:in migrate’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/tasks/database_tasks.rb:238:in migrate' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:86:in block (3 levels) in <top (required)>’
/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in each' /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/databases.rake:84:in block (2 levels) in <top (required)>’
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>’
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

However after installing “yum install https://yum.theforeman.org/pulpcore/3.14/el8/x86_64/postgresql-evr-0.0.2-1.el8.x86_64.rpm” file /usr/share/pgsql/extension/evr.control is now listed on database server. But this error is keep coming while installation .

ls -l “/usr/share/pgsql/extension/evr.control”

-rw-r–r–. 1 root root 100 Apr 13 2020 /usr/share/pgsql/extension/evr.control

please help asap

Hey,

CentOS 8.5 is technically not supported (we only support “latest”), but that shouldn’t be your issue.

Did you install the corresponding postgresql-evr package on your external DB machine?

Hi Evgeni,

Thanks for the response, As I maintained in my comments that I have installed postgresql-evr-0.0.2-1.el8.x86_64.rpm on database server and after that i am able to get the file “/usr/share/pgsql/extension/evr.control” on the DB server but while installation it keeps continue saying that this file is not exist and failing.

==============================
Below i maintained in my previous comments:

However after installing “yum install https://yum.theforeman.org/pulpcore/3.14/el8/x86_64/postgresql-evr-0.0.2-1.el8.x86_64.rpm” file /usr/share/pgsql/extension/evr.control is now listed on database server. But this error is keep coming while installation .

ls -l “/usr/share/pgsql/extension/evr.control”

-rw-r–r–. 1 root root 100 Apr 13 2020 /usr/share/pgsql/extension/evr.control

It’s extremely difficult to tell, if you have used the correct configuration options if you don’t reveal them.

What are the (collected) configuration options to foreman-installer? How did you run foreman-installer exactly?

Why do you install the postgresql-evr rpm using a direct rpm URL and not using the katello.repo/katello-repos?

I am using these options with foreman installer.

foreman-installer --scenario katello --foreman-initial-organization “myorg” --foreman-initial-location “sanjose” --foreman-initial-admin-username admin --foreman-initial-admin-password admin123 --enable-foreman-plugin-discovery --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh --foreman-db-host sjdevsatdb02.example.com --foreman-db-password pass123 --foreman-db-database foreman --foreman-db-manage false --katello-candlepin-db-host sjdevsatdb02.example.com --katello-candlepin-db-name candlepin --katello-candlepin-db-password pass123 --katello-candlepin-manage-db false --foreman-proxy-content-pulpcore-manage-postgresql false --foreman-proxy-content-pulpcore-postgresql-host sjdevsatdb02.example.com --foreman-proxy-content-pulpcore-postgresql-db-name pulpcore --foreman-proxy-content-pulpcore-postgresql-password pass123 --certs-server-cert “/root/satellite_cert/satellite_cert.pem” --certs-server-key “/root/satellite_cert/satellite_cert_key.pem” --certs-server-ca-cert “/root/satellite_cert/ca_cert_bundle.pem”

i have installed postgresql-evr rpm using a direct rpm URL by following one of the solution while doing google search

Now i am able to install foreman with katello with external database servers.

But foreman url is not opening.

foreman-installer --scenario katello --foreman-initial-organization “cadence” --foreman-initial-location “sanjose” --foreman-initial-admin-username admin --foreman-initial-admin-password pass123 --enable-foreman-compute-libvirt --enable-foreman-compute-openstack --enable-foreman-compute-vmware --enable-foreman-plugin-ansible --enable-foreman-cli --enable-foreman-plugin-discovery --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh --foreman-db-host sjdevsatdb02.cadence.com --foreman-db-password pass123 --foreman-db-database foreman --foreman-db-manage false --katello-candlepin-db-host sjdevsatdb02.cadence.com --katello-candlepin-db-name candlepin --katello-candlepin-db-password pass123 --katello-candlepin-manage-db false --foreman-proxy-content-pulpcore-manage-postgresql false --foreman-proxy-content-pulpcore-postgresql-host sjdevsatdb02.cadence.com --foreman-proxy-content-pulpcore-postgresql-db-name pulpcore --foreman-proxy-content-pulpcore-postgresql-password pass123 --certs-server-cert “/root/satellite_cert/satellite_cert.pem” --certs-server-key “/root/satellite_cert/satellite_cert_key.pem” --certs-server-ca-cert “/root/satellite_cert/ca_cert_bundle.pem”

2022-01-05 02:39:39 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-01-05 02:39:42 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-01-05 02:39:42 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
Executing: katello-certs-check -c “/root/satellite_cert/satellite_cert.pem” -k “/root/satellite_cert/satellite_cert_key.pem” -b “/root/satellite_cert/ca_cert_bundle.pem”
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Checking server certificate encoding: [OK]

Checking expiration of certificate: [OK]

Checking expiration of CA bundle: [OK]

Checking if server certificate has CA:TRUE flag [OK]

Checking for private key passphrase: [OK]

Checking to see if the private key matches the certificate: [OK]

Checking CA bundle against the certificate file: [OK]

Checking CA bundle size: 2
[OK]

Checking Subject Alt Name on certificate [OK]

Checking if any Subject Alt Name on certificate matches the Subject CN
[OK]

Checking Key Usage extension on certificate for Key Encipherment [OK]

Checking for use of shortname as CN
[OK]

Validation succeeded

To install the Katello server with the custom certificates, run:

foreman-installer --scenario katello \
                  --certs-server-cert "/root/satellite_cert/satellite_cert.pem" \
                  --certs-server-key "/root/satellite_cert/satellite_cert_key.pem" \
                  --certs-server-ca-cert "/root/satellite_cert/ca_cert_bundle.pem"

To update the certificates on a currently running Katello installation, run:

foreman-installer --scenario katello \
                  --certs-server-cert "/root/satellite_cert/satellite_cert.pem" \
                  --certs-server-key "/root/satellite_cert/satellite_cert_key.pem" \
                  --certs-server-ca-cert "/root/satellite_cert/ca_cert_bundle.pem" \
                  --certs-update-server --certs-update-server-ca

To use them inside a NEW $FOREMAN_PROXY, rerun this command with -t foreman-proxy
2022-01-05 02:39:52 [NOTICE] [configure] Starting system configuration.
2022-01-05 02:40:08 [NOTICE] [configure] 250 configuration steps out of 1795 steps complete.
2022-01-05 02:40:11 [NOTICE] [configure] 500 configuration steps out of 1797 steps complete.
2022-01-05 02:40:14 [NOTICE] [configure] 750 configuration steps out of 1798 steps complete.
2022-01-05 02:40:15 [NOTICE] [configure] 1000 configuration steps out of 1804 steps complete.
2022-01-05 02:40:40 [NOTICE] [configure] 1250 configuration steps out of 1805 steps complete.
2022-01-05 02:40:41 [NOTICE] [configure] 1500 configuration steps out of 1805 steps complete.
2022-01-05 02:40:49 [NOTICE] [configure] 1750 configuration steps out of 1805 steps complete.
2022-01-05 02:40:53 [NOTICE] [configure] System configuration has finished.
Executing: foreman-rake upgrade:run

Upgrade Step 1/7: katello:correct_repositories. This may take a long while.

Upgrade Step 2/7: katello:clean_backend_objects. This may take a long while.
Failed upgrade task: katello:clean_backend_objects, see logs for more information.

Upgrade Step 3/7: katello:upgrades:4.0:remove_ostree_puppet_content. =============================================
Upgrade Step 4/7: katello:upgrades:4.1:sync_noarch_content. =============================================
Upgrade Step 5/7: katello:upgrades:4.1:fix_invalid_pools. I, [2022-01-05T02:41:05.692740 #1809442] INFO – : Corrected 0 invalid pools
I, [2022-01-05T02:41:05.692778 #1809442] INFO – : Removed 0 orphaned pools

Upgrade Step 6/7: katello:upgrades:4.1:reupdate_content_import_export_perms. =============================================
Upgrade Step 7/7: katello:upgrades:4.2:remove_checksum_values. Success!

  • Foreman is running at https://sjdevsatapp01.cadence.com
    Initial credentials are admin / cadence

  • To install an additional Foreman proxy on separate machine continue by running:

    foreman-proxy-certs-generate --foreman-proxy-fqdn “$FOREMAN_PROXY” --certs-tar “/root/$FOREMAN_PROXY-certs.tar”

  • Foreman Proxy is running at https://sjdevsatapp01.cadence.com:9090

The full log is at /var/log/foreman-installer/katello.log

Please update.

Could you please help for this issue.

I am able to open the foreman url but now its showing error as below

Oops, we’re sorry but something went wrong Katello::Errors::CandlepinNotRunning

hammer ping katello

candlepin:
Status: FAIL
Server Response: Message: 404 Not Found
candlepin_auth:
Status: FAIL
Server Response: Message: Katello::Errors::CandlepinNotRunning
candlepin_events:
Status: FAIL
message: Not running
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 520ms
foreman_tasks:
Status: FAIL
Server Response: Message: some executors are not responding, check /foreman_tasks/dynflow/status

What did you change exactly to make it work?

Your posts are very hard to read if you don’t use preformatted text for the pasted output…

I stopped the firewalld service. Now on foreman webpage i am getting below error
" Katello::Errors::CandlepinNotRunning"

Below are the detailed logs (output of command foreman-rake errors:fetch_log request_id=f96c3c5d)

=========================
foreman-rake errors:fetch_log request_id=f96c3c5d

2022-01-06T19:38:13 [I|app|f96c3c5d] Started GET “/” for 10.254.46.190 at 2022-01-06 19:38:13 -0800
2022-01-06T19:38:13 [W|app|f96c3c5d] 404 Not Found
f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:223:in exception_with_response' f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:103:in return!’
f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:809:in process_result' f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in block in transmit’
f96c3c5d | /usr/share/ruby/net/http.rb:933:in start' f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in transmit’
f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in execute' f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in execute’
f96c3c5d | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in get' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:259:in backend_status’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:89:in block in ping_candlepin_without_auth' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:138:in exception_watch’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:88:in ping_candlepin_without_auth' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:230:in ping_services_for_capsule’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/ping.rb:25:in ping!' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/services/katello/organization_creator.rb:14:in create_all_organizations!’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/middleware/organization_created_enforcer.rb:12:in call' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/middleware/event_daemon.rb:10:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/apipie-dsl-2.4.0/lib/apipie_dsl/static_dispatcher.rb:67:in call' f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/static_dispatcher.rb:66:in call’
f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/extractor/recorder.rb:137:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in call’
f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/middleware/checksum_in_headers.rb:27:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/etag.rb:27:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/head.rb:12:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/http/content_security_policy.rb:18:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in context' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/cookies.rb:648:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:27:in block in call’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:101:in run_callbacks' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:26:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/debug_exceptions.rb:32:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in call' f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:37:in call_app’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:28:in call' f96c3c5d | /usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in call’
f96c3c5d | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/remote_ip.rb:81:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/request_id.rb:27:in call' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/prevent_json_parsing.rb:12:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/method_override.rb:24:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/runtime.rb:22:in call’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/executor.rb:14:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/host_authorization.rb:76:in call' f96c3c5d | /usr/share/gems/gems/secure_headers-6.3.0/lib/secure_headers/middleware.rb:11:in call’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/engine.rb:527:in call' f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in public_send’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in method_missing' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in block in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in each' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in call’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/configuration.rb:249:in call' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:77:in block in handle_request’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:338:in with_force_shutdown' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:76:in handle_request’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/server.rb:438:in process_client' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:145:in block in spawn_thread’
f96c3c5d | /usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in block in create_with_logging_context' 2022-01-06T19:38:13 [I|app|f96c3c5d] Processing by DashboardController#index as HTML 2022-01-06T19:38:13 [I|app|f96c3c5d] Rendering dashboard/index.html.erb within layouts/application 2022-01-06T19:38:13 [I|app|f96c3c5d] Rendered dashboard/index.html.erb within layouts/application (Duration: 30.9ms | Allocations: 6215) 2022-01-06T19:38:13 [W|app|f96c3c5d] Katello::Errors::CandlepinNotRunning 2022-01-06T19:38:13 [I|app|f96c3c5d] Backtrace for 'Katello::Errors::CandlepinNotRunning' error (ActionView::Template::Error): Katello::Errors::CandlepinNotRunning f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/lib/katello/resources/candlepin.rb:27:in raise_rest_client_exception’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/lib/katello/http_resource.rb:94:in rescue in issue_request' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/lib/katello/http_resource.rb:84:in issue_request’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/lib/katello/http_resource.rb:47:in block (2 levels) in singleton class' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/lib/katello/resources/candlepin/owner.rb:32:in find’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/glue/candlepin/owner.rb:20:in find_owner' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/glue/candlepin/owner.rb:31:in owner_details’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/glue/candlepin/owner.rb:46:in content_access_mode' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/glue/candlepin/owner.rb:51:in block in simple_content_access?’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:332:in block in fetch' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:717:in block in save_block_result_to_cache’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:686:in block in instrument' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in instrument’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:686:in instrument' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:716:in save_block_result_to_cache’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:332:in fetch' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/models/katello/glue/candlepin/owner.rb:50:in simple_content_access?’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/app/helpers/katello/concerns/dashboard_helper_extensions.rb:35:in removed_widgets' f96c3c5d | /usr/share/foreman/app/helpers/dashboard_helper.rb:32:in widgets_to_add’
f96c3c5d | /usr/share/foreman/app/helpers/dashboard_helper.rb:16:in block in dashboard_actions' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:45:in block in capture’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:209:in with_output_buffer' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/helpers/capture_helper.rb:45:in capture’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/helpers/tag_helper.rb:273:in content_tag' f96c3c5d | /usr/share/foreman/app/helpers/dashboard_helper.rb:15:in dashboard_actions’
f96c3c5d | /usr/share/foreman/app/views/dashboard/index.html.erb:2:in _eacc192729887b8852b734aa724b2f22' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/base.rb:274:in _run’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/template.rb:185:in block in render' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in instrument’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/template.rb:385:in instrument_render_template' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/template.rb:183:in render’
f96c3c5d | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in render' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:58:in block (2 levels) in render_template’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:88:in block in instrument' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in block in instrument’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in instrument' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in instrument’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/abstract_renderer.rb:87:in instrument' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:57:in block in render_template’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:65:in render_with_layout' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:56:in render_template’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/template_renderer.rb:13:in render' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:61:in render_template_to_object’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/renderer/renderer.rb:29:in render_to_object' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:117:in block in _render_template’
f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/base.rb:304:in in_rendering_context' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:116:in _render_template’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/streaming.rb:218:in _render_template' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:103:in render_to_body’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:52:in render_to_body' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/renderers.rb:142:in render_to_body’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/rendering.rb:25:in render' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:36:in render’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:44:in block (2 levels) in render' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/core_ext/benchmark.rb:14:in block in ms’
f96c3c5d | /usr/share/ruby/benchmark.rb:308:in realtime' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/core_ext/benchmark.rb:14:in ms’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:44:in block in render' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:84:in cleanup_view_runtime’
f96c3c5d | /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/controller_runtime.rb:34:in cleanup_view_runtime' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:43:in render’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/implicit_render.rb:35:in default_render' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in block in send_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in tap' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:195:in process_action' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:30:in process_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:42:in block in process_action' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:112:in block in run_callbacks’
f96c3c5d | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in set_timezone' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in block in run_callbacks’
f96c3c5d | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in clear_thread' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in block in run_callbacks’
f96c3c5d | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in set_topbar_sweeper_controller' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in block in run_callbacks’
f96c3c5d | /usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in around' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in block in run_callbacks’
f96c3c5d | /usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in around' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in block in run_callbacks’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:139:in run_callbacks' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:41:in process_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/rescue.rb:22:in process_action' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:33:in block in process_action’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in block in instrument' f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in instrument’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in instrument' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:32:in process_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/params_wrapper.rb:245:in process_action' f96c3c5d | /usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/railties/controller_runtime.rb:27:in process_action’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:136:in process' f96c3c5d | /usr/share/gems/gems/actionview-6.0.3.7/lib/action_view/rendering.rb:39:in process’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal.rb:190:in dispatch' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal.rb:254:in dispatch’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:50:in dispatch' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:33:in serve’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:49:in block in serve' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:32:in each’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/journey/router.rb:32:in serve' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/routing/route_set.rb:834:in call’
f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/middleware/organization_created_enforcer.rb:18:in call' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/middleware/event_daemon.rb:10:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/apipie-dsl-2.4.0/lib/apipie_dsl/static_dispatcher.rb:67:in call' f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/static_dispatcher.rb:66:in call’
f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/extractor/recorder.rb:137:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in call’
f96c3c5d | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/middleware/checksum_in_headers.rb:27:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/etag.rb:27:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/head.rb:12:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/http/content_security_policy.rb:18:in call' f96c3c5d | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in context' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/cookies.rb:648:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:27:in block in call’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:101:in run_callbacks' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:26:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/debug_exceptions.rb:32:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in call' f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:37:in call_app’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:28:in call' f96c3c5d | /usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in call’
f96c3c5d | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/remote_ip.rb:81:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/request_id.rb:27:in call' f96c3c5d | /usr/share/gems/gems/katello-4.2.1/lib/katello/prevent_json_parsing.rb:12:in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/method_override.rb:24:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/runtime.rb:22:in call’
f96c3c5d | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call' f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/executor.rb:14:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in call' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in call’
f96c3c5d | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/host_authorization.rb:76:in call' f96c3c5d | /usr/share/gems/gems/secure_headers-6.3.0/lib/secure_headers/middleware.rb:11:in call’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/engine.rb:527:in call' f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in public_send’
f96c3c5d | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in method_missing' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in block in call’
f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in each' f96c3c5d | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in call’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/configuration.rb:249:in call' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:77:in block in handle_request’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:338:in with_force_shutdown' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:76:in handle_request’
f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/server.rb:438:in process_client' f96c3c5d | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:145:in block in spawn_thread’
f96c3c5d | /usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context’
2022-01-06T19:38:13 [I|app|f96c3c5d] Rendering common/500.html.erb within layouts/application
2022-01-06T19:38:13 [I|app|f96c3c5d] Rendered common/500.html.erb within layouts/application (Duration: 2.9ms | Allocations: 1452)
2022-01-06T19:38:13 [I|app|f96c3c5d] Rendered layouts/_application_content.html.erb (Duration: 0.8ms | Allocations: 401)
2022-01-06T19:38:13 [I|app|f96c3c5d] Rendering layouts/base.html.erb
2022-01-06T19:38:13 [I|app|f96c3c5d] Rendered layouts/base.html.erb (Duration: 4.1ms | Allocations: 3393)
2022-01-06T19:38:13 [I|app|f96c3c5d] Completed 500 Internal Server Error in 56ms (Views: 10.0ms | ActiveRecord: 5.5ms | Allocations: 17741)

Foreman version: 3.0.1
Plugins:

  • foreman-tasks 5.1.1
  • foreman_ansible 6.4.1
  • foreman_discovery 18.0.5
  • foreman_hooks 0.3.17
  • foreman_puppet 1.0.5
  • foreman_remote_execution 4.8.0
  • katello 4.2.1
    =====================================