Individual host screens do not render - produces "No host found"

Problem:
Selecting a host from either All Hosts or Content Hosts produces a “No host found” page.

Expected outcome:
Detail view of the selected host.

Foreman and Proxy versions:
Foreman 3.9.1
Katello 4.11.1

Foreman and Proxy plugin versions:

ansible-collection-theforeman-foreman-4.0.0-2.el8.noarch
candlepin-4.3.12-1.el8.noarch
candlepin-selinux-4.3.12-1.el8.noarch
foreman-3.9.1-1.el8.noarch
foreman-cli-3.9.1-1.el8.noarch
foreman-debug-3.9.1-1.el8.noarch
foreman-dynflow-sidekiq-3.9.1-1.el8.noarch
foreman-fapolicyd-1.0.1-2.el8.noarch
foreman-installer-3.9.1-1.el8.noarch
foreman-installer-katello-3.9.1-1.el8.noarch
foreman-obsolete-packages-1.6-1.el8.noarch
foreman-postgresql-3.9.1-1.el8.noarch
foreman-proxy-3.9.1-1.el8.noarch
foreman-proxy-fapolicyd-1.0.1-2.el8.noarch
foreman-redis-3.9.1-1.el8.noarch
foreman-release-3.9.1-1.el8.noarch
foreman-selinux-3.9.1-1.el8.noarch
foreman-service-3.9.1-1.el8.noarch
katello-4.11.1-1.el8.noarch
katello-ca-consumer-s2-foreman.s2.internal-1.0-20.noarch
katello-certs-tools-2.9.0-2.el8.noarch
katello-client-bootstrap-1.7.9-2.el8.noarch
katello-common-4.11.1-1.el8.noarch
katello-debug-4.11.1-1.el8.noarch
katello-host-tools-3.5.4-1.el8.noarch
katello-host-tools-tracer-3.5.4-1.el8.noarch
katello-repos-4.11.1-1.el8.noarch
katello-selinux-5.0.2-1.el8.noarch
pulpcore-obsolete-packages-1.0-9.el8.noarch
pulpcore-selinux-2.0.1-1.el8.x86_64
python3.11-pulp-ansible-0.20.2-3.el8.noarch
python3.11-pulp-certguard-1.7.1-2.el8.noarch
python3.11-pulp-cli-0.21.2-5.el8.noarch
python3.11-pulp-container-2.16.4-1.el8.noarch
python3.11-pulp-deb-3.0.1-1.el8.noarch
python3.11-pulp-file-1.15.1-2.el8.noarch
python3.11-pulp-glue-0.21.2-3.el8.noarch
python3.11-pulp-python-3.10.0-3.el8.noarch
python3.11-pulp-rpm-3.23.3-1.el8.noarch
python3.11-pulpcore-3.39.11-1.el8.noarch
rubygem-foreman-tasks-9.0.4-1.fm3_9.el8.noarch
rubygem-foreman_ansible-13.0.3-1.fm3_9.el8.noarch
rubygem-foreman_maintain-1.4.3-1.el8.noarch
rubygem-foreman_openscap-7.1.1-1.fm3_9.el8.noarch
rubygem-foreman_remote_execution-12.0.5-1.fm3_9.el8.noarch
rubygem-foreman_templates-9.4.0-1.fm3_9.el8.noarch
rubygem-hammer_cli-3.9.0-1.el8.noarch
rubygem-hammer_cli_foreman-3.9.0-1.el8.noarch
rubygem-hammer_cli_foreman_ansible-0.6.0-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.3.0-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.20-1.fm3_9.el8.noarch
rubygem-hammer_cli_katello-1.11.2-1.el8.noarch
rubygem-katello-4.11.1-1.el8.noarch
rubygem-pulp_ansible_client-0.20.2-1.el8.noarch
rubygem-pulp_certguard_client-1.6.5-1.el8.noarch
rubygem-pulp_container_client-2.16.2-1.el8.noarch
rubygem-pulp_deb_client-3.0.0-1.el8.noarch
rubygem-pulp_file_client-1.15.1-1.el8.noarch
rubygem-pulp_ostree_client-2.1.3-1.el8.noarch
rubygem-pulp_python_client-3.10.0-1.el8.noarch
rubygem-pulp_rpm_client-3.23.0-1.el8.noarch
rubygem-pulpcore_client-3.39.2-1.el8.noarch
rubygem-smart_proxy_pulp-3.2.0-3.fm3_9.el8.noarch

Distribution and version:
RHEL 8.9

Other relevant data:

2024-04-05T09:40:03 [I|app|6b500130] Started GET "/notification_recipients" for 10.8.50.101 at 2024-04-05 09:40:03 -0700
2024-04-05T09:40:03 [I|app|6b500130] Processing by NotificationRecipientsController#index as JSON
2024-04-05T09:40:03 [I|app|6b500130] Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 1.9ms | Allocations: 1908)
2024-04-05T09:40:07 [I|app|f1ba5dd2] Started GET "/new/hosts/abcd-app01a.abcd.internal/content" for 10.8.50.101 at 2024-04-05 09:40:07 -0700
2024-04-05T09:40:07 [I|app|5c7e00d8] Started GET "/new/hosts/abcd-app01a.abcd.internal" for 10.8.50.101 at 2024-04-05 09:40:07 -0700
2024-04-05T09:40:07 [I|app|5c7e00d8] Processing by ReactController#index as HTML
2024-04-05T09:40:07 [I|app|5c7e00d8]   Parameters: {"id"=>"abcd-app01a.abcd.internal"}
2024-04-05T09:40:07 [I|app|5c7e00d8]   Rendered react/index.html.erb within layouts/react_application (Duration: 0.4ms | Allocations: 133)
2024-04-05T09:40:07 [I|app|5c7e00d8]   Rendered layouts/base.html.erb (Duration: 38.3ms | Allocations: 33480)
2024-04-05T09:40:07 [I|app|5c7e00d8]   Rendered layout layouts/react_application.html.erb (Duration: 40.0ms | Allocations: 34117)
2024-04-05T09:40:07 [I|app|5c7e00d8] Completed 200 OK in 59ms (Views: 40.9ms | ActiveRecord: 4.7ms | Allocations: 40571)
2024-04-05T09:40:08 [I|app|f8e35322] Started GET "/notification_recipients" for 10.8.50.101 at 2024-04-05 09:40:08 -0700
2024-04-05T09:40:08 [I|app|d74bc940] Started GET "/api/v2/remote_execution_features" for 10.8.50.101 at 2024-04-05 09:40:08 -0700
2024-04-05T09:40:08 [I|app|fd6ad885] Started GET "/api/hosts/abcd-app01a.abcd.internal?show_hidden_parameters=true" for 10.8.50.101 at 2024-04-05 09:40:08 -0700
2024-04-05T09:40:08 [I|app|f8e35322] Processing by NotificationRecipientsController#index as JSON
2024-04-05T09:40:08 [I|app|d74bc940] Processing by Api::V2::RemoteExecutionFeaturesController#index as JSON
2024-04-05T09:40:08 [I|app|d74bc940]   Parameters: {"apiv"=>"v2"}
2024-04-05T09:40:08 [I|app|fd6ad885] Processing by Api::V2::HostsController#show as JSON
2024-04-05T09:40:08 [I|app|fd6ad885]   Parameters: {"show_hidden_parameters"=>"true", "apiv"=>"v2", "id"=>"abcd-app01a.abcd.internal"}
2024-04-05T09:40:08 [I|app|f8e35322] Completed 200 OK in 8ms (Views: 0.1ms | ActiveRecord: 1.2ms | Allocations: 1908)
2024-04-05T09:40:08 [I|app|d74bc940]   Rendered /usr/share/gems/gems/foreman_remote_execution-12.0.5/app/views/api/v2/remote_execution_features/index.json.rabl within api/v2/layouts/index_layout (Duration: 128.3ms | Allocations: 42665)
2024-04-05T09:40:08 [I|app|d74bc940]   Rendered layout api/v2/layouts/index_layout.json.erb (Duration: 130.8ms | Allocations: 43283)
2024-04-05T09:40:08 [I|app|d74bc940] Completed 200 OK in 145ms (Views: 120.2ms | ActiveRecord: 15.0ms | Allocations: 46829)
2024-04-05T09:40:08 [I|app|fd6ad885]   Rendered api/v2/hosts/show.json.rabl (Duration: 214.7ms | Allocations: 62931)
2024-04-05T09:40:08 [W|app|fd6ad885] Action failed
2024-04-05T09:40:08 [I|app|fd6ad885] Backtrace for 'Action failed' error (ActionView::Template::Error): Cannot find rabl template 'api/v2/interfaces/execution_flag' within registered (["/usr/share/foreman/app/views", "/usr/share/gems/gems/foreman_templates-9.4.0/app/views", "/usr/share/gems/gems/katello-4.11.1/app/views"]) view paths!
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/sources.rb:24:in `block in fetch_source'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl.rb:60:in `source_cache'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/sources.rb:10:in `fetch_source'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/partials.rb:12:in `partial_as_engine'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:202:in `extends'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:116:in `block in compile_settings'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:115:in `each'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:115:in `compile_settings'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:35:in `engines'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:57:in `block in to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:253:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:51:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:91:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:51:in `block in render'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:392:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:50:in `render'
 fd6ad885 | /usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:129:in `block in merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `each'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:57:in `block in to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:253:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:51:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/multi_builder.rb:27:in `map'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/multi_builder.rb:27:in `to_a'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:93:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:51:in `block in render'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:392:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:50:in `render'
 fd6ad885 | /usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:126:in `block (2 levels) in merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:125:in `each'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:125:in `block in merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `each'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `merge_engines_into_result'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:57:in `block in to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:253:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:51:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:91:in `to_hash'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:104:in `to_dumpable'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:113:in `to_json'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:51:in `block in render'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:392:in `cache_results'
 fd6ad885 | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:50:in `render'
 fd6ad885 | /usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
 fd6ad885 | /usr/share/foreman/app/views/api/v2/hosts/show.json.rabl:3:in `_2e50cefadeca2545dbbdffd6cefe7364'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:247:in `public_send'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:247:in `_run'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:154:in `block in render'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:345:in `instrument_render_template'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:152:in `render'
 fd6ad885 | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `block in instrument'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `instrument'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:11:in `render'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:117:in `block in _render_template'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:273:in `in_rendering_context'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:116:in `_render_template'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:103:in `render_to_body'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/rendering.rb:25:in `render'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:36:in `render'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 fd6ad885 | /usr/share/ruby/benchmark.rb:308:in `realtime'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 fd6ad885 | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:45:in `render'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:228:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 fd6ad885 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 fd6ad885 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 fd6ad885 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 fd6ad885 | /usr/share/gems/gems/audited-5.4.2/lib/audited/sweeper.rb:16:in `around'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 fd6ad885 | /usr/share/gems/gems/audited-5.4.2/lib/audited/sweeper.rb:16:in `around'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:137:in `run_callbacks'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:41:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rescue.rb:22:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `block in instrument'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `instrument'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 fd6ad885 | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:165:in `process'
 fd6ad885 | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:39:in `process'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:190:in `dispatch'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:254:in `dispatch'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:49:in `serve'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `each'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `serve'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:842:in `call'
 fd6ad885 | /usr/share/gems/gems/katello-4.11.1/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 fd6ad885 | /usr/share/gems/gems/katello-4.11.1/lib/katello/middleware/event_daemon.rb:10:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/apipie-dsl-2.6.1/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 fd6ad885 | /usr/share/gems/gems/apipie-rails-1.2.3/lib/apipie/static_dispatcher.rb:68:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 fd6ad885 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 fd6ad885 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 fd6ad885 | /usr/share/gems/gems/apipie-rails-1.2.3/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/etag.rb:27:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/conditional_get.rb:27:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 fd6ad885 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:266:in `context'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:260:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/cookies.rb:697:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:98:in `run_callbacks'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 fd6ad885 | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/rack/logger.rb:37:in `call_app'
 fd6ad885 | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/rack/logger.rb:28:in `call'
 fd6ad885 | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 fd6ad885 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 fd6ad885 | /usr/share/gems/gems/request_store-1.5.1/lib/request_store/middleware.rb:19:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 fd6ad885 | /usr/share/gems/gems/katello-4.11.1/lib/katello/prevent_json_parsing.rb:12:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/method_override.rb:24:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'
 fd6ad885 | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/executor.rb:14:in `call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 fd6ad885 | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 fd6ad885 | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
 fd6ad885 | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/engine.rb:539:in `call'
 fd6ad885 | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send'
 fd6ad885 | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'
 fd6ad885 | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/configuration.rb:272:in `call'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/request.rb:100:in `block in handle_request'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/request.rb:99:in `handle_request'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/server.rb:443:in `process_client'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/server.rb:241:in `block in run'
 fd6ad885 | /usr/share/gems/gems/puma-6.4.0/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
 fd6ad885 | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-04-05T09:40:08 [I|app|fd6ad885]   Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 10.4ms | Allocations: 5738)
