apioo / fusio

Open source API management platform

Home Page:https://www.fusio-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

GNazar opened this issue · comments

commented

"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

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.

commented

Thank you, will try that