Unable to assigne ansible Roles to Host / Hostgroups

I just installed 2.3.4 and restarted the services with ‘katello-service restart’. Unfortunately, the issue of the Ansible role switcher not appearing is still occurring. Is there any type of cache to clear or command to rebuild javascripts that needs to be run?
If not, what log file would you look into to try to help find the issue?

Running:
foreman-1.21.3
katello-3.11.1
tfm-rubygem-foreman_ansible-2.3.4

Thanks again for looking into this issue.

I have done the same and the bug still present with me. Same Version but without katello.

@Ondrej_Prazak, @ezr-ondrej,
Hi all,

i’ve already patched my lab, but the new version did not fix that issue.
Is there another patch of core components needed?
As far as i understand the comments in the PR, it was expected that the patch for foreman_ansible would fix that issue.
The PR for the fix in foreman core was closed in favor of the patch for foreman-ansible…

Is there anything i can do to help fix this bug?

Regards,
Bastian

I noticed that after installing version 2.3.4 I have the following in the log. Maybe that’s the reason for the problem.

2019-05-08T07:08:22 [I|app|ab30a973] Deface: [WARNING] No :original defined for ‘ansible_roles_tab’, you should change its definition to include:
:original => ‘8c63c5282ee199068bfd65475e13066ee981089a’
2019-05-08T07:08:22 [I|app|ab30a973] Deface: [WARNING] No :original defined for ‘ansible_roles_tab_content’, you should change its definition to include:
:original => ‘738d75b8975dc598101e60505810ef267e2c43ae’

Hi,

that is the same error i initial reported … thought that this update was the fix for that…

Regards

I’m really hoping that I’m missing something fundamental. This would appear to me to be a bit of a show stopper if you’re depending on Ansible integration.

I’ve followed the pull request through, and I appear to have the updated RPMs installed, yet I still have no Ansible roles available in a host edit session. I’m seeing the same warnings that Edll posted.

Deface warnings should be harmless, do you see any error in browser JS console?

I’m not sure if this is the right one but I can see it in the console:

TypeError: “l.propsToSnakeCase is not a function”
getAnsibleRoles foreman_ansible-11e40d5c9201b72b3e66.js:1
Redux 2
value foreman_ansible-11e40d5c9201b72b3e66.js:1
React 8
n i18nProviderWrapperFactory.js:18
i es6.promise.js:66
O es6.promise.js:83
c _microtask.js:18
react-dom.production.min.js:187:139
React 12
n i18nProviderWrapperFactory.js:18
i es6.promise.js:66
O es6.promise.js:83
c _microtask.js:18

Unhandled promise rejection TypeError: “l.propsToSnakeCase is not a function”
getAnsibleRoles foreman_ansible-11e40d5c9201b72b3e66.js:1
Redux 2
value foreman_ansible-11e40d5c9201b72b3e66.js:1
React 8
n i18nProviderWrapperFactory.js:18
i es6.promise.js:66
O es6.promise.js:83
c _microtask.js:18
es6.promise.js:101
t es6.promise.js:101
exports _perform.js:3
P es6.promise.js:95
exports _invoke.js:5
_task.js:35
y _task.js:21
v _task.js:25

Hope it helps

Ok, that may help. Meanwhile I tested 1.22 RC1 with foreman_ansible 2.3.3 (even the one from the original report) and it works. So it may be different issue. @ezr-ondrej do you have any other ideas?

I see this when beginning a host edit:


react-dom.production.min.js:187 TypeError: (0 , l.propsToSnakeCase) is not a function
at foreman_ansible-11e40d5c9201b72b3e66.js:1
at index.js:8
at Object.getAnsibleRoles (bindActionCreators.js:3)
at t.value (foreman_ansible-11e40d5c9201b72b3e66.js:1)
at Wi (react-dom.production.min.js:218)
at Vi (react-dom.production.min.js:211)
at $i (react-dom.production.min.js:210)
at qi (react-dom.production.min.js:210)
at Di (react-dom.production.min.js:208)
at fi (react-dom.production.min.js:206)
Lo @ react-dom.production.min.js:187
n.callback @ react-dom.production.min.js:194
Ia @ react-dom.production.min.js:143
Ba @ react-dom.production.min.js:144
Wi @ react-dom.production.min.js:219
Vi @ react-dom.production.min.js:211
$i @ react-dom.production.min.js:210
qi @ react-dom.production.min.js:210
Di @ react-dom.production.min.js:208
fi @ react-dom.production.min.js:206
enqueueSetState @ react-dom.production.min.js:147
w.setState @ react.production.min.js:12
(anonymous) @ i18nProviderWrapperFactory.js:18
Promise.then (async)
I18nProviderWrapper(Connect(t)) @ i18nProviderWrapperFactory.js:17
Ao @ react-dom.production.min.js:173
ci @ react-dom.production.min.js:201
ui @ react-dom.production.min.js:202
Vi @ react-dom.production.min.js:211
$i @ react-dom.production.min.js:210
qi @ react-dom.production.min.js:210
Di @ react-dom.production.min.js:208
fi @ react-dom.production.min.js:206
Zi @ react-dom.production.min.js:222
ts @ react-dom.production.min.js:223
cs.render @ react-dom.production.min.js:230
(anonymous) @ react-dom.production.min.js:234
Yi @ react-dom.production.min.js:221
ds @ react-dom.production.min.js:234
render @ react-dom.production.min.js:236
t.mount @ MountingService.js:26
(anonymous) @ foreman_ansible-11e40d5c9201b72b3e66.js:1
dispatch @ jquery.js:4737
b.handle @ jquery.js:4549
trigger @ jquery.js:7807
(anonymous) @ jquery.js:7875
each @ jquery.js:365
each @ jquery.js:137
trigger @ jquery.js:7874
(anonymous) @ application-1a0cbb115eb11e6b4835d94525d9fb9b6c39ee9f50112a41f122fc2eeca4d6a2.js:9
(anonymous) @ application-1a0cbb115eb11e6b4835d94525d9fb9b6c39ee9f50112a41f122fc2eeca4d6a2.js:1
dispatch @ jquery.js:4737
b.handle @ jquery.js:4549
trigger @ jquery.js:7807
(anonymous) @ jquery.js:7875
each @ jquery.js:365
each @ jquery.js:137
trigger @ jquery.js:7874
onLoad @ application-1a0cbb115eb11e6b4835d94525d9fb9b6c39ee9f50112a41f122fc2eeca4d6a2.js:1
l @ jquery.js:3187
fireWith @ jquery.js:3317
ready @ jquery.js:3536
L @ jquery.js:3552
Show 22 more frames
edit:1 [DOM] Found 2 elements with non-unique id #interface: (More info: https://goo.gl/9p2vKq) <fieldset id=​"interface" data-url=​"/​interfaces/​new">​…​​ <fieldset id=​"interface" data-url=​"/​interfaces/​new">​…​​
foreman_ansible-11e40d5c9201b72b3e66.js:1 Uncaught (in promise) TypeError: (0 , l.propsToSnakeCase) is not a function
at foreman_ansible-11e40d5c9201b72b3e66.js:1
at index.js:8
at Object.getAnsibleRoles (bindActionCreators.js:3)
at t.value (foreman_ansible-11e40d5c9201b72b3e66.js:1)
at Wi (react-dom.production.min.js:218)
at Vi (react-dom.production.min.js:211)
at $i (react-dom.production.min.js:210)
at qi (react-dom.production.min.js:210)
at Di (react-dom.production.min.js:208)
at fi (react-dom.production.min.js:206)

This appears when the main host pane appears, and remains when the Ansible pane is selected.

thanks @jkalchik and @Edll for the backtrace.
That is really unrelated to the issue solved in the PR. The function which is not found is introduced in 1.22, so this seems to be a core/plugin version mismatch (the plugin expect the core js helpers to be in newer version).

@Marek_Hulan any idea how it could have happen?

We missed that when we merged the new ansible roles switcher. The Foreman dependency should have been bumped back then. The easy way out now is to revert https://github.com/theforeman/foreman_ansible/commit/f06f1b3511a06b1ff67cc24f32e7dcf2d87cda6d and do new release for 1.21. The ansible role switcher will be available only with Foreman 1.22.

I’ll do it in a moment. I’ll update this thread.

foreman_ansible 2.3.5 released, packaging PRs for Foreman 1.21 are opened

if you want to test on rpm system before the package hits the repo, you can get the scratch build from http://koji.katello.org/kojifiles/work/tasks/6016/196016/tfm-rubygem-foreman_ansible-2.3.5-1.fm1_21.el7.noarch.rpm

1 Like

works for me. Thanks

Good news, downloaded the scratch build RPM, installed, upgraded, tested successfully, Marek.

My appreciation to all who dug in to this.

Thank you for all the work on this. I’ll keep my eye on 1.22.

Works for me too.
Thanks a lot to all. I appreciate your support and willingness to help!

I marked @Marek_Hulan post as working solution, so thread is solved.

Thanks!

Thanks everyone for confirmation. Note that in 1.22 (foreman_ansible 3.0) this component will be changed. We’ll be happy to hear your feedback once you upgrade. It would be also very beneficial for us if you could test our nightly builds or RCs, e.g. when we add new features. If you’re interested, please let us know, right now we have 1.22 RC1 test week and we are working on bigger foreman_ansible 3.0 release which will allow running ansible via ansible-runner.

@Marek_Hulan, I’d love to test on nightly builds in a sandbox… I respun a VM earlier this week, and can’t even install katello, it comes up with a puppet-agent version requirement that can’t be satisified with the configured repository list. :frowning: I’m using Foreman :: Plugin Manuals installing on CentOS7.

Hi,

After updating tfm-rubygem-foreman_ansible to version 2.3.5-1.fm1_21.el7.noarch I cannot use Ansible variables. When I’m trying to use ansible variables (https://foreman.*/ansible/ansible_variables) I have following error:

**Oops, we're sorry but something went wrong** undefined local variable or method 'hash_for_new_ansible_variable_path' for #&lt;#&lt;Class:0x0000000010f43868&gt;:0x00007f1b8700c518&gt; Did you mean? hash_for_edit_ansible_variable_path hash_for_ansible_variable_path hash_for_api_ansible_variable_path hash_for_ansible_variables_path hash_for_api_ansible_variables_path hash_for_api_ansible_role_path hash_for_api_ansible_roles_path hash_for_import_ansible_variables_path hash_for_edit_ansible_variable_url hash_for_api_ansible_variable_url hash_for_ansible_role_path hash_for_api_smart_variable_path hash_for_api_ansible_variables_url hash_for_ansible_variable_url hash_for_ansible_variables_url

And production.log:

2019-05-13T07:40:45 [I|app|3f5dac38]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.3.5/app/views/ansible_variables/index.html.erb within layouts/application
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.3.5/app/views/ansible_variables/index.html.erb within layouts/application (904.9ms)
2019-05-13T07:40:46 [W|app|3f5dac38] Action failed
ActionView::Template::Error: undefined local variable or method `hash_for_new_ansible_variable_path' for #<#<Class:0x0000000010f43868>:0x000000001105eae0>
Did you mean?  hash_for_edit_ansible_variable_path
               hash_for_ansible_variable_path
               hash_for_api_ansible_variable_path
               hash_for_ansible_variables_path
               hash_for_api_ansible_variables_path
               hash_for_api_ansible_role_path
               hash_for_api_ansible_roles_path
               hash_for_import_ansible_variables_path
               hash_for_edit_ansible_variable_url
               hash_for_api_ansible_variable_url
               hash_for_ansible_role_path
               hash_for_api_smart_variable_path
               hash_for_api_ansible_variables_url
               hash_for_ansible_variable_url
               hash_for_ansible_variables_url
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.3.5/app/views/ansible_variables/index.html.erb:5:in `_7a47cfe371295af77f2e99266b68c898'
/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/application_shared.rb:15: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.7.1/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.7.1/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.5/lib/rack/tempfile_reaper.rb:15:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/lib/rack/conditional_get.rb:25:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/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.5/lib/rack/session/abstract/id.rb:232:in `context'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/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.11.1/lib/katello/prevent_json_parsing.rb:12:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/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.5/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.5/lib/rack/urlmap.rb:68:in `block in call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.5/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'
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendering common/500.html.erb within layouts/application
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendered common/500.html.erb within layouts/application (1.6ms)
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendered layouts/_application_content.html.erb (0.6ms)
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendering layouts/base.html.erb
2019-05-13T07:40:46 [I|app|3f5dac38]   Rendered layouts/base.html.erb (1.8ms)
2019-05-13T07:40:46 [I|app|3f5dac38] Completed 500 Internal Server Error in 925ms (Views: 6.6ms | ActiveRecord: 5.4ms)

Is anyone has similar problem too?