Code development platform for open source projects from the European Union institutions 🔵 EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content

🐛 Permission denied in the logs of the container

Version
v0.48.6

Actual Behavior

Since NGINX is run as user www-data instead of nginx (to be able to read certificates bind-mounted in the container), we can see "Permission denied" errors in the logs regarding files in the folder /var/lib/nginx/state/....

Doing an ls -lh reveals that the folder is owned by nginx:root.

NB: It would seem that this folder only exists for NGINX+ and not NGINX FOSS, and it is created during installation.

Desired Behavior

The folder should be owned by www-data:www-data.

Edited by David Jose DELASSUS