2024-04-05T09:40:08 [I|app|fd6ad885]   Rendered layout api/v2/layouts/error_layout.json.erb (Duration: 16.6ms | Allocations: 11451)
2024-04-05T09:40:08 [I|app|fd6ad885] Completed 500 Internal Server Error in 249ms (Views: 17.4ms | ActiveRecord: 20.7ms | Allocations: 78718)

Looks like this may be relevant:

That view is in foreman_remote_execution. Beyond that, I’m not sure what’s going on here…

Hi Jeremy,
Thank you for the quick response.
Both rubygem-foreman_remote_execution and rubygem-hammer_cli_foreman_remote_execution are installed.
Here is what I found on the system.

root# find /usr/share -name "*execution_flag*"
/usr/share/gems/gems/foreman_remote_execution-12.0.5/app/views/api/v2/interfaces/execution_flag.json.rabl
/usr/share/foreman/app/views/api/v2/interfaces/execution_flag.json.rabl

Okay, I got this sorted but think there still may be an rpm problem.
The symlink “/usr/share/foreman/app/views/api/v2/interfaces/execution_flag.json.rabl” was pointing at “/usr/share/gems/gems/foreman_remote_execution-10.1.1/app/views/api/v2/interfaces/execution_flag.json.rabl” and should have been pointing at “/usr/share/gems/gems/foreman_remote_execution-12.0.5/app/views/api/v2/interfaces/execution_flag.json.rabl”.
I fixed the symlink and all is well.

1 Like

Which leaves the question why you have that symlink in the first place. I don’t have any links in that directory and no file execution_flag.json.rabl either.

foreman_remote_execution-10.1.1 is from 3.7. Thus if there was an issue, it should have been there longer. There was 10.1.2 and 11.1.1 before 12.0.5.

Is it possible you have upgraded and jumped a version, i.e. upgraded from 3.7 to 3.9 directly? Did you run foreman-installer after the upgrade and any update inbetween?

The last upgrade was from 3.8 to 3.9. We always follow your docs explicitly and upgrade one minor version when a version two points ahead is released. Foreman-installer is run whenever a Foreman package is installed, even when it is a patchlevel update of one package.
I have no insight or explanation for what you have on your system. I can only communicate what is on ours.