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

thumbnails directory is not owned by www-data #2

Open
ppmt opened this issue Feb 22, 2017 · 2 comments
Open

thumbnails directory is not owned by www-data #2

ppmt opened this issue Feb 22, 2017 · 2 comments

Comments

@ppmt
Copy link

ppmt commented Feb 22, 2017

And because of this the generation of thumbnails for the albums is failing reverting back to the default icons

Forcing the directory to be owned by www-data fixed the issue? I guess it should be added in the dockerfile as well

@ppmt
Copy link
Author

ppmt commented Mar 1, 2017

I tried to add the chown command in the dockerfile to try to change the ownership but it would always fail

In the end I fix it by modifying the docker_entrypoint.sh file to add the command at the end. Right before the last line (exec "$@") I added:

chown -h www-data: /thumbnails/

And now it works. The thumbnails are generated.

@sebcworks
Copy link

This is a little late to answer, but this problem is surely linked to the fact that your "source" thumbnails folder (the one from your host) doesn't have the same uid as www-data inside the container.

The best way to use data with docker is to use volume, this will avoid this kind of problem.

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

2 participants