Skip to content
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

'make up' does not fully work on macOS, issue in gally-php container with setfacl command #541

Open
passionaute opened this issue Jun 16, 2023 · 1 comment

Comments

@passionaute
Copy link

Gally Platform version(s) affected: 1.0.x

Description
Following the steps here and reaching step 4 (make up), php container shows the below error:

2023-06-17 01:12:08 setfacl: var/cache: Not supported
2023-06-17 01:12:08 setfacl: var/log: Not supported

How to reproduce
Using a macOS, execute install steps until step 4.
Go to php container (gally-php) and check the logs.
You'll see the error above.

Possible Solution
On macOS, the file system does not support POSIX Access Control Lists (ACLs) by default. Therefore, the setfacl commands used in api/docker/php/docker-entrypoint.sh, which are commonly used in Linux environments, will not work as expected on macOS.
We can achieve similar results by using the chmod command to set permissions instead.

@passionaute
Copy link
Author

Quick and dirty fix:

in api/docker/php/docker-entrypoint.sh replace:

setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var
setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var
with:
chown -R www-data var/cache var/log var
chmod -R 777 var

AND

setfacl -R -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt
setfacl -dR -m u:www-data:rX -m u:"$(whoami)":rwX config/jwt
with
chown -R www-data config/jwt
chmod -R 777 config/jwt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant