-
The filesystem is readonly, what can I do? Errors are like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed!The problem is in the NFS server configuration! TL;DR:Remove ResearchSo I found out that if user www-data had pihole as the primary group, I was able to write the gravity.db. As soon as I made www-data primary again and pihole the secondary group again, the permission was denied. However, if I did the same on the NFS server (by adding group 999 as a secondary group to user www-data), all was fine! So now I knew it had to do something with the NFS communication. After some DuckDuckGo-ing I found this quote:
This means that when FixSo to fix our permissions problem here, I have edited my Now it works with a fresh install with persistentVolumeClaim:
enabled: true
storageClass: nfs-client
accessModes:
- ReadWriteOnce And the default file permissions: root@pihole-xxxxxxxxxx-xxxxx:/# ls -lahF /etc/pihole/
total 91M
drwxrwxr-x 3 pihole pihole 4.0K Sep 30 05:50 ./
drwxr-xr-x 1 root root 4.0K Sep 30 05:46 ../
[...]
-rw-rw-r-- 1 pihole pihole 67M Sep 30 05:47 gravity.db
[...] Hope this helps! Note: The config file also recommends to read http://wiki.debian.org/SecuringNFS, so that's a good next step. :-) PS: Thanks to @i5Js, your research helped a lot to pinpoint the exact problem! Thanks to @brnl for this, as discussed here: #39 (comment) |
Beta Was this translation helpful? Give feedback.
Fixed!
The problem is in the NFS server configuration!
TL;DR:
Remove
--manage-gids
from theRPCMOUNTDOPTS
in the file/etc/default/nfs-kernel-server
on the NFS server and restart thenfs-kernel-server
service.Research
So I found out that if user www-data had pihole as the primary group, I was able to write the gravity.db. As soon as I made www-data primary again and pihole the secondary group again, the permission was denied. However, if I did the same on the NFS server (by adding group 999 as a secondary group to user www-data), all was fine!
So now I knew it had to do something with the NFS communication. After some DuckDuckGo-ing I found this quote:
NFS permission problem with seconda…