Can’t Modify frozen String

Problem:

  1. Unable to view All Hosts
    When clicking into All Hosts option on left pane, error message Can’t Modify frozen String appears

  1. Host Groups objects properties returns Can’t Modify frozen String when clicked on objects sub-groups

Foreman and Proxy versions:
foreman-proxy-1.24.0-0.4.RC2.el7.noarch
foreman-1.24.0-0.14.RC2.el7.noarch

Distribution and version:

Other relevant data:

*ActionView::Template::Error*
**can't modify frozen String**

*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/parser.rb:93:in `force_encoding'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/parser.rb:93:in `convert'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/override.rb:154:in `source_element'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/override.rb:159:in `safe_source_element'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:76:in `create_action_command'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:65:in `execute_action'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:47:in `block (2 levels) in apply'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:47:in `each'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:47:in `block in apply'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:24:in `each'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/applicator.rb:24:in `apply'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/action_view_extensions.rb:9:in `initialize'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:233:in `new'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:233:in `block in query'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:229:in `map'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:229:in `query'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:220:in `find_templates'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:147:in `block in find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:187:in `block in cached'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:67:in `cache'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:186:in `cached'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template/resolver.rb:146:in `find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:81:in `block (2 levels) in _find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:77:in `each'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:77:in `block in _find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:76:in `each'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:76:in `_find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:56:in `find_all'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/path_set.rb:48:in `find'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/lookup_context.rb:116:in `find'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/partial_renderer.rb:423:in `find_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/partial_renderer.rb:418:in `find_partial'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/partial_renderer.rb:299:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/renderer.rb:49:in `render_partial'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/helpers/rendering_helper.rb:36:in `render'*
*/usr/share/foreman/app/views/hosts/index.html.erb:8:in `_9119fc8605bb8b507932757f77b83496'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template.rb:159:in `block in render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:170:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template.rb:354:in `instrument_render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/template.rb:157:in `render'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.3.2/lib/deface/action_view_extensions.rb:41:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/abstract_renderer.rb:44:in `block in instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/abstract_renderer.rb:43:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/template_renderer.rb:52:in `render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/template_renderer.rb:16:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/renderer.rb:44:in `render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/renderer/renderer.rb:25:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:103:in `_render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/streaming.rb:219:in `_render_template'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:84:in `render_to_body'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:52:in `render_to_body'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/renderers.rb:142:in `render_to_body'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/rendering.rb:25:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:36:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'*
*/opt/rh/rh-ruby25/root/usr/share/ruby/benchmark.rb:308:in `realtime'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/core_ext/benchmark.rb:14:in `ms'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:46:in `block in render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:31:in `cleanup_view_runtime'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:45:in `render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/implicit_render.rb:35:in `default_render'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'*
*/usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'*
*/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'*
*/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'*
*/usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/conditional_get.rb:25:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'*
*/usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'*
*/usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.14.0.rc1/lib/katello/prevent_json_parsing.rb:12:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'*
*/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'*
*/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'*
*/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'*
*/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'*
*/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'*
*/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'*

Thanks for testing out the RC and reporting issues! Which plugins and versions do you have installed? this information is available on the about page.
it looks like one of them is trying to modify these pages in a manner that is causing them to brake.

Hey Tomer,

Thank you for getting back soon.

Below are the list of plugins installed :

foreman-tasks
foreman_ansible
foreman_discovery
foreman_expire_hosts
foreman_monitoring
foreman_remote_execution
foreman_setup
foreman_templates
katello

Can you please also list the version of each plugin? perhaps one of them is an older release that isn’t compatible with the latest foreman?

Sure thing,
Apologies for that.

foreman-tasks 0.17.0
foreman_ansible 4.0.0
foreman_discovery 16.0.0
foreman_expire_hosts 6.0.2
foreman_monitoring 1.0.1
foreman_remote_execution 2.0.2
foreman_setup 6.0.0
foreman_templates 7.0.4
katello 3.14.0.rc

Can you please try upgrading to the latest versions and see if the issue persists? there are newer releases of Foreman, Katello and several of the plugins than what you have installed.

Hi Tomer,

Upgraded to the following on nightly

Name Version
foreman-tasks 0.17.3
foreman_ansible 4.0.0
foreman_discovery 16.0.0
foreman_expire_hosts 6.0.2
foreman_monitoring 1.0.1
foreman_remote_execution 2.0.3
foreman_setup 7.0.0
foreman_templates 7.0.4
katello 3.15.0.pre.master

Still received similar error on with frozen String

can you please paste the whole request from production.log for the “Started GET …” to “Completed…”?

Logs are as follow

2019-11-29T09:37:47 [I|app|8f4ea21a] Started GET “/hosts” for 10.80.44.243 at 2019-11-29 09:37:47 +0800
2019-11-29T09:37:47 [I|app|8f4ea21a] Processing by HostsController#index as HTML
2019-11-29T09:37:47 [I|app|8f4ea21a] Rendering hosts/index.html.erb within layouts/application
2019-11-29T09:37:47 [I|app|8f4ea21a] Deface: [WARNING] No :original defined for ‘host_list_expiration_js’, you should change its definition to include:

  • :original => ‘c2287793f8372bf04821845678f7b2ba7c82b079’*
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendered hosts/index.html.erb within layouts/application (9.9ms)
    2019-11-29T09:37:47 [W|app|8f4ea21a] Action failed
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendering common/500.html.erb within layouts/application
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendered common/500.html.erb within layouts/application (0.9ms)
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendered layouts/_application_content.html.erb (0.3ms)
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendering layouts/base.html.erb
    2019-11-29T09:37:47 [I|app|8f4ea21a] Rendered layouts/base.html.erb (1.9ms)
    2019-11-29T09:37:47 [I|app|8f4ea21a] Completed 500 Internal Server Error in 48ms (Views: 4.0ms | ActiveRecord: 7.8ms)
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Started GET “/hosts” for 10.80.44.243 at 2019-11-29 09:37:47 +0800
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Processing by HostsController#index as HTML
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendering hosts/index.html.erb within layouts/application
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Deface: [WARNING] No :original defined for ‘host_list_expiration_js’, you should change its definition to include:
  • :original => ‘c2287793f8372bf04821845678f7b2ba7c82b079’*
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendered hosts/index.html.erb within layouts/application (8.7ms)
    2019-11-29T09:37:47 [W|app|dc6bb0c1] Action failed
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendering common/500.html.erb within layouts/application
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendered common/500.html.erb within layouts/application (0.6ms)
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendered layouts/_application_content.html.erb (0.2ms)
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendering layouts/base.html.erb
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Rendered layouts/base.html.erb (1.4ms)
    2019-11-29T09:37:47 [I|app|dc6bb0c1] Completed 500 Internal Server Error in 46ms (Views: 2.9ms | ActiveRecord: 7.5ms)

And the winner is:

https://github.com/theforeman/foreman_expire_hosts/search?q=host_list_expiration_js&unscoped_q=host_list_expiration_js

Needs a bump I assume @TimoGoebel

1 Like

Hm. That’s weird, looks like a regression in core. The plugin code has not been touched for ages. We’ll look into this.

2 Likes

for the record this is tracked at Bug #28375: Can't modify frozen String - Foreman on redmine

We updated the version of the deface gem in the 1.24 repo to 1.5 which does not seem to have this issue, as reported on Foreman 1.24RC3 - can't modify frozen String. Could you please try upgrading this package and see if it solves the issue for you too?

1 Like

Hi @tbrisker
I have updated my package to the following
tfm-rubygem-deface-1.5.3-1.el7.noarch

Frozen String issue has been resolved.

Thank you

Awesome. We’re preparing a release of foreman_expire_hosts that does not use deface to also workaround the issue. Currently the CI environment is giving us headaches for several days. Once that’s resolved, we can hopefully cut a new release for 1.24.

1 Like