Failed to call refresh: '/usr/sbin/foreman-rake db:seed' returned 1 instead of one of [0]

Problem:

#foreman-installer
2023-02-14 14:25:47 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-02-14 14:25:49 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-02-14 14:25:49 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-02-14 14:25:53 [NOTICE] [configure] Starting system configuration.
2023-02-14 14:26:00 [NOTICE] [configure] 250 configuration steps out of 1360 steps complete.
2023-02-14 14:26:01 [NOTICE] [configure] 500 configuration steps out of 1362 steps complete.
2023-02-14 14:26:01 [NOTICE] [configure] 750 configuration steps out of 1368 steps complete.
2023-02-14 14:26:51 [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-02-14 14:26:51 [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-02-14 14:26:51 [NOTICE] [configure] 1000 configuration steps out of 1372 steps complete.
2023-02-14 14:27:04 [NOTICE] [configure] 1250 configuration steps out of 1372 steps complete.
2023-02-14 14:27:06 [NOTICE] [configure] System configuration has finished.

Tried running foreman-rake db:seed from command line:

#/usr/sbin/foreman-rake db:seed
Rubocop not loaded.
rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'description' for Setting::GitTemplates.
/usr/share/gems/gems/activemodel-6.1.7/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:13:in `each'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
/usr/share/gems/gems/activemodel-6.1.7/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/core.rb:518:in `initialize'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7/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/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/usr/share/gems/gems/activerecord-6.1.7/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/lib/active_support/callbacks.rb:427:in `instance_exec'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `block in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `block in halting'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `each'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in `prepare!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
/usr/share/gems/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'
/usr/share/gems/gems/railties-6.1.7/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/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/share/gems/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:391:in `initialize!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send'
/usr/share/gems/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:367:in `require_environment!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:seed => db:load_config => environment
(See full trace by running task with --trace)

Tried installed ‘rubocop’:

#dnf install ruby-devel

#gem install rubocop
Building native extensions. This could take a while...
Successfully installed json-2.6.3
Fetching parallel-1.22.1.gem
Successfully installed parallel-1.22.1
Fetching ast-2.4.2.gem
Successfully installed ast-2.4.2
Fetching parser-3.2.1.0.gem
Successfully installed parser-3.2.1.0
Fetching rainbow-3.1.1.gem
Successfully installed rainbow-3.1.1
Fetching regexp_parser-2.7.0.gem
Successfully installed regexp_parser-2.7.0
Fetching rexml-3.2.5.gem
Successfully installed rexml-3.2.5
Fetching rubocop-ast-1.26.0.gem
Successfully installed rubocop-ast-1.26.0
Fetching ruby-progressbar-1.11.0.gem
Successfully installed ruby-progressbar-1.11.0
Fetching unicode-display_width-2.4.2.gem
Successfully installed unicode-display_width-2.4.2
Fetching rubocop-1.45.1.gem
Successfully installed rubocop-1.45.1
Parsing documentation for json-2.6.3
Installing ri documentation for json-2.6.3
Parsing documentation for parallel-1.22.1
Installing ri documentation for parallel-1.22.1
Parsing documentation for ast-2.4.2
Installing ri documentation for ast-2.4.2
Parsing documentation for parser-3.2.1.0
Installing ri documentation for parser-3.2.1.0
Parsing documentation for rainbow-3.1.1
Installing ri documentation for rainbow-3.1.1
Parsing documentation for regexp_parser-2.7.0
Installing ri documentation for regexp_parser-2.7.0
Parsing documentation for rexml-3.2.5
Installing ri documentation for rexml-3.2.5
Parsing documentation for rubocop-ast-1.26.0
Installing ri documentation for rubocop-ast-1.26.0
Parsing documentation for ruby-progressbar-1.11.0
Installing ri documentation for ruby-progressbar-1.11.0
Parsing documentation for unicode-display_width-2.4.2
Installing ri documentation for unicode-display_width-2.4.2
Parsing documentation for rubocop-1.45.1
Installing ri documentation for rubocop-1.45.1
Done installing documentation for json, parallel, ast, parser, rainbow, regexp_parser, rexml, rubocop-ast, ruby-progressbar, unicode-display_width, rubocop after 40 seconds
11 gems installed

#/usr/sbin/foreman-rake db:seed
rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute 'description' for Setting::GitTemplates.
/usr/share/gems/gems/activemodel-6.1.7/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:13:in `each'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
/usr/share/gems/gems/activemodel-6.1.7/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/core.rb:518:in `initialize'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/inheritance.rb:72:in `new'
/usr/share/gems/gems/activerecord-6.1.7/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/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/share/gems/gems/activerecord-6.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/usr/share/gems/gems/activerecord-6.1.7/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/lib/active_support/callbacks.rb:427:in `instance_exec'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `catch'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in `block in default_terminator'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in `block in halting'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `block in invoke_before'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `each'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in `invoke_before'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in `run_callbacks'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in `prepare!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
/usr/share/gems/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'
/usr/share/gems/gems/railties-6.1.7/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/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/share/gems/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:391:in `initialize!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `public_send'
/usr/share/gems/gems/railties-6.1.7/lib/rails/railtie.rb:207:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/gems/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:367:in `require_environment!'
/usr/share/gems/gems/railties-6.1.7/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:seed => db:load_config => environment
(See full trace by running task with --trace)

Expected outcome:

foreman-installer successfully completes.

Foreman and Proxy versions:

Tried Foreman versions: 3.2 → 3.5

Foreman and Proxy plugin versions:

I didn’t choose any additional plugin other than the default quickstart ones.

Distribution and version:

Redhat Enterprise Linux 8

#cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

Other relevant data: