-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission issues with docker-sync, php-dev-macos in macos environment #292
Comments
It seems your codebase owned by |
Hmm.. i have renamed docker-compose.override.yml to .bak so to omit this file. This file mounts a volume codebase that i don't need it as i want the docker-sync to mount my own folder. Is this something that has any relation to my issue ? |
|
I have the same issue on Linux. Any suggestions? It was not presented month ago, didn't know what happens, but I bet on new version of Docker4Drupal 5.0.6 where is new image versions.
If I set to folder 777 chmod, than install is passed, but the files is not accessable on the host anymore. Months ago I use:
But this fix was for 4.x, not for 5.x where is uid/guid is became 1000. |
Created the same new project, but on 5.0.5, there is no problem. UPD. Files, for translations, for example, not editable, but webserver can create folder by itself and can edit settings.php, which also has problems with permissions on 5.0.6 |
See wodby/php#22 to understand better the permissions problem. In short, fpm should not have write permissions to your codebase except for specific directories like |
@csandanov i use -dev in php container. Now it seems everything normal. I console every container and the wodby user is the owner of every file and folder. It seems great but it isn't :( In Drupal Status report, it says that the directory sites/default/files is not writable. But nginx and php container have the right permissions... UPDATE Let's take as example the folder sites/default/files. Giving In nginx container: The drupal says that the directory sites/default/files is not writable !! Which user is responsible to drupal installation for accessing files folder ? The fact that the nginx and php container can write into this folder is not enough ? If i give 777 permissions to that folder, the message is gone. But i want to find the root of the problem and not just bypass it. |
PHP-FPM runs from |
But in fact, 5.0.6 hasn't access to I think the problem is only for newer version of php container. I just use 5.0.5 for new project and haven't any problem with it, using of 5.0.6 is not possible due to permission problems. |
This is the latest vanilla Drupal:
|
Hm.. i am getting to the point. So, i gave @csandanov you refer helper-scripts and i am trying to understand what In documentation we read
What is the Files volume ? I thought every file of interest is located at |
Ahh.. right, just ignore it. Files volume not used for local development, we use it when deploying apps via Wodby Platform to separate codebase and files. If you don't have enough permission to manipulate with ownership you can always run |
Describe your issue
I have followed the guide word by word. I use MacOS so i enabled docker-sync too. I have copied clean drupal files into my folder and the files are synced to containers. Then i try to start drupal installation but i have permission errors on creating folders or files. I notice that the nginx container uses uid/gid 1000/1000 but the php container uid/gid is 501/20 (i use php-dev-macos). Do you think this may cause the permission issue ? I send you screenshots with errors and the console of containers.
Output of
docker info
Contents of your
docker-compose.yml
Contents of your
.env
The text was updated successfully, but these errors were encountered: