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

And here is the release prep for puppetdb: Release 6.0.1 by evgeni · Pull Request #79 · theforeman/puppetdb_foreman · GitHub

I’m still facing an issue, related to puppetdb_foreman plugin, i can’t go anymore in Administer->Settings with the following error :

Backtrace for 'undefined method `call' for {"none"=>"None", "create"=>"Create Host Object"}:Hash' error (ActionView::Template::Error): undefined method `call' for {"none"=>"None", "create"=>"Create Host Object"}:Hash

That’s monitoring, not puppetdb tho :slight_smile:

@Alexandre_Barth can you try the following please?

diff --git lib/foreman_monitoring/engine.rb lib/foreman_monitoring/engine.rb
index eb952f9..9502ea2 100644
--- lib/foreman_monitoring/engine.rb
+++ lib/foreman_monitoring/engine.rb
@@ -34,13 +34,13 @@ module ForemanMonitoring
                     description: N_('What action should be taken when a host is created'),
                     default: 'create',
                     full_name: N_('Host Create Action'),
-                    collection: ::Monitoring::CREATE_ACTIONS)
+                    collection: proc { ::Monitoring::CREATE_ACTIONS })
             setting('monitoring_delete_action',
                     type: :string,
                     description: N_('What action should be taken when a host is deleted'),
                     default: 'delete',
                     full_name: N_('Host Delete Action'),
-                    collection: ::Monitoring::DELETE_ACTIONS)
+                    collection: proc { ::Monitoring::DELETE_ACTIONS })
           end
         end
 

While you where busy fixing some of the failing plugins, I removed expire_hosts plugin from my setup.
Once you provided version expire_hosts 8.0.0 i ran the foreman-installer --enable-foreman-plugin-expire-hosts again which completed successfully.

But now it failing in the GUI

when creating a new host

022-10-27T12:42:23 [I|app|40dd77b1] Started GET "/hosts/new" for XXX.XXX.XXX.XXX at 2022-10-27 12:42:23 +0200
2022-10-27T12:42:23 [I|app|40dd77b1] Processing by HostsController#new as HTML
2022-10-27T12:42:23 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'add_execution_interface_js', you should change its definition to include:
 40dd77b1 |  :original => '0a2ee13f9e5015cf251e632e8bfed6b826128792' 
2022-10-27T12:42:23 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'ansible_roles_tab', you should change its definition to include:
 40dd77b1 |  :original => '8c63c5282ee199068bfd65475e13066ee981089a' 
2022-10-27T12:42:23 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'ansible_roles_tab_content', you should change its definition to include:
 40dd77b1 |  :original => '0a2ee13f9e5015cf251e632e8bfed6b826128792' 
2022-10-27T12:42:23 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'host_form_expired_on_field', you should change its definition to include:
 40dd77b1 |  :original => '342319b985028e55b9df0e7fd353cb582893e9cb' 
2022-10-27T12:42:24 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'add_execution_interface', you should change its definition to include:
 40dd77b1 |  :original => 'dbe1da973bfb251a74b994e7ae11bc8d11502c97' 
2022-10-27T12:42:24 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'hosts_select_media_type', you should change its definition to include:
 40dd77b1 |  :original => '2d9ab0e830d51c8cd4271ea3f3ade95cfbf3de75' 
2022-10-27T12:42:24 [I|app|40dd77b1] Deface: [WARNING] No :original defined for 'hosts_select_synced_content', you should change its definition to include:
 40dd77b1 |  :original => '2d9ab0e830d51c8cd4271ea3f3ade95cfbf3de75' 
2022-10-27T12:42:24 [I|app|40dd77b1]   Rendered hosts/new.html.erb within layouts/application (Duration: 562.8ms | Allocations: 186593)
2022-10-27T12:42:24 [I|app|40dd77b1]   Rendered layout layouts/application.html.erb (Duration: 563.0ms | Allocations: 186649)
2022-10-27T12:42:24 [W|app|40dd77b1] undefined method `datepicker_f' for #<ActionView::Base:0x00000000051810>
 40dd77b1 | Did you mean?  datetime_f
2022-10-27T12:42:24 [I|app|40dd77b1] Backtrace for 'undefined method `datepicker_f' for #<ActionView::Base:0x00000000051810>
 40dd77b1 | Did you mean?  datetime_f' error (ActionView::Template::Error): undefined method `datepicker_f' for #<ActionView::Base:0x00000000051810>
 40dd77b1 | Did you mean?  datetime_f
 40dd77b1 | /usr/share/foreman/app/views/hosts/_form.html.erb:154:in `block (2 levels) in _fa5b0ef70477fc680fde1dc1991d3e97'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/form_helper.rb:450:in `form_for'
 40dd77b1 | /usr/share/foreman/app/helpers/form_helper.rb:287:in `form_for'
 40dd77b1 | /usr/share/foreman/app/views/hosts/_form.html.erb:7:in `block in _fa5b0ef70477fc680fde1dc1991d3e97'
 40dd77b1 | /usr/share/foreman/app/models/taxonomy.rb:80:in `block (2 levels) in as_taxonomy'
 40dd77b1 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:195:in `as_location'
 40dd77b1 | /usr/share/foreman/app/models/taxonomy.rb:79:in `block in as_taxonomy'
 40dd77b1 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:154:in `as_org'
 40dd77b1 | /usr/share/foreman/app/models/taxonomy.rb:78:in `as_taxonomy'
 40dd77b1 | /usr/share/foreman/app/views/hosts/_form.html.erb:6:in `_fa5b0ef70477fc680fde1dc1991d3e97'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:247:in `public_send'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:247:in `_run'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:154:in `block in render'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:205:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:345:in `instrument_render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:152:in `render'
 40dd77b1 | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/partial_renderer.rb:271:in `render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/renderer.rb:22:in `render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/rendering_helper.rb:38:in `block in render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:273:in `in_rendering_context'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/helpers/rendering_helper.rb:34:in `render'
 40dd77b1 | /usr/share/foreman/app/views/hosts/new.html.erb:2:in `_d9d532e9384815bec35e29b855236ae4'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:247:in `public_send'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:247:in `_run'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:154:in `block in render'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:205:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:345:in `instrument_render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template.rb:152:in `render'
 40dd77b1 | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:71:in `block in render_with_layout'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:70:in `render_with_layout'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/template_renderer.rb:11:in `render'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:117:in `block in _render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/base.rb:273:in `in_rendering_context'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:116:in `_render_template'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:103:in `render_to_body'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/rendering.rb:25:in `render'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rendering.rb:36:in `render'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 40dd77b1 | /usr/share/ruby/benchmark.rb:308:in `realtime'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 40dd77b1 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:45:in `render'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:228:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 40dd77b1 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 40dd77b1 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 40dd77b1 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 40dd77b1 | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 40dd77b1 | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:137:in `run_callbacks'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 40dd77b1 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:165:in `process'
 40dd77b1 | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:39:in `process'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:190:in `dispatch'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:254:in `dispatch'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `each'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `serve'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:842:in `call'
 40dd77b1 | /usr/share/gems/gems/katello-4.6.0/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 40dd77b1 | /usr/share/gems/gems/katello-4.6.0/lib/katello/middleware/event_daemon.rb:10:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/apipie-dsl-2.5.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 40dd77b1 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/static_dispatcher.rb:66:in `call'
 40dd77b1 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/extractor/recorder.rb:137:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 40dd77b1 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 40dd77b1 | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/etag.rb:27:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/conditional_get.rb:27:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/head.rb:12:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 40dd77b1 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:266:in `context'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:260:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/cookies.rb:689:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 40dd77b1 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:37:in `call_app'
 40dd77b1 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:28:in `call'
 40dd77b1 | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 40dd77b1 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 40dd77b1 | /usr/share/gems/gems/katello-4.6.0/lib/katello/prevent_json_parsing.rb:12:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/runtime.rb:22:in `call'
 40dd77b1 | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/sendfile.rb:110:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 40dd77b1 | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 40dd77b1 | /usr/share/gems/gems/secure_headers-6.3.4/lib/secure_headers/middleware.rb:11:in `call'
 40dd77b1 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/engine.rb:539:in `call'
 40dd77b1 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
 40dd77b1 | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:74:in `block in call'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `each'
 40dd77b1 | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `call'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/configuration.rb:252:in `call'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:77:in `block in handle_request'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:340:in `with_force_shutdown'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:76:in `handle_request'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/server.rb:441:in `process_client'
 40dd77b1 | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:147:in `block in spawn_thread'
 40dd77b1 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2022-10-27T12:42:24 [I|app|40dd77b1]   Rendered common/500.html.erb within layouts/application (Duration: 7.5ms | Allocations: 7143)
2022-10-27T12:42:24 [I|app|40dd77b1]   Rendered layouts/base.html.erb (Duration: 8.3ms | Allocations: 9820)
2022-10-27T12:42:24 [I|app|40dd77b1]   Rendered layout layouts/application.html.erb (Duration: 25.2ms | Allocations: 29453)
2022-10-27T12:42:24 [I|app|40dd77b1] Completed 500 Internal Server Error in 643ms (Views: 25.8ms | ActiveRecord: 25.4ms | Allocations: 220568)

Foreman version: 3.4.0
Plugins: 
 - foreman-tasks 7.0.0
 - foreman_ansible 9.0.1
 - foreman_bootdisk 21.0.0
 - foreman_expire_hosts 8.0.0
 - foreman_leapp 0.1.10
 - foreman_openscap 5.2.2
 - foreman_puppet 4.0.1
 - foreman_remote_execution 8.0.0
 - foreman_snapshot_management 2.0.1
 - foreman_virt_who_configure 0.5.9
 - foreman_webhooks 3.0.5
 - katello 4.6.0

when selecting a existing host

2022-10-28T09:27:33 [I|app|59b582dd] Started GET "/hosts/cindy-gallante" for XXX.XXX.XXX.XXX at 2022-10-28 09:27:33 +0200
2022-10-28T09:27:33 [I|app|59b582dd] Processing by HostsController#show as HTML
2022-10-28T09:27:33 [I|app|59b582dd]   Parameters: {"id"=>"cindy-gallante"}
2022-10-28T09:27:33 [I|app|59b582dd] Deface: [WARNING] No :original defined for 'host_expiry_waring_in_show', you should change its definition to include:
 59b582dd |  :original => '04eff2647b0286f740745ea4dac125f4fae83b15' 
2022-10-28T09:27:33 [W|app|59b582dd] Missing partial /hosts/_expired_message.html.erb with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rabl]}. Searched in:
 59b582dd |   * "/usr/share/foreman/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_expire_hosts-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_openscap-5.2.2/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_webhooks-3.0.5/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_virt_who_configure-0.5.9/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_snapshot_management-2.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_puppet-4.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_leapp-0.1.10/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_ansible-9.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_bootdisk-21.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/engines/bastion/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_remote_execution-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman-tasks-7.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-dsl-2.5.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-rails-0.5.20/app/views"
 59b582dd | 
2022-10-28T09:27:33 [I|app|59b582dd] Backtrace for 'Missing partial /hosts/_expired_message.html.erb with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rabl]}. Searched in:
 59b582dd |   * "/usr/share/foreman/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_expire_hosts-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_openscap-5.2.2/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_webhooks-3.0.5/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_virt_who_configure-0.5.9/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_snapshot_management-2.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_puppet-4.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_leapp-0.1.10/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_ansible-9.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_bootdisk-21.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/engines/bastion/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_remote_execution-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman-tasks-7.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-dsl-2.5.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-rails-0.5.20/app/views"
 59b582dd | ' error (ActionView::MissingTemplate): Missing partial /hosts/_expired_message.html.erb with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :rabl]}. Searched in:
 59b582dd |   * "/usr/share/foreman/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_expire_hosts-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_openscap-5.2.2/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_webhooks-3.0.5/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_virt_who_configure-0.5.9/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_snapshot_management-2.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_puppet-4.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_leapp-0.1.10/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_ansible-9.0.1/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_bootdisk-21.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/katello-4.6.0/engines/bastion/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman_remote_execution-8.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/foreman-tasks-7.0.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-dsl-2.5.0/app/views"
 59b582dd |   * "/usr/share/gems/gems/apipie-rails-0.5.20/app/views"
 59b582dd | 
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:48:in `find'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/lookup_context.rb:127:in `find'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/template_helper.rb:20:in `block in load_template_source'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/lookup_context.rb:108:in `disable_cache'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/template_helper.rb:19:in `load_template_source'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/sources/partial.rb:9:in `execute'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/override.rb:144:in `source'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/override.rb:154:in `source_element'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/override.rb:159:in `safe_source_element'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:78:in `create_action_command'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:67:in `execute_action'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:47:in `block (2 levels) in apply'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:47:in `each'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:47:in `block in apply'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:24:in `each'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/applicator.rb:24:in `apply'
 59b582dd | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:9:in `initialize'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/unbound_template.rb:23:in `new'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/unbound_template.rb:23:in `build_template'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/unbound_template.rb:17:in `bind_locals'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:232:in `block in query'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:222:in `map'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:222:in `query'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:215:in `_find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:155:in `block in find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:186:in `block in cached'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:101:in `cache'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:185:in `cached'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/template/resolver.rb:154:in `find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:73:in `block (2 levels) in _find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:72:in `each'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:72:in `block in _find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:71:in `each'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:71:in `_find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:52:in `find_all'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/path_set.rb:56:in `exists?'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/lookup_context.rb:136:in `exists?'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/view_paths.rb:11:in `template_exists?'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/implicit_render.rb:34:in `default_render'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:228:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 59b582dd | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 59b582dd | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 59b582dd | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 59b582dd | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 59b582dd | /usr/share/gems/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:137:in `run_callbacks'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `block in instrument'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications.rb:203:in `instrument'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 59b582dd | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/abstract_controller/base.rb:165:in `process'
 59b582dd | /usr/share/gems/gems/actionview-6.1.6.1/lib/action_view/rendering.rb:39:in `process'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:190:in `dispatch'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_controller/metal.rb:254:in `dispatch'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `each'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/router.rb:32:in `serve'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/routing/route_set.rb:842:in `call'
 59b582dd | /usr/share/gems/gems/katello-4.6.0/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 59b582dd | /usr/share/gems/gems/katello-4.6.0/lib/katello/middleware/event_daemon.rb:10:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/apipie-dsl-2.5.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 59b582dd | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/static_dispatcher.rb:66:in `call'
 59b582dd | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/extractor/recorder.rb:137:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 59b582dd | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 59b582dd | /usr/share/gems/gems/apipie-rails-0.5.20/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/etag.rb:27:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/conditional_get.rb:27:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/head.rb:12:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 59b582dd | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:266:in `context'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/session/abstract/id.rb:260:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/cookies.rb:689:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 59b582dd | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:37:in `call_app'
 59b582dd | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/rack/logger.rb:28:in `call'
 59b582dd | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 59b582dd | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 59b582dd | /usr/share/gems/gems/katello-4.6.0/lib/katello/prevent_json_parsing.rb:12:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/runtime.rb:22:in `call'
 59b582dd | /usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/static.rb:24:in `call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/sendfile.rb:110:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 59b582dd | /usr/share/gems/gems/actionpack-6.1.6.1/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 59b582dd | /usr/share/gems/gems/secure_headers-6.3.4/lib/secure_headers/middleware.rb:11:in `call'
 59b582dd | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/engine.rb:539:in `call'
 59b582dd | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `public_send'
 59b582dd | /usr/share/gems/gems/railties-6.1.6.1/lib/rails/railtie.rb:207:in `method_missing'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:74:in `block in call'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `each'
 59b582dd | /usr/share/gems/gems/rack-2.2.4/lib/rack/urlmap.rb:58:in `call'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/configuration.rb:252:in `call'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:77:in `block in handle_request'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:340:in `with_force_shutdown'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/request.rb:76:in `handle_request'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/server.rb:441:in `process_client'
 59b582dd | /usr/share/gems/gems/puma-5.6.4/lib/puma/thread_pool.rb:147:in `block in spawn_thread'
 59b582dd | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2022-10-28T09:27:33 [I|app|59b582dd]   Rendered common/500.html.erb within layouts/application (Duration: 3.5ms | Allocations: 1467)
2022-10-28T09:27:33 [I|app|59b582dd]   Rendered layouts/base.html.erb (Duration: 9.8ms | Allocations: 9785)
2022-10-28T09:27:33 [I|app|59b582dd]   Rendered layout layouts/application.html.erb (Duration: 15.5ms | Allocations: 12178)
2022-10-28T09:27:33 [I|app|59b582dd] Completed 500 Internal Server Error in 69ms (Views: 18.6ms | ActiveRecord: 6.2ms | Allocations: 40479)

Foreman version: 3.4.0
Plugins: 
 - foreman-tasks 7.0.0
 - foreman_ansible 9.0.1
 - foreman_bootdisk 21.0.0
 - foreman_expire_hosts 8.0.0
 - foreman_leapp 0.1.10
 - foreman_openscap 5.2.2
 - foreman_puppet 4.0.1
 - foreman_remote_execution 8.0.0
 - foreman_snapshot_management 2.0.1
 - foreman_virt_who_configure 0.5.9
 - foreman_webhooks 3.0.5
 - katello 4.6.0

This is working, i can access settings in ui with this fix :slight_smile:

Ty for your reactivity.

1 Like

Awesome, I posted the same as a PR here: use a `proc {}` for collections in settings by evgeni · Pull Request #87 · theforeman/foreman_monitoring · GitHub

Now waiting on @Marek_Hulan or someone else to review and merge it :slight_smile:

@Marek_Hulan could you push this again a little bit :slight_smile:

still waiting for the last fix :slight_smile:

Release and packaging for deb and rpm for nightly and 3.4 was done today, should be available soon.

1 Like

@Dirk i can confirm that the foreman_monitoring-package is available for yum.

@Marek_Hulan, @evgeni, @ekohl, i am sorry to bother you again, but it seems that the issue are not fully resolved :frowning: … I still get an issue with the puppetdb_plugin.

Error: Execution of '/usr/sbin/foreman-rake -- config -k 'puppetdb_enabled' -v 'true'' returned 1: At least one field decryption failed, check ENCRYPTION_KEY
rake aborted!
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Setting::Puppetdb'. This error is raised because the column 'category' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Setting.inheritance_column to use another column for that information.
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:182:in `rescue in sti_class_for'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:175:in `sti_class_for'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:259:in `find_sti_class'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:247:in `discriminate_class_for_record'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:257:in `instantiate'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block (2 levels) in find_by_sql'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `block in each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `map'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block in find_by_sql'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:61:in `find_by_sql'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:843:in `block in exec_queries'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:861:in `skip_query_cache_if_necessary'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:828:in `exec_queries'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:631:in `load'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:249:in `records'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:524:in `find_take'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:98:in `take'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:81:in `find_by'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:22:in `find_by'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:350:in `find_by'
/usr/share/foreman/app/services/setting_registry.rb:178:in `_find_or_new_db_record'
/usr/share/foreman/app/services/setting_registry.rb:82:in `set_user_value'
/usr/share/foreman/lib/tasks/config.rake:111:in `block in run_key_values'
/usr/share/foreman/lib/tasks/config.rake:100:in `each'
/usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
/usr/share/foreman/lib/tasks/config.rake:77:in `run'
/usr/share/foreman/lib/tasks/config.rake:165:in `block in <top (required)>'
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'

Caused by:
NameError: uninitialized constant Setting::Puppetdb
/usr/share/gems/gems/foreman_hooks-0.3.17/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:301:in `const_get'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:301:in `block in constantize'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `each'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `inject'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/inflector/methods.rb:284:in `constantize'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:177:in `sti_class_for'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:259:in `find_sti_class'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/inheritance.rb:247:in `discriminate_class_for_record'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/persistence.rb:257:in `instantiate'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block (2 levels) in find_by_sql'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `block in each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/result.rb:62:in `each'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `map'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:63:in `block in find_by_sql'
/usr/share/gems/gems/activesupport-6.1.6.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:61:in `find_by_sql'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:843:in `block in exec_queries'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:861:in `skip_query_cache_if_necessary'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:828:in `exec_queries'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:631:in `load'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation.rb:249:in `records'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:524:in `find_take'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:98:in `take'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/finder_methods.rb:81:in `find_by'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/querying.rb:22:in `find_by'
/usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/core.rb:350:in `find_by'
/usr/share/foreman/app/services/setting_registry.rb:178:in `_find_or_new_db_record'
/usr/share/foreman/app/services/setting_registry.rb:82:in `set_user_value'
/usr/share/foreman/lib/tasks/config.rake:111:in `block in run_key_values'
/usr/share/foreman/lib/tasks/config.rake:100:in `each'
/usr/share/foreman/lib/tasks/config.rake:100:in `run_key_values'
/usr/share/foreman/lib/tasks/config.rake:77:in `run'
/usr/share/foreman/lib/tasks/config.rake:165:in `block in <top (required)>'
/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => config
(See full trace by running task with --trace)

i deleted foreman completely from my CentOS 8 stream system and reinstalled it with puppet, but the issue persists.

any idea what can be done ? :slight_smile:

Just minutes ago @evgeni just picked the 6.0.1 release which should include a fix for that:

Once that’s built and available I’d expect your problems to be solved.

The repo publish just finished, so you should see puppetdb 6.0.1 now and that should fix your issues (after you’ve run either the installer or foreman-rake db:migrate once, to update the DB entries)

Hi

just for information: same issue with Default hostgroup plugin

2022-11-03 09:03:55 [DEBUG ] [configure] Execforeman-rake-db:seed: Executing ‘/usr/sbin/foreman-rake db:seed’
2022-11-03 09:03:55 [DEBUG ] [configure] Executing with uid=foreman: ‘/usr/sbin/foreman-rake db:seed’
2022-11-03 09:04:06 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: rake aborted!
2022-11-03 09:04:06 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: ActiveModel::UnknownAttributeError: unknown attribute ‘description’ for Setting::DefaultHostgroup.

@evgeni, @ekohl, @Marek_Hulan - package downloaded and installed, db:seed is now working, issue is gone

but additionally, my foreman-web-UI is currently not working, httpd-service / foreman-service and foreman-proxy-service are running, if i look into the foreman-logs (production.log) it seems there is first something that the foreman_host-extra_validator is not correctly migrated, but foreman-rake db:migrate and db:seed shows no errors even more. And there are still some “No Method” errors and so on. See log-output.

2022-11-03T12:44:48 [I|app|] Rails cache backend: File
2022-11-03T12:44:48 [I|app|] memcached cache backend enabled: [:dalli_store, "<fqdn>", {:namespace=>"foreman", :expires_in=>86400, :compress=>true}]
2022-11-03T12:44:49 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:44:49 [D|app|] Registering 1 assets for plugin foreman_bootdisk precompilation
2022-11-03T12:44:49 [D|app|] Plugin foreman_puppet has assets outside of its namespace, these will be ignored: foreman_puppet.scss
2022-11-03T12:44:50 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:44:50 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:44:50 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:44:50 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:44:50 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-11-03T12:44:50 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-11-03T12:44:51 [D|app|] Registering 11 assets for plugin foreman_openscap precompilation
2022-11-03T12:44:51 [D|app|] Registering 4 assets for plugin foreman-tasks precompilation
2022-11-03T12:44:52 [D|app|] Cache delete: views/tabs_and_title_records-11
2022-11-03T12:44:52 [D|app|] Dalli::Server#connect <fqdn>:11211
2022-11-03T12:44:52 [D|app|] Cache delete: views/tabs_and_title_records-9
2022-11-03T12:44:52 [D|app|] Cache delete: views/tabs_and_title_records-10
2022-11-03T12:44:52 [D|app|] Cache delete: views/tabs_and_title_records-13
2022-11-03T12:44:52 [D|app|] Cache delete: views/tabs_and_title_records-12
2022-11-03T12:44:52 [D|app|] Loading foreman-tasks precompiled asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/assets/foreman-tasks/foreman-tasks.json
2022-11-03T12:44:52 [D|app|] Loading foreman_bootdisk precompiled asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/assets/foreman_bootdisk/foreman_bootdisk.json
2022-11-03T12:44:52 [D|app|] Loading foreman_discovery precompiled asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/assets/foreman_discovery/foreman_discovery.json
2022-11-03T12:44:52 [D|app|] Loading foreman_openscap precompiled asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/assets/foreman_openscap/foreman_openscap.json
2022-11-03T12:44:52 [D|app|] Loading foreman_puppet precompiled asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/assets/foreman_puppet/foreman_puppet.json
2022-11-03T12:44:52 [D|app|] Loading foreman_templates precompiled asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/assets/foreman_templates/foreman_templates.json
2022-11-03T12:44:52 [D|app|] Loading foreman-tasks webpack asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/webpack/foreman-tasks/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_bootdisk webpack asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/webpack/foreman_bootdisk/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_discovery webpack asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/webpack/foreman_discovery/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_host_reports webpack asset manifest from /usr/share/gems/gems/foreman_host_reports-1.0.2/public/webpack/foreman_host_reports/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_openscap webpack asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/webpack/foreman_openscap/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_puppet webpack asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/webpack/foreman_puppet/manifest.json
2022-11-03T12:44:52 [D|app|] Loading foreman_templates webpack asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/webpack/foreman_templates/manifest.json
2022-11-03T12:45:05 [I|app|] Rails cache backend: File
2022-11-03T12:45:05 [I|app|] memcached cache backend enabled: [:dalli_store, "<fqdn>", {:namespace=>"foreman", :expires_in=>86400, :compress=>true}]
2022-11-03T12:45:06 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:06 [D|app|] Registering 1 assets for plugin foreman_bootdisk precompilation
2022-11-03T12:45:06 [D|app|] Plugin foreman_puppet has assets outside of its namespace, these will be ignored: foreman_puppet.scss
2022-11-03T12:45:07 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:07 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:07 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:07 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-11-03T12:45:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-11-03T12:45:08 [D|app|] Registering 11 assets for plugin foreman_openscap precompilation
2022-11-03T12:45:08 [D|app|] Registering 4 assets for plugin foreman-tasks precompilation
2022-11-03T12:45:09 [D|app|] Cache delete: views/tabs_and_title_records-11
2022-11-03T12:45:09 [D|app|] Dalli::Server#connect <fqdn>:11211
2022-11-03T12:45:09 [D|app|] Cache delete: views/tabs_and_title_records-9
2022-11-03T12:45:09 [D|app|] Cache delete: views/tabs_and_title_records-10
2022-11-03T12:45:09 [D|app|] Cache delete: views/tabs_and_title_records-13
2022-11-03T12:45:09 [D|app|] Cache delete: views/tabs_and_title_records-12
2022-11-03T12:45:09 [W|app|] At least one field decryption failed, check ENCRYPTION_KEY
2022-11-03T12:45:09 [D|app|] Loading foreman-tasks precompiled asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/assets/foreman-tasks/foreman-tasks.json
2022-11-03T12:45:09 [D|app|] Loading foreman_bootdisk precompiled asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/assets/foreman_bootdisk/foreman_bootdisk.json
2022-11-03T12:45:09 [D|app|] Loading foreman_discovery precompiled asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/assets/foreman_discovery/foreman_discovery.json
2022-11-03T12:45:09 [D|app|] Loading foreman_openscap precompiled asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/assets/foreman_openscap/foreman_openscap.json
2022-11-03T12:45:09 [D|app|] Loading foreman_puppet precompiled asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/assets/foreman_puppet/foreman_puppet.json
2022-11-03T12:45:09 [D|app|] Loading foreman_templates precompiled asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/assets/foreman_templates/foreman_templates.json
2022-11-03T12:45:09 [D|app|] Loading foreman-tasks webpack asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/webpack/foreman-tasks/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_bootdisk webpack asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/webpack/foreman_bootdisk/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_discovery webpack asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/webpack/foreman_discovery/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_host_reports webpack asset manifest from /usr/share/gems/gems/foreman_host_reports-1.0.2/public/webpack/foreman_host_reports/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_openscap webpack asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/webpack/foreman_openscap/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_puppet webpack asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/webpack/foreman_puppet/manifest.json
2022-11-03T12:45:09 [D|app|] Loading foreman_templates webpack asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/webpack/foreman_templates/manifest.json
2022-11-03T12:45:11 [D|app|] Acquiring Advisory-Transaction-Lock 'database_seed' -> 2715469950095921260
2022-11-03T12:45:16 [I|dyn|] start terminating throttle_limiter...
2022-11-03T12:45:16 [I|dyn|] start terminating throttle_limiter...
2022-11-03T12:45:16 [I|dyn|] start terminating throttle_limiter...
2022-11-03T12:45:16 [I|dyn|] start terminating throttle_limiter...
2022-11-03T12:45:16 [I|dyn|] start terminating client dispatcher...
2022-11-03T12:45:16 [I|dyn|] start terminating client dispatcher...
2022-11-03T12:45:16 [I|dyn|] start terminating client dispatcher...
2022-11-03T12:45:16 [I|dyn|] stop listening for new events...
2022-11-03T12:45:16 [I|dyn|] start terminating client dispatcher...
2022-11-03T12:45:16 [I|dyn|] stop listening for new events...
2022-11-03T12:45:16 [I|dyn|] stop listening for new events...
2022-11-03T12:45:16 [I|dyn|] stop listening for new events...
2022-11-03T12:45:16 [I|dyn|] start terminating clock...
2022-11-03T12:45:16 [I|dyn|] start terminating clock...
2022-11-03T12:45:16 [I|dyn|] start terminating clock...
2022-11-03T12:45:16 [I|dyn|] start terminating clock...
2022-11-03T12:45:23 [I|app|] Rails cache backend: File
2022-11-03T12:45:23 [I|app|] memcached cache backend enabled: [:dalli_store, "<fqdn>", {:namespace=>"foreman", :expires_in=>86400, :compress=>true}]
2022-11-03T12:45:24 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:25 [D|app|] Registering 1 assets for plugin foreman_bootdisk precompilation
2022-11-03T12:45:25 [D|app|] Plugin foreman_puppet has assets outside of its namespace, these will be ignored: foreman_puppet.scss
2022-11-03T12:45:25 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:25 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:25 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:25 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-11-03T12:45:26 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-11-03T12:45:26 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-11-03T12:45:26 [D|app|] Registering 11 assets for plugin foreman_openscap precompilation
2022-11-03T12:45:26 [D|app|] Registering 4 assets for plugin foreman-tasks precompilation
2022-11-03T12:45:27 [D|app|] Cache delete: views/tabs_and_title_records-11
2022-11-03T12:45:27 [D|app|] Dalli::Server#connect <fqdn>:11211
2022-11-03T12:45:27 [D|app|] Cache delete: views/tabs_and_title_records-9
2022-11-03T12:45:27 [D|app|] Cache delete: views/tabs_and_title_records-10
2022-11-03T12:45:27 [D|app|] Cache delete: views/tabs_and_title_records-13
2022-11-03T12:45:27 [D|app|] Cache delete: views/tabs_and_title_records-12
2022-11-03T12:45:27 [W|app|] At least one field decryption failed, check ENCRYPTION_KEY
2022-11-03T12:45:29 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-11-03T12:45:33 [D|app|] Loading foreman-tasks precompiled asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/assets/foreman-tasks/foreman-tasks.json
2022-11-03T12:45:33 [D|app|] Loading foreman_bootdisk precompiled asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/assets/foreman_bootdisk/foreman_bootdisk.json
2022-11-03T12:45:33 [D|app|] Loading foreman_discovery precompiled asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/assets/foreman_discovery/foreman_discovery.json
2022-11-03T12:45:33 [D|app|] Loading foreman_openscap precompiled asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/assets/foreman_openscap/foreman_openscap.json
2022-11-03T12:45:33 [D|app|] Loading foreman_puppet precompiled asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/assets/foreman_puppet/foreman_puppet.json
2022-11-03T12:45:33 [D|app|] Loading foreman_templates precompiled asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/assets/foreman_templates/foreman_templates.json
2022-11-03T12:45:33 [D|app|] Loading foreman-tasks webpack asset manifest from /usr/share/gems/gems/foreman-tasks-7.0.0/public/webpack/foreman-tasks/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_bootdisk webpack asset manifest from /usr/share/gems/gems/foreman_bootdisk-21.0.0/public/webpack/foreman_bootdisk/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_discovery webpack asset manifest from /usr/share/gems/gems/foreman_discovery-21.0.1/public/webpack/foreman_discovery/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_host_reports webpack asset manifest from /usr/share/gems/gems/foreman_host_reports-1.0.2/public/webpack/foreman_host_reports/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_openscap webpack asset manifest from /usr/share/gems/gems/foreman_openscap-5.2.2/public/webpack/foreman_openscap/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_puppet webpack asset manifest from /usr/share/gems/gems/foreman_puppet-4.0.1/public/webpack/foreman_puppet/manifest.json
2022-11-03T12:45:33 [D|app|] Loading foreman_templates webpack asset manifest from /usr/share/gems/gems/foreman_templates-9.2.0/public/webpack/foreman_templates/manifest.json
2022-11-03T12:45:34 [D|app|] There are pending migrations for foreman_host_extra_validator. Please run foreman-rake db:migrate.
2022-11-03T12:45:34 [W|app|] Migrations pending, skipping seeding. Please run `foreman-rake db:migrate` manually.
2022-11-03T12:45:36 [D|app|] Loading and caching all available locales
2022-11-03T12:45:37 [I|app|98f84304] Started GET "/" for <IP> at 2022-11-03 12:45:37 +0100
2022-11-03T12:45:37 [I|app|98f84304] Processing by DashboardController#index as HTML
2022-11-03T12:45:37 [D|app|98f84304] service unavailable: ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.
2022-11-03T12:45:37 [D|app|98f84304]   Rendering layout layouts/application.html.erb
2022-11-03T12:45:37 [D|app|98f84304]   Rendering common/503.html.erb within layouts/application
2022-11-03T12:45:37 [I|app|98f84304]   Rendered common/503.html.erb within layouts/application (Duration: 5.1ms | Allocations: 1039)
2022-11-03T12:45:37 [D|app|98f84304]   Rendered layouts/_application_content.html.erb (Duration: 1.0ms | Allocations: 387)
2022-11-03T12:45:37 [D|app|98f84304]   Rendering layouts/base.html.erb
2022-11-03T12:45:37 [I|app|98f84304]   Rendered layouts/base.html.erb (Duration: 7.2ms | Allocations: 3830)
2022-11-03T12:45:37 [I|app|98f84304]   Rendered layout layouts/application.html.erb (Duration: 15.8ms | Allocations: 6081)
2022-11-03T12:45:37 [I|app|98f84304] Completed 503 Service Unavailable in 100ms (Views: 23.4ms | ActiveRecord: 19.9ms | Allocations: 31448)
2022-11-03T12:45:37 [D|app|98f84304] Cache write: _session_id:2::e6965e3f9bd24f4004ca04c7d48faf9064d25178cd08bf87a301db5f011d2951 ({:expires_in=>86400})
2022-11-03T12:45:37 [F|app|98f84304]
 98f84304 | NoMethodError (undefined method `dup_value!' for {"_csrf_token"=>"Ov2WIpzv02g8x5CSRqjEcEZwXxI3UG72aUaW4Lw60II="}:Hash):
 98f84304 |
98f84304 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
2022-11-03T12:45:38 [I|app|d0f3f83b] Started GET "/" for <IP> at 2022-11-03 12:45:38 +0100
2022-11-03T12:45:38 [I|app|d0f3f83b] Processing by DashboardController#index as HTML
2022-11-03T12:45:38 [D|app|d0f3f83b] service unavailable: ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.
2022-11-03T12:45:38 [D|app|d0f3f83b]   Rendering layout layouts/application.html.erb
2022-11-03T12:45:38 [D|app|d0f3f83b]   Rendering common/503.html.erb within layouts/application
2022-11-03T12:45:38 [I|app|d0f3f83b]   Rendered common/503.html.erb within layouts/application (Duration: 17.3ms | Allocations: 5972)
2022-11-03T12:45:38 [D|app|d0f3f83b]   Rendered layouts/_application_content.html.erb (Duration: 3.7ms | Allocations: 5461)
2022-11-03T12:45:38 [D|app|d0f3f83b]   Rendering layouts/base.html.erb
2022-11-03T12:45:38 [I|app|d0f3f83b]   Rendered layouts/base.html.erb (Duration: 8.6ms | Allocations: 8371)
2022-11-03T12:45:38 [I|app|d0f3f83b]   Rendered layout layouts/application.html.erb (Duration: 35.5ms | Allocations: 25519)
2022-11-03T12:45:38 [I|app|d0f3f83b] Completed 503 Service Unavailable in 37ms (Views: 36.3ms | ActiveRecord: 0.0ms | Allocations: 26128)
2022-11-03T12:45:38 [D|app|d0f3f83b] Cache write: _session_id:2::102419c453cbea5e24559dffbc47d58110975506ebc6d66c318c6edee8fdad80 ({:expires_in=>86400})
2022-11-03T12:45:38 [F|app|d0f3f83b]
 d0f3f83b | NoMethodError (undefined method `dup_value!' for {"_csrf_token"=>"e7rbns3t+PBGqXTgQsTu0AWIGM+AkB6LDE9+0It5Wr0="}:Hash):
 d0f3f83b |
 d0f3f83b | lib/foreman/middleware/logging_context_request.rb:11:in `call'

@almorr default hostgroup patch is here: migrate to Settings DSL by evgeni · Pull Request #52 · theforeman/foreman_default_hostgroup · GitHub

@cooler22 you’re using dalli/foreman_memcache, which is broken with the latest Rails release, please disable it.

@evgeni, could you advice how ? or is there maybe a replacement for it ?
i don´t know if i can install some other memcache package

these are the packages that are currently used. should i only deinstall the second one ?

[user@<hostname> ~]$ sudo rpm -qa | grep memcache
memcached-1.5.22-2.el8.x86_64
rubygem-foreman_memcache-0.1.1-5.fm3_3.el8.noarch

I think dropping that package should get you there, yeah.

Also see Dup_value error after upgrading in 3.4.0 for a discussion about the replacement etc

@evgeni, thx that solved the issue.

now i get only showed that there is still Maintenance-Task:

2022-11-03T15:06:28 [D|app|] There are pending migrations for foreman_host_extra_validator. Please run foreman-rake db:migrate.
2022-11-03T15:06:28 [W|app|] Migrations pending, skipping seeding. Please run `foreman-rake db:migrate` manually.
2022-11-03T15:06:30 [D|app|] Loading and caching all available locales
2022-11-03T15:06:33 [I|app|3141ad43] Started GET "/" for <ip> at 2022-11-03 15:06:33 +0100
2022-11-03T15:06:33 [I|app|3141ad43] Processing by DashboardController#index as HTML
2022-11-03T15:06:33 [D|app|3141ad43] service unavailable: ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.
2022-11-03T15:06:33 [D|app|3141ad43]   Rendering layout layouts/application.html.erb
2022-11-03T15:06:33 [D|app|3141ad43]   Rendering common/503.html.erb within layouts/application
2022-11-03T15:06:33 [I|app|3141ad43]   Rendered common/503.html.erb within layouts/application (Duration: 5.1ms | Allocations: 1038)
2022-11-03T15:06:33 [D|app|3141ad43]   Rendered layouts/_application_content.html.erb (Duration: 1.0ms | Allocations: 387)
2022-11-03T15:06:33 [D|app|3141ad43]   Rendering layouts/base.html.erb
2022-11-03T15:06:33 [I|app|3141ad43]   Rendered layouts/base.html.erb (Duration: 6.7ms | Allocations: 3750)
2022-11-03T15:06:33 [I|app|3141ad43]   Rendered layout layouts/application.html.erb (Duration: 14.9ms | Allocations: 6000)
2022-11-03T15:06:33 [I|app|3141ad43] Completed 503 Service Unavailable in 44ms (Views: 22.9ms | ActiveRecord: 6.2ms | Allocations: 27713)

It seems there is still an issue with the “foreman_host_extra_validator” plugin. After i deinstalled the plugin foreman-Web-UI is working. could you check that again ?

maybe a little patch is still necessary.

And did you try running the migrations? Because that’s what seems to be missing in your case.