fusio icon indicating copy to clipboard operation
fusio copied to clipboard

"An error occurred at the worker: Provided action does not exist" error after restart

Open GNazar opened this issue 2 years ago • 2 comments

"An error occurred at the worker: Provided action does not exist" an error happens after Fusio instance is restarted.

Steps:

  1. Create action Worker-PHP
  2. Create a route and assign action
  3. Call route to make sure it is working
  4. Reboot Fusio docker containers
  5. Call route.

Actual result: { "success": false, "message": "An error occurred at the worker: Provided action does not exist" } Expected result: Successful response returned by Fusio Workaround: Go to created action and press Update and then Save

GNazar avatar Feb 07 '23 08:02 GNazar

Hi, ok I think I have found the problem, in general if you save an action Fusio will communicate those changes also to all activated workers, but once the worker has received the action, it also saves it at the worker file system. Could you try to mount the /var/www/html/worker/actions folder of the PHP worker to your filesystem, through this you should keep all actions which are persisted at the worker also after reboot.

chriskapp avatar Feb 07 '23 22:02 chriskapp

Thank you, will try that

GNazar avatar Feb 14 '23 15:02 GNazar