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

Permission issue does not allow to create config file #14

Open
afdaniele opened this issue Apr 18, 2019 · 1 comment
Open

Permission issue does not allow to create config file #14

afdaniele opened this issue Apr 18, 2019 · 1 comment

Comments

@afdaniele
Copy link
Owner

If we install compose in a directory that does not belong to www-data (very common when the code is mounted from outside a Docker container), compose cannot create the configuration file for the core package at boot. This prevents the default value of maintenance_mode from metadata.json to be written, and the user is redirected to maintenance since the default value passed to Core::getSetting('maintenance_mode', 'core') is true.

We either show an error in this case or make it easier for the user to figure out what the issue is. Perhaps, we could use the entrypoint script to check and notify the user somehow (on-the-fly written page?).

@afdaniele
Copy link
Owner Author

Note, this happens when the Docker container is run before pulling the code. In fact, the entrypoint takes care of chown-ing the code already.

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