Foreman 3.4 stable - "unknown attribute 'description' for Setting::ForemanHostExtraValidator"

Hi, after updating to Foreman 3.4 stable i get the following issue at foreman-rake db:seed and service start. Would be good if i could get help.

Problem:

Info: Foreman::Rake[db:seed]: Scheduling refresh of Exec[foreman-rake-db:seed]
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: rake aborted!
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: ActiveModel::UnknownAttributeError: unknown attribute 'description' for Setting::ForemanHostExtraValidator.
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in `initialize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:54:in `create!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block (2 levels) in load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block in load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /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'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in `transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:7:in `load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/services/setting_registry.rb:114:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/services/setting_registry.rb:114:in `load'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/foreman.rb:37:in `block in <top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `instance_exec'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `block in make_lambda'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `catch'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `block in default_terminator'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in `block in halting'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `block in invoke_before'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `invoke_before'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in `run_callbacks'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in `prepare!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `instance_exec'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in `block in run_initializers'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in `run_initializers'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:391:in `initialize!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:367:in `require_environment!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:533:in `block in run_tasks_blocks'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: Tasks: TOP => db:seed => db:load_config => environment
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: (See full trace by running task with --trace)
Error: /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]
Error: /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]
Info: Class[Foreman::Database]: Unscheduling all events on Class[Foreman::Database]
Notice: /Stage[main]/Apache::Service/Service[httpd]: Dependency Exec[foreman-rake-db:seed] has failures: true

additionally if i try to start foreman-service i get the following issue displayed:

Sep 12 10:13:34  systemd[1]: Starting Foreman...
Sep 12 10:13:40  foreman[660162]: => Booting Puma
Sep 12 10:13:40  foreman[660162]: => Rails 6.1.6.1 application starting in production
Sep 12 10:13:40  foreman[660162]: => Run `bin/rails server --help` for more startup options
Sep 12 10:13:44  foreman[660162]: Exiting
Sep 12 10:13:44  abrt[660162]: detected unhandled Ruby exception in '/usr/share/foreman/bin/rails'
Sep 12 10:13:44  foreman[660162]: /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute': unknown attribute 'description' for Setting::ForemanHostExtr>
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in `initialize'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:54:in `create!'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block (2 levels) in load_defaults'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block in load_defaults'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
Sep 12 10:13:44  foreman[660162]:         from /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'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in `transaction'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:7:in `load_defaults'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/app/services/setting_registry.rb:114:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/app/services/setting_registry.rb:114:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/app/services/setting_registry.rb:114:in `load'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/config/initializers/foreman.rb:37:in `block in <top (required)>'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `instance_exec'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `block in make_lambda'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `catch'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `block in default_terminator'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in `block in halting'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `block in invoke_before'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `invoke_before'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in `run_callbacks'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in `prepare!'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `instance_exec'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `run'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in `block in run_initializers'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:347:in `each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:347:in `call'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:226:in `tsort_each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/ruby/tsort.rb:205:in `tsort_each'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in `run_initializers'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:391:in `initialize!'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:146:in `require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Sep 12 10:13:44  foreman[660162]:         from config.ru:5:in `block in <main>'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:312:in `block in start'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:379:in `handle_profiling'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/rack-2.2.4/lib/rack/server.rb:311:in `start'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:39:in `start'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:144:in `block in perform'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `tap'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `perform'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/command/base.rb:69:in `perform'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/command.rb:48:in `invoke'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/gems/gems/railties-6.1.6.1/lib/rails/commands.rb:18:in `<top (required)>'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:158:in `rescue in require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:147:in `require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/bin/rails:9:in `<main>'
Sep 12 10:13:44  foreman[660162]: /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- rails/commands (LoadError)
Sep 12 10:13:44  foreman[660162]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
Sep 12 10:13:44  foreman[660162]:         from /usr/share/foreman/bin/rails:9:in `<main>'
Sep 12 10:13:44  systemd[1]: foreman.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 10:13:44  systemd[1]: foreman.service: Failed with result 'exit-code'.

Expected outcome:

Outcome should be that authentication is working again.

Foreman and Proxy versions:

  • foreman-libvirt-3.4.0-1.el8.noarch
  • rubygem-foreman_column_view-0.4.0-6.fm3_3.el8.noarch
  • rubygem-foreman_monitoring-2.1.0-4.fm3_3.el8.noarch
  • foreman-3.4.0-1.el8.noarch
  • rubygem-hammer_cli_foreman-3.4.0-1.el8.noarch
  • foreman-selinux-3.4.0-1.el8.noarch
  • rubygem-foreman_expire_hosts-7.0.4-4.fm3_3.el8.noarch
  • rubygem-foreman_templates-9.3.0-1.fm3_3.el8.noarch
  • rubygem-foreman_host_extra_validator-0.1.0-5.fm3_3.el8.noarch
  • rubygem-foreman-tasks-7.0.0-1.fm3_4.el8.noarch
  • foreman-postgresql-3.4.0-1.el8.noarch
  • rubygem-hammer_cli_foreman_bootdisk-0.3.0-2.el8.noarch
  • rubygem-foreman_discovery-21.0.1-2.fm3_3.el8.noarch
  • rubygem-foreman_host_reports-1.0.2-3.fm3_3.el8.noarch
  • rubygem-foreman_puppet-4.0.1-1.fm3_4.el8.noarch
  • foreman-service-3.4.0-1.el8.noarch
  • rubygem-foreman_dhcp_browser-0.0.8-6.fm3_3.el8.noarch
  • rubygem-foreman_openscap-5.2.2-2.fm3_3.el8.noarch
  • foreman-proxy-3.4.0-1.el8.noarch
  • rubygem-foreman_hooks-0.3.17-3.fm3_3.el8.noarch
  • rubygem-puppetdb_foreman-5.0.0-4.fm3_3.el8.noarch
  • foreman-openstack-3.4.0-1.el8.noarch
  • rubygem-foreman_bootdisk-19.0.5-2.fm3_3.el8.noarch
  • rubygem-foreman_memcache-0.1.1-5.fm3_3.el8.noarch
  • foreman-debug-3.4.0-1.el8.noarch

Distribution and version:

CentOS Stream release 8

@ekohl / @lzap / @Marek_Hulan,

maybe you can help me with that issue ? :slight_smile:

I’m experiencing similar issue after upgrade to Foreman 3.4.0.

Problem

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

The foreman service fails to start after the upgrade.

Sep 12 08:50:19 foreman foreman[754586]: => Booting Puma
Sep 12 08:50:19 foreman foreman[754586]: => Rails 6.1.6.1 application starting in production
Sep 12 08:50:19 foreman foreman[754586]: => Run `bin/rails server --help` for more startup options
Sep 12 08:50:21 foreman foreman[754586]: Exiting
Sep 12 08:50:21 foreman foreman[754586]: /usr/share/foreman/vendor/ruby/2.7.0/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute': unknown attribute 'description' for Setting::Puppetdb. (ActiveModel::UnknownAttributeError)
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in `initialize'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:54:in `create!'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0.0/app/models/setting/puppetdb.rb:40:in `block (2 levels) in load_defaults'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0.0/app/models/setting/puppetdb.rb:40:in `each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0.0/app/models/setting/puppetdb.rb:40:in `block in load_defaults'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in `transaction'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/puppetdb_foreman-5.0.0/app/models/setting/puppetdb.rb:39:in `load_defaults'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/app/services/setting_registry.rb:114:in `each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/app/services/setting_registry.rb:114:in `load'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/config/initializers/foreman.rb:37:in `block in <top (required)>'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `instance_exec'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `block in make_lambda'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `catch'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `block in default_terminator'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in `block in halting'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `block in invoke_before'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `invoke_before'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in `run_callbacks'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in `prepare!'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `instance_exec'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `run'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in `block in run_initializers'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:347:in `each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:347:in `call'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in `run_initializers'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/application.rb:391:in `initialize!'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Sep 12 08:50:21 foreman foreman[754586]: #011from config.ru:5:in `block in <main>'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:312:in `block in start'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:379:in `handle_profiling'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.4/lib/rack/server.rb:311:in `start'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:39:in `start'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:144:in `block in perform'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `tap'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands/server/server_command.rb:135:in `perform'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/command/base.rb:69:in `perform'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/command.rb:48:in `invoke'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands.rb:18:in `<top (required)>'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Sep 12 08:50:21 foreman foreman[754586]: #011from /usr/share/foreman/bin/rails:9:in `<main>'

Expected outcome:
The commands foreman-rake db:seed and foreman-rake db:sessions:clear should exit without error. Foreman service should start without error.

Foreman and Proxy versions:
foreman 3.4.0-1
foreman-cli 3.4.0-1
foreman-debug 3.4.0-1
foreman-dynflow-sidekiq 3.4.0-1
foreman-installer 3.4.0-1
foreman-postgresql 3.4.0-1
foreman-proxy 3.4.0-1
foreman-service 3.4.0-1
foreman-telemetry 3.4.0-1
ruby-foreman-memcache 0.1.1-2
ruby-foreman-puppet 4.0.1-2
ruby-foreman-templates 9.3.0-2
ruby-hammer-cli-foreman 3.4.0-1
ruby-hammer-cli-foreman-puppet 0.0.6-1
ruby-hammer-cli-foreman-templates 0.2.0-2
ruby-puppetdb-foreman 5.0.0-4

Distribution and version:
Debian bullseye 11.5

Facing same issue.

ActiveModel::UnknownAttributeError: unknown attribute ‘description’ for Setting::Puppetdb

Upgrading from 3.3.0 to 3.4.0 on AlmaLinux 8.6.

This looks like it comes from the settings changes.

For PuppetDB I did start with an update:

But I haven’t been able to finish it due to a lack of time.

Hi @ekohl,

thx for the quick reply, but in which relation is that puppetDB-package issue with my initial problem description :slight_smile:

i guess the issues of @Alexandre_Barth and @bobbytables should be handled in a separate ticket. Or am i wrong ? :slight_smile:

@cooler22 they are both affected by the same root cause: changes in Foreman core with settings and plugins need to be updated accordingly.

@ekohl,

thanks for clarification. Good that i only destroyed my development system and not the productive.

could you please inform the audience here, if the “packages / plugins” got an update ?
thx :slight_smile:

The two plugins listed here are less active in development (if not even unmaintained). They need a same treatment, stop storing default value of settings to the database. The only solution that comes to my mind until we find active maintainers is to remove the plugin from user setups. The foreman_host_extra_validator does not seem a critical functionality to me, puppetdb_foreman could be problematic for some users.

(sorry, this is just a summary of the situation, not a real solution)

@Marek_Hulan,

yep, but then the users need a hotfix or some advice how this could be solved so that the application is working again :slight_smile:

i don´t want to be rude, but it´s not so cool, if you update a stable release and then the core-packages or plugin-packages are not supported any more and there is no software relation that disables then this paritular plugin or so :slight_smile:

I see the same with the expire host gem

rubygem-foreman_expire_hosts-7.0.4-4.fm3_3.el8.noarch

rake aborted!
ActiveModel::UnknownAttributeError: unknown attribute ‘description’ for Setting::ExpireHosts.
/usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in _assign_attribute' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in block in _assign_attributes’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in each' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in _assign_attributes’
/usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in assign_attributes' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in initialize’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in new' /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in new’
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:54:in create!' /usr/share/gems/gems/foreman_expire_hosts-7.0.4/app/models/setting/expire_hosts.rb:18:in block (2 levels) in load_defaults’
/usr/share/gems/gems/foreman_expire_hosts-7.0.4/app/models/setting/expire_hosts.rb:18:in each' /usr/share/gems/gems/foreman_expire_hosts-7.0.4/app/models/setting/expire_hosts.rb:18: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_expire_hosts-7.0.4/app/models/setting/expire_hosts.rb:10: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/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/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/exe/rake:27:in `<top (required)>’
Tasks: TOP => db:seed => db:load_config => environment
(See full trace by running task with --trace)

1 Like

I can totally understand that. We should have formally marked such plugins as “best effort” quality before. I guess a very dirty workaround could be to edit app/models/settings.rb and add a new line after the class Setting < ApplicationRecord adding the attr_accessor :description.

The whole example would be

require 'resolv'

class Setting < ApplicationRecord
  attr_accessor :description
...

Don’t forget to service foreman restart after changing the code if you dare to test that out.

But this is in no way the proper fix.

hi @Marek_Hulan,
thx for the “dirty” workaround. I agree a proper hotfix would be better :slight_smile:

@Marek_Hulan,

i tried the “dirty hotfix” - the ‘description’ issue is gone, but for that the next issue appeared. I would suggest i would be feasible that you raise the priority of that issue, because seems that several Users are affected with different operatingsystems.

