Foreman upgrade failed with "foreman-rake db:seed --trace"

I’m trying to upgrade Foreman + Katello from 3.3/4.5 to 3.4/4.6 version.
When I run foreman-installer command I’ve go this issue:

Problem:
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: ‘/usr/sbin/foreman-rake db:seed’ returned 1 instead of one of [0]
Expected outcome:

Foreman and Proxy versions: Foreman 3.3 + Katello 4.5

Foreman and Proxy plugin versions:

foreman-installer

2022-09-14 14:53:34 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-09-14 14:53:38 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-09-14 14:53:38 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-09-14 14:53:42 [NOTICE] [configure] Starting system configuration.
2022-09-14 14:53:57 [NOTICE] [configure] 250 configuration steps out of 1807 steps complete.
2022-09-14 14:54:03 [NOTICE] [configure] 500 configuration steps out of 1807 steps complete.
2022-09-14 14:54:06 [NOTICE] [configure] 750 configuration steps out of 1812 steps complete.
2022-09-14 14:54:06 [NOTICE] [configure] 1000 configuration steps out of 1818 steps complete.
2022-09-14 14:54:07 [NOTICE] [configure] 1250 configuration steps out of 1819 steps complete.
2022-09-14 14:55:08 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: ‘/usr/sbin/foreman-rake db:seed’ returned 1 instead of one of [0]
2022-09-14 14:55:08 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: ‘/usr/sbin/foreman-rake db:seed’ returned 1 instead of one of [0]
2022-09-14 14:55:08 [NOTICE] [configure] 1500 configuration steps out of 1819 steps complete.
2022-09-14 14:55:17 [NOTICE] [configure] 1750 configuration steps out of 1819 steps complete.
2022-09-14 14:55:20 [NOTICE] [configure] System configuration has finished.

So, I saw I can use foreman-rake db:seed --trace to have more infos:

foreman-rake db:seed --trace

