-
Notifications
You must be signed in to change notification settings - Fork 376
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
Docker container issue: Folder not writable: /private/logs/ #256
Comments
cc @norweeg |
@alcalbg @s-kaczmarek That's very odd. Firstly I will say I built and am currently using the docker image constructed by the Dockerfile as it exists in my recent PR #254 and do not have this issue. In the Dockerfile, the directories |
This is how I run this container, with docker-compose file:
Maybe I messed up something with it, I don't know... Should I set GID 33 in docker compose file? Could you please give me an example of docker-compose file? |
what are the permissions on
I think
would probably be preferable so that you, outside the container (1000) and the filegator process inside the container (33) both have rwx on those directories
|
Thanks for your answer! Unfortunately, that didn't fix the issue. I still see error:
Further investigation and I've found, that this folder doesn't exist, so I decided to create it manually:
After a webpage refresh, this error disappeared, but left me with a blank, white page (filegator's favicon is visible). I tried to change permission to /private.logs folder to 777, but that didn't work too.
I've changed ownership once again as you recommended in a previous post, but still blank page. Is my docker-compose file valid? I'm not sure about this part:
|
Ok, I've created a container form an image on dockerhub: https://hub.docker.com/r/kwillia/filegator_docker My docker-compose looks like this:
Web GUI works just fine, but I wonder if mapping of volumes works at all, because after adding a few files via web interface, I can't see them in the filesystem:
|
Pushing the image to dockerhub will not change anything. Have you read up on how docker volumes work?? You appear to have created volumes, but then bind-mounted directories from your host to directories in question in your container despite that. Here's my docker-compose.yml version: '3.7'
services:
filegator:
...
volumes:
# docker volumes mapped to directories in the running container
- private:/var/www/filegator/private
# bind-mounted data directory on docker host mounted into the container
- /data/I/recovered/on/friends/failed/drive/data:/var/www/filegator/repository/
...
volumes:
private:
the permissions on the data directory as indicated by running also, please always use the |
@s-kaczmarek so where's this stand? is this resolved now for you? |
For me setting the ownership of the mounted directory to 33:33 fixed it. I also had another issue with a 500 error due to mounting an empty private dir, make sure the configured private dir has the initial files. |
Unfortunately, this is still an issue to me. I suspect changing the ownership of /var/www/filegator is not working as intended. It is probably connected to the behaviour of docker itself: https://stackoverflow.com/questions/26145351/why-doesnt-chown-work-in-dockerfile Here are the commands to reproduce the issue: git clone https://github.com/filegator/filegator.git |
I was able to fix it. Following the documentation of docker: https://docs.docker.com/engine/install/ubuntu/#prerequisites the issue lies within Docker as suspected. The packages I used and that are listed in apt are unofficial Docker packages. With the newest version of docker (at the time of writing Docker Version 24.0.5) it is working as expected. |
oh wow! you were using the really old docker that is in the ubuntu apt repos? ouch! yeah, that'll cause a LOT of issues. I have only ever used docker as setup from docker's own repos, so I guess that explains why I could not reproduce your problem. I also chown'd my log directory external to the docker build process |
Still having this issue :( Any solution? I have tried everything in this thread |
found the fix. Had to clone the repo and copy over the private folder and files to my mount. Then ran docker exec -u root filegator chown -R www-data:www-data /var/www/filegator/ Only works if I copy over the private folder with its files. |
the filegator image is based on debian buster and debian uses UID 33 for the www-data user, so you could also just |
Docker container created out of the image from your Docker file is not working properly - after accessing website, it says:
Folder not writable: /private/logs/
The text was updated successfully, but these errors were encountered: