You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into an issue when developing a Sylius plugin (with the official skeleton) using this image, I'm not sure if its because I'm running Podman on Fedora in rootless mode (the default docker setup on Fedora), but I'm fairly sure this is a problem inside the image itself.
Basically if I try and save a product from the admin I get a 500 error, which after opening a terminal and checking /var/log/nginx/error.log I can see the error:
This seems to be down to the folders /var/lib/nginx and /var/lib/nginx/tmp being owned by the user nginx but it seems NGINX and PHP are running under the user www-data, if I open the terminal on the container and change the owner on those two folders to www-data it works, but as these files are part of the container file system anytime you bring the container down and back up again their permissions are reset, which stops you being able to submit any forms that require to save the POST body to a temporary file (the product edit one seems to be one of those forms).
The text was updated successfully, but these errors were encountered:
I've run into an issue when developing a Sylius plugin (with the official skeleton) using this image, I'm not sure if its because I'm running Podman on Fedora in rootless mode (the default docker setup on Fedora), but I'm fairly sure this is a problem inside the image itself.
Basically if I try and save a product from the admin I get a 500 error, which after opening a terminal and checking
/var/log/nginx/error.log
I can see the error:2023/10/16 10:45:38 [crit] 4#4: *1 open() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied), client: 10.89.3.5, server: , request: "POST /admin/products/1/edit HTTP/1.1", host: "127.0.0.1:8080", referrer: "http://127.0.0.1:8080/admin/products/1/edit"
This seems to be down to the folders
/var/lib/nginx
and/var/lib/nginx/tmp
being owned by the usernginx
but it seems NGINX and PHP are running under the userwww-data
, if I open the terminal on the container and change the owner on those two folders towww-data
it works, but as these files are part of the container file system anytime you bring the container down and back up again their permissions are reset, which stops you being able to submit any forms that require to save the POST body to a temporary file (the product edit one seems to be one of those forms).The text was updated successfully, but these errors were encountered: