-
Hey everyone! We have been using a version 3 (I think?) for a while now. The main page says api version "6.3.8.0" the login of the backend says 2.0. This version has been working great. We installed via Docker and everything worked fine. The problems came with upgrading to 4.0.4. We ran into issues on the upgrade itself talking about foreignkey restraints being an issue, and then issues with identity. In the end, given the problems, we decided to just roll up a new install and manually move everything over. In this new setup, we decided to go with no docker, and so we installed Fusio 4.0.4 into an nginx php-fpm setup. It took a while, but we got everything working great except for one thing - The PHP worker. So the first issue came with trying to get a worker operating. The source on github for it has what I thought were all the files needed, but the worker doesn't work, complaining about missing files. There was no vendors folder for the worker in the source. After fighting with moving the main fusio's vendor folder over, but it still failing, we just ripped the directory from the existing docker installation. We were able to point the existing 3 server to that worker, and it worked. So first question is, how do we install the php worker without docker? The second issue we're having is with the new 4.0.4 fusio, we setup the worker in the config file, but every time we try to create and execute a PHP-Worker action, it feeds us back this error: Our config has this uncommented at the top of it: Is there a bug and something we can do to fix the utilization of workers in 4.0.4 fusio? If not, is there something I can provide to help troubleshoot? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Oh also, the "." character is no longer allowed in usernames, which we use constantly! Is that something of a security concern that was removed? Can we get that back? |
Beta Was this translation helpful? Give feedback.
-
Hi @cryoaura thanks for the feedback, so in general you can easily run the PHP worker with a simple webserver like Apache or Nginx, you only need to create a dedicated domain for the worker and point it to the Regarding the dot at the username, this was indeed no intentional change, with the 4.0 version we have added an additional validation layer at our services and a dot was not included in this rule, I have just added a fix to allow the dot at the username again s. apioo/fusio-impl@ea5c132 In general regarding the worker setup we currently planing to redesign the worker system for the next 5.0 major version. We thinking about making our worker compatible with a function as a service provider like AWS lambda, so that you can easily run and scale your action code, so if you have in general some ideas or issues regarding the worker system then please let me know then we could consider this for the redesign. |
Beta Was this translation helpful? Give feedback.
-
For anyone curious on the configuration.php file changes not taking effect - it appears to cache, maybe by design? There's a cache folder in the fusio folder, and container.php in there that contains all those settings. So changing worker settings or token expiration requires a deletion of the container.php file INSIDE the cache folder, not the actual container.php file. On next load, it will regenerate with the new settings. |
Beta Was this translation helpful? Give feedback.
For anyone curious on the configuration.php file changes not taking effect - it appears to cache, maybe by design? There's a cache folder in the fusio folder, and container.php in there that contains all those settings. So changing worker settings or token expiration requires a deletion of the container.php file INSIDE the cache folder, not the actual container.php file. On next load, it will regenerate with the new settings.