Foreman-installer call foreman-rake db::seed and Failed to call refresh

Problem:
foreman-installer --tuning default --scenario katello
2023-07-13 15:08:18 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-07-13 15:08:21 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-07-13 15:08:21 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-07-13 15:08:28 [NOTICE] [configure] Starting system configuration.
2023-07-13 15:11:38 [NOTICE] [configure] 250 configuration steps out of 1737 steps complete.
2023-07-13 15:14:41 [NOTICE] [configure] 500 configuration steps out of 1737 steps complete.
2023-07-13 15:14:45 [NOTICE] [configure] 750 configuration steps out of 1742 steps complete.
2023-07-13 15:14:45 [NOTICE] [configure] 1000 configuration steps out of 1747 steps complete.
2023-07-13 15:14:46 [NOTICE] [configure] 1250 configuration steps out of 1748 steps complete.
2023-07-13 15:16:55 [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]
2023-07-13 15:16:55 [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]
2023-07-13 15:16:55 [NOTICE] [configure] 1500 configuration steps out of 1749 steps complete.
2023-07-13 15:17:05 [NOTICE] [configure] System configuration has finished.

Expected outcome:

/usr/sbin/foreman-rake db:seed --trace

Rubocop not loaded.
** Invoke db:seed (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute ‘description’ for Setting::GitTemplates.
/usr/share/gems/gems/activemodel-6.1.7.3/lib/active_model/attribute_assignment.rb:51:in _assign_attribute' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:21:in block in _assign_attributes’
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:13:in each' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:13:in _assign_attributes’
/usr/share/gems/gems/activemodel-6.1.7.3/lib/active_model/attribute_assignment.rb:34:in assign_attributes' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/core.rb:525:in initialize’
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/inheritance.rb:72:in new' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/inheritance.rb:72:in new’
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/persistence.rb:54:in create!' /usr/share/gems/gems/foreman_git_templates-1.0.6/app/models/setting/git_templates.rb:16:in block (2 levels) in load_defaults’
/usr/share/gems/gems/foreman_git_templates-1.0.6/app/models/setting/git_templates.rb:16:in each' /usr/share/gems/gems/foreman_git_templates-1.0.6/app/models/setting/git_templates.rb:16:in block in load_defaults’
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in block in transaction' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:319:in block in within_new_transaction’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:317:in within_new_transaction’
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in transaction' /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/transactions.rb:209:in transaction’
/usr/share/gems/gems/foreman_git_templates-1.0.6/app/models/setting/git_templates.rb:15: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.7.3/lib/active_support/callbacks.rb:427:in instance_exec' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:427:in block in make_lambda’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:603:in catch' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:603:in block in default_terminator’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:199:in block in halting' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in block in invoke_before’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in each' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in invoke_before’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:105:in run_callbacks' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/reloader.rb:88:in prepare!’
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.7.3/lib/rails/initializable.rb:32:in instance_exec’
/usr/share/gems/gems/railties-6.1.7.3/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.7.3/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.7.3/lib/rails/initializable.rb:60:in run_initializers' /usr/share/gems/gems/railties-6.1.7.3/lib/rails/application.rb:391:in initialize!’
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/railtie.rb:207:in public_send' /usr/share/gems/gems/railties-6.1.7.3/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.7.3/lib/active_support/dependencies.rb:332:in block in require' /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/dependencies.rb:299:in load_dependency’
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/dependencies.rb:332:in require' /usr/share/gems/gems/railties-6.1.7.3/lib/rails/application.rb:367:in require_environment!’
/usr/share/gems/gems/railties-6.1.7.3/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

Foreman and Proxy versions:
Foreman Version 3.6.1 © 2009-2023
Foreman and Proxy plugin versions:

Name Description Author Version
foreman-tasks The goal of this plugin is to unify the way of showing task statuses across the Foreman instance. It defines Task model for keeping the information about the tasks and Lock for assigning the tasks to resources. The locking allows dealing with preventing multiple colliding tasks to be run on the same resource. It also optionally provides Dynflow infrastructure for using it for managing the tasks. Ivan Nečas 7.2.1
foreman_acd Foreman plugin to provide application centric deployment and self service portal ATIX AG 0.9.4
foreman_ansible Ansible integration with Foreman Daniel Lobato Garcia 11.2.0
foreman_azure_rm This gem provides Azure Resource Manager as a compute resource for The Foreman Aditi Puntambekar, Shimon Shtein, and Tyler Gregory 2.2.9
foreman_bootdisk Plugin for Foreman that creates iPXE-based boot disks to provision hosts without the need for PXE infrastructure. Dominic Cleal 21.0.4
foreman_column_view Displays an additional column in the Foreman Hosts view and/or additional entries in the Host show page Greg Sutcliffe 0.4.0
foreman_discovery MaaS Discovery Plugin engine for Foreman Aditi Puntambekar, alongoldboim, Alon Goldboim, amirfefer, Amit Karsale, Amit Upadhye, Amos Benari, Avi Sharvit, Bryan Kearney, bshuster, Daniel Lobato, Daniel Lobato Garcia, Daniel Lobato GarcĂ­a, Danny Smit, David Davis, Djebran Lezzoum, Dominic Cleal, Dominik Matoulek, Eric D. Helms, Ewoud Kohl van Wijngaarden, Frank Wall, Greg Sutcliffe, ChairmanTubeAmp, Ido Kanner, imriz, Imri Zvik, Ivan Nečas, Jan Matusz, John Mazzie, Joseph Mitchell Magen, June Zhang, kgaikwad, Lars Berntzon, ldjebran, Leos Stejskal, Lukas Zapletal, LukĂĄĆĄ Zapletal, Marek Hulan, Marek HulĂĄn, MariaAga, Martin BačovskĂœ, Matt Jarvis, Michael Moll, Nick, odovzhenko, Ohad Levy, Ondrej Prazak, Ondƙej Ezr, Ori Rabin, orrabin, Partha Aji, Petr Chalupa, Phirince Philip, Rahul Bajaj, Robert Antoni Buj Gelonch, Ron Lavi, Scubafloyd, Sean O’Keeffe, Sebastian GraÌˆĂŸl, Shimon Shtein, Shlomi Zadok, Stephen Benjamin, Swapnil Abnave, Thomas Gelf, Timo Goebel, Tomas Strych, Tom Caspy, Tomer Brisker, and Yann CĂ©zard 22.0.4
foreman_expire_hosts A Foreman plugin that allows hosts to expire at a configurable date. Hosts will be shut down and automatically deleted after a grace period. Nagarjuna Rachaneni and Timo Goebel 8.1.0
foreman_hooks Plugin engine for Foreman that enables running custom hook scripts on Foreman events Dominic Cleal 0.3.17
foreman_kubevirt Provision and manage Kubevirt Virtual Machines from Foreman. Moti Asayag 0.1.9
foreman_leapp A Foreman plugin to support inplace RHEL upgrades with Leapp utility. Foreman Leapp team 0.1.13
foreman_openscap Foreman plug-in for managing security compliance reports slukasik@redhat.com 6.0.0
foreman_remote_execution A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality. Foreman Remote Execution team 9.1.0
foreman_setup Plugin for Foreman that helps set up provisioning. Dominic Cleal 8.0.1
foreman_snapshot_management Foreman-plugin to manage snapshots in a virtual-hardware environments. ATIX AG 2.0.3
foreman_statistics Statistics and Trends for Foreman gives users overview of their infrastructure. Ondrej Ezr 2.0.1
foreman_templates Engine to synchronise provisioning templates from GitHub Greg Sutcliffe 9.3.0
foreman_webhooks Plugin for Foreman that allows to configure Webhooks. Timo Goebel 3.0.5
katello Katello adds Content and Subscription Management to Foreman. For this it relies on Candlepin and Pulp. N/A 4.8.1
Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

It is not in your plugin list, but from the logs you provided it looks like you have foreman_git_templates installed in your Foreman. There have been several changes to Foreman settings in the past few releases which require plugins to be updated.
This specific plugin has not received updates since 2021, so it won’t have those changes.
I would suggest trying to get rid of that plugin.

1 Like

Removing this plugin do not fixing.

# foreman-installer --tuning default  --scenario katello
2023-07-13 19:30:09 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-07-13 19:30:12 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-07-13 19:30:12 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-07-13 19:30:21 [NOTICE] [configure] Starting system configuration.
2023-07-13 19:33:32 [NOTICE] [configure] 250 configuration steps out of 1737 steps complete.
2023-07-13 19:36:34 [NOTICE] [configure] 500 configuration steps out of 1737 steps complete.
2023-07-13 19:36:38 [NOTICE] [configure] 750 configuration steps out of 1742 steps complete.
2023-07-13 19:36:39 [NOTICE] [configure] 1000 configuration steps out of 1747 steps complete.
2023-07-13 19:36:39 [NOTICE] [configure] 1250 configuration steps out of 1748 steps complete.
2023-07-13 19:38:48 [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]
2023-07-13 19:38:48 [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]
2023-07-13 19:38:48 [NOTICE] [configure] 1500 configuration steps out of 1749 steps complete.
2023-07-13 19:38:58 [NOTICE] [configure] System configuration has finished.

Can you re-run the db:seed command to see if the error is still the same? Maybe another plugin is outdated, too.

1 Like
# /usr/sbin/foreman-rake db:seed --trace
Rubocop not loaded.
** Invoke db:seed (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'description' for Setting::Rescue.
/usr/share/gems/gems/activemodel-6.1.7.3/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:13:in `each'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
/usr/share/gems/gems/activemodel-6.1.7.3/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/core.rb:525:in `initialize'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/persistence.rb:54:in `create!'
/usr/share/gems/gems/foreman_rescue-3.0.0/app/models/setting/rescue.rb:27:in `block (2 levels) in load_defaults'
/usr/share/gems/gems/foreman_rescue-3.0.0/app/models/setting/rescue.rb:27:in `each'
/usr/share/gems/gems/foreman_rescue-3.0.0/app/models/setting/rescue.rb:27:in `block in load_defaults'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/transactions.rb:209:in `transaction'
/usr/share/gems/gems/foreman_rescue-3.0.0/app/models/setting/rescue.rb:26: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.7.3/lib/active_support/callbacks.rb:427:in `instance_exec'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:603:in `catch'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:603:in `block in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:199:in `block in halting'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in `block in invoke_before'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in `each'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:512:in `invoke_before'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/callbacks.rb:105:in `run_callbacks'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/reloader.rb:88:in `prepare!'
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/initializable.rb:32:in `instance_exec'
/usr/share/gems/gems/railties-6.1.7.3/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.7.3/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.7.3/lib/rails/initializable.rb:60:in `run_initializers'
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/application.rb:391:in `initialize!'
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/railtie.rb:207:in `public_send'
/usr/share/gems/gems/railties-6.1.7.3/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.7.3/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/dependencies.rb:332:in `require'
/usr/share/gems/gems/railties-6.1.7.3/lib/rails/application.rb:367:in `require_environment!'
/usr/share/gems/gems/railties-6.1.7.3/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 `<main>'
Tasks: TOP => db:seed => db:load_config => environment

As expected, there is another plugin installed that’s outdated and still causing this error. foreman-rescue, just like foreman_git_templates, has not been updated since 2021: GitHub - dm-drogeriemarkt/foreman_rescue: A Foreman plug-in that allows PXE-booting into a rescue system

1 Like

I remove this plugin.

Nice, It work

I suggest to isolate plugins when it crash

Thank you @areyus

1 Like