** Invoke db:seed (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column settings.default does not exist
LINE 1: …".“name” = $2 AND “settings”.“value” IS NULL AND (settings.d…
^
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in exec_params' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in block (2 levels) in exec_no_cache’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/share_lock.rb:187:in yield_shares’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:671:in block in exec_no_cache’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:696:in block (2 levels) in log' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:695:in block in log' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in instrument’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:687:in log' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:670:in exec_no_cache’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in execute_and_clear' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:72:in exec_delete’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:179:in update' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in update’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:466:in update_all' /usr/share/gems/gems/foreman_rh_cloud-5.0.39/app/models/setting/rh_cloud.rb:9:in block in load_defaults’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in block in transaction' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in transaction' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in transaction’
/usr/share/gems/gems/foreman_rh_cloud-5.0.39/app/models/setting/rh_cloud.rb:6:in load_defaults' /usr/share/foreman/app/services/setting_registry.rb:114:in each’
/usr/share/foreman/app/services/setting_registry.rb:114:in load' /usr/share/foreman/config/initializers/foreman.rb:37:in block in <top (required)>’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in instance_exec' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in block in make_lambda’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in catch' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in block in default_terminator’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in block in halting' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in block in invoke_before’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in each' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in invoke_before’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in run_callbacks' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in prepare!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in instance_exec’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in block in run’
/usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in run’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in block in run_initializers' /usr/share/ruby/tsort.rb:228:in block in tsort_each’
/usr/share/ruby/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/share/ruby/tsort.rb:431:in each_strongly_connected_component_from’
/usr/share/ruby/tsort.rb:349:in block in each_strongly_connected_component' /usr/share/ruby/tsort.rb:347:in each’
/usr/share/ruby/tsort.rb:347:in call' /usr/share/ruby/tsort.rb:347:in each_strongly_connected_component’
/usr/share/ruby/tsort.rb:226:in tsort_each' /usr/share/ruby/tsort.rb:205:in tsort_each’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in run_initializers' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:391:in initialize!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in public_send' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in method_missing’
/usr/share/foreman/config/environment.rb:5:in <top (required)>' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require’
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:367:in require_environment!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:533:in block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in block in execute’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in execute’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:219:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:243:in block in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:218:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:243:in block in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:218:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:188:in invoke’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:160:in invoke_task' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block (2 levels) in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:125:in run_with_threads' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:110:in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:83:in block in run' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:186:in standard_exception_handling’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:80:in run' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in <top (required)>’
/usr/bin/rake:23:in load' /usr/bin/rake:23:in

Caused by:
PG::UndefinedColumn: ERROR: column settings.default does not exist
LINE 1: …".“name” = $2 AND “settings”.“value” IS NULL AND (settings.d…
^
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in exec_params' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in block (2 levels) in exec_no_cache’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:48:in block in permit_concurrent_loads' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/share_lock.rb:187:in yield_shares’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies/interlock.rb:47:in permit_concurrent_loads' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:671:in block in exec_no_cache’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:696:in block (2 levels) in log' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:695:in block in log' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in instrument’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract_adapter.rb:687:in log' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:670:in exec_no_cache’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in execute_and_clear' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:72:in exec_delete’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:179:in update' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in update’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:466:in update_all' /usr/share/gems/gems/foreman_rh_cloud-5.0.39/app/models/setting/rh_cloud.rb:9:in block in load_defaults’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in block in transaction' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in transaction' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in transaction’
/usr/share/gems/gems/foreman_rh_cloud-5.0.39/app/models/setting/rh_cloud.rb:6:in load_defaults' /usr/share/foreman/app/services/setting_registry.rb:114:in each’
/usr/share/foreman/app/services/setting_registry.rb:114:in load' /usr/share/foreman/config/initializers/foreman.rb:37:in block in <top (required)>’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in instance_exec' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in block in make_lambda’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in catch' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in block in default_terminator’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in block in halting' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in block in invoke_before’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in each' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in invoke_before’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in run_callbacks' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in prepare!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in instance_exec’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in block in run’
/usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in run’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in block in run_initializers' /usr/share/ruby/tsort.rb:228:in block in tsort_each’
/usr/share/ruby/tsort.rb:350:in block (2 levels) in each_strongly_connected_component' /usr/share/ruby/tsort.rb:431:in each_strongly_connected_component_from’
/usr/share/ruby/tsort.rb:349:in block in each_strongly_connected_component' /usr/share/ruby/tsort.rb:347:in each’
/usr/share/ruby/tsort.rb:347:in call' /usr/share/ruby/tsort.rb:347:in each_strongly_connected_component’
/usr/share/ruby/tsort.rb:226:in tsort_each' /usr/share/ruby/tsort.rb:205:in tsort_each’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in run_initializers' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:391:in initialize!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in public_send' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in method_missing’
/usr/share/foreman/config/environment.rb:5:in <top (required)>' /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require’
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in require' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in block in require' /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in load_dependency’
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in require' /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:367:in require_environment!’
/usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:533:in block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in block in execute’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:281:in execute’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:219:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:243:in block in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:218:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:243:in block in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:241:in invoke_prerequisites’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:218:in block in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in synchronize’
/usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:199:in invoke_with_call_chain' /usr/share/gems/gems/rake-13.0.1/lib/rake/task.rb:188:in invoke’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:160:in invoke_task' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block (2 levels) in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in each' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:116:in block in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:125:in run_with_threads' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:110:in top_level’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:83:in block in run' /usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:186:in standard_exception_handling’
/usr/share/gems/gems/rake-13.0.1/lib/rake/application.rb:80:in run' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in <top (required)>’
/usr/bin/rake:23:in load' /usr/bin/rake:23:in
Tasks: TOP => db:seed => db:load_config => environment

I do not understand what happens, can someone could help me please ?

Regards

Distribution and version: RH 8.6

Other relevant data:

Foreman 3.4 changed how Setting information is stored and dropped some fields from the DB.
There several issues with different plugins have dropped in the forum over the past few days. I would assume you are using some plugin(s) that have not been updated yet accordingly. I know there have been problems at least with the puppetdb and expire_hosts plugins, but maybe more of the less maintained plugins are affected.

Update plugins ? How to do this please ?
Is there any workaround at the moment to upgrade anyway ?

The updates need to be done by the maintainers of those plugins. What plugins do you have installed currently, so we can check if the is the cause of the problem.
If it is, the only workaround currently would be to remove the problematic plugin(s).

Ok great I really would like to know how to remove a plugin.
At the moment I’m sure we do not need all the installed plugins
I already posted here to have an answer on how to remove a foreman plugin but nothing at the moment.
If you can explain me, or redirect me, on an official doc about how to remove a foreman plugin you are welcome :wink:

At the moment we are using the following plugins:
foreman-tasks
foreman_ansible
foreman_column_view
foreman_default_hostgroup
foreman_discovery
foreman_host_reports
foreman_leapp
foreman_monitoring
foreman_openscap
foreman_remote_execution
foreman_rh_cloud
foreman_setup
foreman_statistics
foreman_virt_who_configure
foreman_webhooks
katello

So first how to determine which one(s) is / are is the culprit(s) ?
And then of course how to remove temporarily ?

How you remove a plugin depends on how you installed it in the first place.
For most plugins it is as simple as running foreman-installer --no-enable-foreman-plugin-<pluginname>, see foreman-installer --full-help for a list.

The (potentially) problematic plugins I found from your list:

There might be more plugins where the latest code uses the new settings DSL but the has not been a new RPM built for them (like rh_cloud). Those three plugins are the ones I found to use the old settings style, though.
What I did was search the source code for patterns like the one used in the expire hosts plugin, which I know has not been updated.

This probably is as far as I can help you, but if you have any more questions on this topic feel free. Maybe I can help or someone else picks the topic up.

Areyus,

Thx a lot this id the right way to do,
I removed those 3 plugins and now I’m able to migrate Foreman.

As we would really need to use foreman_rh_cloud to use RH insights, how to know their is a new corrective package ?

I guess your best bet is watching the repo regularly and check if a new version is available.
At least I know if no better way, sorry :frowning: