-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bug: ArchiveBox doesn't work on NFS/SMB/FUSE drives that disallow root ownership or have root_squash
set
#1304
Comments
This only happens if your NFS volume disables or remaps permissions. The solution is not to remove the chmod but rather to set PUID & PGID environment variables to the same values that your NFS server enforces. |
This is not always do-able because my server enforces the owner group id to 0 for all files and in this case, you cannot just set PGID=0 in env to fix this issue because you will have to allow root access for this NFS client as well. The PUID is already set to the correct value and that PUID does have read/write permission in the mounted dir. (And actually, the owner of the folder) |
hmm that's somewhat usual but I guess I can allow PGID=0. I just pushed a commit to You can get it with |
The strange thing is, even after set |
Ah it looks like you're using the AB in Docker starts running as root to create the data dir and set it up correctly, so when it drops down to a sub-user with fewer permissions it wont be able to modify the The security benefit that https://superuser.com/questions/1737302/root-squashing-for-nfs-and-smb-clarification |
root_squash
set
In my case, the fix here was to disable
and then verify that the NFS server exports reflects the new option with |
Describe the bug
If the docker-entry point failed to chown the archive folder, it quits immediately, so that the container does not run at all, make it impossible to run archivebox with an nfs-mounted volume as the archive folder.
I'm currently using this with a modified entrypoint which removed the line to chmod everything under DATA dir.
Steps to reproduce
Create an NFS volume with docker:
docker volume create --driver local --opt type=nfs --opt o=addr=[ip-address],rw --opt device=:[path-to-directory] [volume-name]
Use this as the archivefolder in docker-compose.yml:
- volume-name:/data/archive
Start container. The conatiner quit right after it failed to chown the nfs mounted folder
Screenshots or log output
ArchiveBox version
The text was updated successfully, but these errors were encountered: