Dynflow erro on remote jobs and Ansible role imports

Problem:
When trying to import Ansible roles or execute jobs, I receive the following error:

The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer

Expected outcome:
Job to execute and Ansible Roles to import
Foreman and Proxy versions:
3.6.1
Foreman and Proxy plugin versions:
3.6.1
Distribution and version:
AlmaLinux 8.7
Other relevant data:

2023-05-05T09:37:14 [I|app|d4ce5da6] Started POST "/ansible/ansible_roles/confirm_import" for 192.168.124.1 at 2023-05-05 09:37:14 -0400
2023-05-05T09:37:14 [I|app|d4ce5da6] Processing by AnsibleRolesController#confirm_import as JSON
2023-05-05T09:37:14 [I|app|d4ce5da6]   Parameters: {"changed"=>{"new"=>{"httpd"=>{"id"=>nil, "name"=>"httpd", "created_at"=>nil, "updated_at"=>nil}}}, "proxy"=>1, "ansible_role"=>{}}
2023-05-05T09:37:14 [E|app|d4ce5da6] Failed enqueuing SyncRolesAndVariables to Dynflow(default): RuntimeError (The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer)
2023-05-05T09:37:14 [W|app|d4ce5da6] The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer
2023-05-05T09:37:14 [I|app|d4ce5da6] Backtrace for 'The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer' error (RuntimeError): The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer

So same 500 error on a fresh build of Foreman using the following installation commands.

foreman-installer \
> --enable-foreman-proxy \
> --foreman-proxy-tftp=true \
> --foreman-proxy-tftp-servername=192.168.124.250 \
> --enable-foreman-plugin-remote-execution \
> --enable-foreman-proxy-plugin-remote-execution-script \
> --enable-foreman-plugin-ansible \
> --enable-foreman-proxy-plugin-ansible
``

Same here, tried build of all combination of Debian 10/11 foreman 3.3, 3.4, 3.5, 3.6, 3.7, nightly…
Still getting “The Dynflow world was not initialized yet.” while trying to import ansible roles on fresh installs.

Hi, sorry for the delay. We were just looking at a similar thing in a different thread[1]. Could you take a look at that?

[1] - Remote execution dynflow not initialized yet

1 Like