Info: Foreman::Rake[db:seed]: Scheduling refresh of Exec[foreman-rake-db:seed]
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: rake aborted!
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: ActiveModel::UnknownAttributeError: unknown attribute 'default' for Setting::ForemanHostExtraValidator.
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in `initialize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:72:in `new'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:54:in `create!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block (2 levels) in load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:10:in `block in load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /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'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:209:in `transaction'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/foreman_host_extra_validator-0.1.0/app/models/setting/foreman_host_extra_validator.rb:7:in `load_defaults'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/services/setting_registry.rb:114:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/services/setting_registry.rb:114:in `load'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/foreman.rb:37:in `block in <top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `instance_exec'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:427:in `block in make_lambda'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `catch'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:603:in `block in default_terminator'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:199:in `block in halting'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `block in invoke_before'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `each'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:512:in `invoke_before'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:105:in `run_callbacks'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/reloader.rb:88:in `prepare!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `instance_exec'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in `run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in `block in run_initializers'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in `run_initializers'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:391:in `initialize!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/config/environment.rb:5:in `<top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `block in require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:299:in `load_dependency'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/dependencies.rb:332:in `require'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:367:in `require_environment!'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/railties-6.1.6.1/lib/rails/application.rb:533:in `block in run_tasks_blocks'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: Tasks: TOP => db:seed => db:load_config => environment
Notice: /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: (See full trace by running task with --trace)
Error: /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]
Error: /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]

We’re facing a huge issue here … it’s not workiong for puppetdb plugin, and i’ve just encountered same problem with monitoring plugin … upgrading to 3.4 is not an option in this situation.

from my research affected plugins:

  • rubygem-foreman_host_extra_validator
  • rubygem-foreman_monitoring
  • rubygem-puppetdb_foreman
  • rubygem-foreman_expire_hosts

after they are deleted and db:migrate / db:seed was done the foreman-service starts, but you can´t access the web-UI, because Apache config also not working even more.

So from my perspective “Foreman 3.4” is not working pretty well …

Could you try adding :default to the list of attributes?

 attr_accessor :description, :default

TBH I have no idea who maintains the foreman_host_extra_validator plugin at this point, but I see the last commit 3 years ago, most likely it’s abandoned.

@Marek_Hulan,

i tried this. then appeared the following issue:

ActiveModel::UnknownAttributeError: unknown attribute 'full_name' for Setting::ForemanHostExtraValidator.
/usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'

then i added “full_name” to the line of code

and this appeared:

ActiveModel::UnknownAttributeError: unknown attribute 'encrypted' for Setting::ForemanHostExtraValidator.
/usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:51:in `_assign_attribute'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:21:in `block in _assign_attributes'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/attribute_assignment.rb:13:in `_assign_attributes'
/usr/share/gems/gems/activemodel-6.1.6.1/lib/active_model/attribute_assignment.rb:34:in `assign_attributes'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:518:in `initialize'

if i add then also “encrypted” this appears:

ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/validations.rb:80:in `raise_validation_error'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/validations.rb:53:in `save!'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/transactions.rb:302:in `block in save!'

if i delete the plugin “ForemanHostExtraValidator” then the issue in foreman-rake db:seed appears for the “monitoring”-plugin, deleting that the same issue appeared

→ attr_accessor :description, :default, :full_name, :encrypted

So this is not working. You have to update for foreman 3.4 your plugins or fix the issues. The Workarounds running in deeper problems and it is not feasible to delete all 4 plugins, because then other problems with the apache apearing.

I don´t want to be rude, but this version shouldn´t have been released. It seems rather untested and makes more problems then solve some. Sorry for my direct words :frowning:

I totally understand your frustration and I’m sorry for the situation you’re at. These plugins are not considered part of the Foreman core project and are not being tested together. It is up to plugin maintainers to keep plugins up to date, sadly the plugins in subject seems rather unmaintained. It’s not in core project maintainers capacity to test and fix each and every plugin with the release, there’s roughly a hundred of them. We should have better set the expectations for the plugins.

Anyway, at this point, it’s really best effort of anyone from the community to provide a fix and release a new version of all of these plugins. I’ll be happy to help if anyone lacks any permissions. Also feel free to let me know if you plan to work on it for better tracking.

  • rubygem-foreman_host_extra_validator - I opened the PR
  • rubygem-foreman_monitoring - I think this one is more actively maintained, if no one fixes that, I can take a look at it some other Friday evening :slight_smile:
  • rubygem-puppetdb_foreman - initial work has been started at this PR so I’m not touching this
  • rubygem-foreman_expire_hosts - I opened the PR

Testing of the PRs appreciated. If they will work, I can prepare the releases. I may need to be added as the rubygems owner though.

1 Like