[Foreman 2.3.1] Ansible variables are not imported,but presented as new

Hello foreman-community,
I have a Problem with importing ansible variables to foreman.
Importing ansible-roles in the first place works as intended, but importing the variables afterwards does not.

Foreman is installed on ubuntu 18.04 as deb packages via our own ansible-resources. Foreman is configured with ansible to create our organizations, locations, templates, users, compute_resources, user_groups, smart_proxies and so on to the point were i can directly provision the first machine…

Problem:

  1. It is not possible to import ansible-variables.
  2. I get a list of variables available by hitting Configure->Ansible Variables -> “Import from proxy”.
  3. Then I check “Toggle: New” and hit update.
  4. I am redirected to the empty list of “Ansible Variables”…
  5. hitting “import from proxy” again and repeat from point 2)

Expected outcome:
Ansible-variables will be imported and the new import from proxy list is empty

Foreman and Proxy versions:
Foreman 2.3.1
Foreman-Proxy 2.3.1

Foreman and Proxy plugin versions:
foreman-tasks 3.0.0
foreman_ansible 6.0.0
foreman_bootdisk 17.0.2
foreman_remote_execution 4.2.0

Distribution and version:
ubuntu 18.04, Foreman Installed as deb packages via ansible, worked on 2.1.4 before, does not work on a newly installed or sequentially updated instance

Other relevant data:

Afterwards i noticed something even worse, when you want to remove variables you get an error with this output:
I am not sure if this is the same or a different Problem, but it happens in a comparable context…

2021-01-07T17:45:23 [I|app|96c1d6bc] Started POST "/ansible/ansible_variables/confirm_import" for 127.0.0.1 at 2021-01-07 17:45:23 +0100
2021-01-07T17:45:23 [I|app|96c1d6bc] Processing by AnsibleVariablesController#confirm_import as HTML
2021-01-07T17:45:23 [I|app|96c1d6bc]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"Redacted?==", "changed"=>{"obsolete"=>{"ansible-role-package-repos"=>{"int_repo_srv_debi"=>"{\"id\":25,\"key\":\"int_repo_srv_debi\",\"created_at\":\"2020-07-07T14:53:37.666+02:00\",\"updated_at\":\"2020-07-07T14:53:37.666+02:00\",\"default_value\":\"{{ int_repo_srv }}/repository/debian\",\"path\":\"fqdn\\nhostgroup\\nos\\ndomain\",\"description\":null,\"validator_type\":null,\"validator_rule\":null,\"key_type\":\"string\",\"override\":false,\"required\":false,\"merge_overrides\":false,\"avoid_duplicates\":false,\"omit\":null,\"merge_default\":false,\"hidden_value\":\"*****\",\"ansible_role_id\":13,\"imported\":true}", "int_repo_srv_ubun"=>"{\"id\":24,\"key\":\"int_repo_srv_ubun\",\"created_at\":\"2020-07-07T14:53:37.649+02:00\",\"updated_at\":\"2020-07-07T14:53:37.649+02:00\",\"default_value\":\"{{ int_repo_srv }}/repository/ubuntu\",\"path\":\"fqdn\\nhostgroup\\nos\\ndomain\",\"description\":null,\"validator_type\":null,\"validator_rule\":null,\"key_type\":\"string\",\"override\":false,\"required\":false,\"merge_overrides\":false,\"avoid_duplicates\":false,\"omit\":null,\"merge_default\":false,\"hidden_value\":\"*****\",\"ansible_role_id\":13,\"imported\":true}"}}}, "commit"=>"Update"}
2021-01-07T17:45:23 [W|app|96c1d6bc] undefined method `[]' for nil:NilClass
2021-01-07T17:45:23 [I|app|96c1d6bc] Backtrace for 'undefined method `[]' for nil:NilClass' error (NoMethodError): undefined method `[]' for nil:NilClass
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:101:in `block in delete_old_variables'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:125:in `block (2 levels) in iterate_over_variables'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:124:in `each'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:124:in `map'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:124:in `block in iterate_over_variables'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:123:in `each'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:123:in `reduce'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:123:in `iterate_over_variables'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:99:in `delete_old_variables'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/services/foreman_ansible/variables_importer.rb:73:in `finish_import'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_ansible-6.0.0/app/controllers/ansible_variables_controller.rb:48:in `confirm_import'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:195:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:41:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rescue.rb:22:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:136:in `process'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:39:in `process'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:190:in `dispatch'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:254:in `dispatch'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `each'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `serve'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/static_dispatcher.rb:66:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/extractor/recorder.rb:137:in `call'
 96c1d6bc | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 96c1d6bc | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:40:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 96c1d6bc | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:101:in `run_callbacks'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:37:in `call_app'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:28:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 96c1d6bc | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/static.rb:126:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/secure_headers-6.3.1/lib/secure_headers/middleware.rb:11:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/engine.rb:527:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/configuration.rb:228:in `call'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:713:in `handle_request'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:472:in `process_client'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:328:in `block in run'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
 96c1d6bc | /usr/share/foreman/vendor/ruby/2.5.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2021-01-07T17:45:23 [I|app|96c1d6bc]   Rendering common/500.html.erb within layouts/application
2021-01-07T17:45:23 [I|app|96c1d6bc]   Rendered common/500.html.erb within layouts/application (Duration: 3.8ms | Allocations: 1045)
2021-01-07T17:45:23 [I|app|96c1d6bc]   Rendered layouts/_application_content.html.erb (Duration: 2.6ms | Allocations: 5701)
2021-01-07T17:45:23 [I|app|96c1d6bc]   Rendering layouts/base.html.erb
2021-01-07T17:45:23 [I|app|96c1d6bc]   Rendered layouts/base.html.erb (Duration: 3.9ms | Allocations: 6728)
2021-01-07T17:45:23 [I|app|96c1d6bc] Completed 500 Internal Server Error in 27ms (Views: 17.2ms | ActiveRecord: 1.5ms | Allocations: 23372)

Foreman version: 2.3.1
Plugins: 
 - foreman-tasks 3.0.1
 - foreman_ansible 6.0.0
 - foreman_bootdisk 17.0.2
 - foreman_remote_execution 4.2.0

I think this has been fixed in foreman_ansible 6.0.1 - Bug #31302: Unable to import Ansible variables variables - Ansible - Foreman

Thank you for the answer!
I have searched quite a while if i can find some information, but missed that one.

Do you know when this will be available in the deb repos?
As of know there is only ruby-foreman-ansible/plugins,plugins,now 6.0.0-1 all [installiert] available.

i also get an error when i hit “schedule-remote-job” on a host, but i dont know if this ansible or rex related

foreman@mch005yx:~$
foreman@mch005yx:~$ foreman-rake errors:fetch_log request_id=a93fb9f6
2021-01-12T11:24:51 [I|app|a93fb9f6] Started GET "/job_invocations/new?host_ids%5B%5D=7" for 127.0.0.1 at 2021-01-12 11:24:51 +0100
2021-01-12T11:24:51 [I|app|a93fb9f6] Processing by JobInvocationsController#new as HTML
2021-01-12T11:24:51 [I|app|a93fb9f6]   Parameters: {"host_ids"=>["7"]}
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendering vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/new.html.erb within layouts/application
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered template_inputs/_invocation_form.html.erb (Duration: 6.8ms | Allocations: 6327)
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb (Duration: 42.0ms | Allocations: 20085)
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/new.html.erb within layouts/application (Duration: 48.9ms | Allocations: 25985)
2021-01-12T11:24:51 [W|app|a93fb9f6] undefined method `name' for nil:NilClass
2021-01-12T11:24:51 [I|app|a93fb9f6] Backtrace for 'undefined method `name' for nil:NilClass' error (ActionView::Template::Error): undefined method `name' for nil:NilClass
 a93fb9f6 | /usr/share/foreman/app/helpers/templates_helper.rb:65:in `template_input_f'
 a93fb9f6 | /usr/share/foreman/app/views/template_inputs/_invocation_form.html.erb:2:in `block in _b126cf0185d65706fa651bda642045d8'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/app/views/template_inputs/_invocation_form.html.erb:1:in `_b126cf0185d65706fa651bda642045d8'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:22:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:34:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:30:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:64:in `block (10 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:63:in `each'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:63:in `block (9 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:61:in `block (8 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:59:in `block (7 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:57:in `each'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:57:in `block (6 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:56:in `block (5 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:55:in `block (4 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:2191:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:54:in `block (3 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:52:in `each'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:52:in `block (2 levels) in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:1009:in `fields_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:29:in `block in _9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/capture_helper.rb:45:in `capture'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/form_helper.rb:452:in `form_for'
 a93fb9f6 | /usr/share/foreman/app/helpers/form_helper.rb:303:in `form_for'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/_form.html.erb:1:in `_9946d34927132313b84d79f4d74ccfdd'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:357:in `block in render_partial'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:346:in `render_partial'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/partial_renderer.rb:317:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:65:in `render_partial_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:27:in `render_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:22:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:34:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/helpers/rendering_helper.rb:30:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/foreman_remote_execution-4.2.0/app/views/job_invocations/new.html.erb:4:in `_a3f430ae9c1d2ff6533e031ecc45e580'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:274:in `_run'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:185:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:182:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:385:in `instrument_render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/template.rb:183:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:57:in `block in render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:56:in `render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/template_renderer.rb:13:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:117:in `block in _render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/base.rb:304:in `in_rendering_context'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:116:in `_render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:103:in `render_to_body'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/rendering.rb:25:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:36:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
 a93fb9f6 | /usr/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:43:in `render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:195:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:139:in `run_callbacks'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/callbacks.rb:41:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/rescue.rb:22:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `block in instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/notifications.rb:180:in `instrument'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activerecord-6.0.3.4/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/abstract_controller/base.rb:136:in `process'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionview-6.0.3.4/lib/action_view/rendering.rb:39:in `process'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:190:in `dispatch'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_controller/metal.rb:254:in `dispatch'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:49:in `block in serve'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `each'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/journey/router.rb:32:in `serve'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-dsl-2.3.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/static_dispatcher.rb:66:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/extractor/recorder.rb:137:in `call'
 a93fb9f6 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/apipie-rails-0.5.18/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 a93fb9f6 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
 a93fb9f6 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/cookies.rb:648:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/callbacks.rb:101:in `run_callbacks'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:37:in `call_app'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/rack/logger.rb:28:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 a93fb9f6 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/request_id.rb:27:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/activesupport-6.0.3.4/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/executor.rb:14:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/static.rb:126:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/actionpack-6.0.3.4/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/secure_headers-6.3.1/lib/secure_headers/middleware.rb:11:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/engine.rb:527:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/configuration.rb:228:in `call'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:713:in `handle_request'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:472:in `process_client'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/server.rb:328:in `block in run'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/puma-4.3.7/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
 a93fb9f6 | /usr/share/foreman/vendor/ruby/2.5.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendering common/500.html.erb within layouts/application
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered common/500.html.erb within layouts/application (Duration: 4.4ms | Allocations: 6052)
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered layouts/_application_content.html.erb (Duration: 3.1ms | Allocations: 5747)
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendering layouts/base.html.erb
2021-01-12T11:24:51 [I|app|a93fb9f6]   Rendered layouts/base.html.erb (Duration: 5.4ms | Allocations: 6739)
2021-01-12T11:24:51 [I|app|a93fb9f6] Completed 500 Internal Server Error in 100ms (Views: 17.3ms | ActiveRecord: 13.6ms | Allocations: 56746)

Foreman version: 2.3.1
Plugins:
 - foreman-tasks 3.0.0
 - foreman_ansible 6.0.0
 - foreman_bootdisk 17.0.2
 - foreman_remote_execution 4.2.0

This is most likely caused by, or at least related to, Bug #30933: undefined method `resource_type' for nil:NilClass when going to new job invocation form with template which has input of type search - Foreman Remote Execution - Foreman . It is fixed but not released yet

Hello,
while waiting for the foreman-ansible plugin 6.0.1 to appear in dep packages, maybe can someone explain or link resources how the plugin can be installed from source or from the ruby-gem?

I found foreman_ansible | RubyGems.org | your community gem host while searching, but I have no experience with ruby at all.

This is by no means a forced way to get this working, but I am eager to learn more about how foreman works, and this could be a start for that.

Thank you very much!
fgoebel

OK, nvm… that was easier than i thougth…
I just tried the instructions provided here Version 14 - History - How to Install a Plugin - How to Install a Plugin - Foreman like:

# stop foreman services
sudo apt purge ruby-foreman-ansible
sudo su - foreman -s /bin/bash
echo "gem 'foreman_ansible'" > bundler.d/Gemfile.local.rb
export http_proxy=yaddayadda
bundle update foreman_ansible
# start foreman services

I am aware that this is only to test and no productive install ;-D

Ok, do not do this xD

As the plugin installed successfull, i am obviously missing some resources for foreman and it is no longer possible to create a host for example…

OK, I will wait for the package…