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