Pihole v5 - "attempting to write to readonly database" (Have already read previous posts)

Hey guys,

So I recently installed the Pihole/Pihole:latest docker container on my Portainer install and its all working as intended but I cannot add to my addlists I get the error "attempt to write a readonly database"
I have already read over some previous threads regarding missing permissions and I have attempted to replicate their success but its still broken for me.

Output of commands:

ls -lh /etc | grep pihole
drwxr-xr-x  1 pihole root   4.0K Jun 19 00:09 lighttpd
drwxrwsr-x+ 3 pihole pihole 4.0K Jun 19 00:28 pihole

ls -lh /etc/pihole/gravity.db
-rw-rw-r--+ 1 pihole pihole 5.0M Jun 19 00:10 /etc/pihole/gravity.db

groups pihole
pihole : pihole www-data

I have already attempted to add the www-data to the pihole user via "usermod -a -G pihole www-data"
then a reboot, still not working

debug log/token:
https://tricorder.pi-hole.net/w4pmc30y3j

Ok so a bit of an update:

If I run chmod 777 on my host /pihole/gravity.db I can modify the database until I reboot ( I assume the ACL gets reset)

before restart

root@omv:/srv/d1d9f653-e52b-4725-8611-445a70a553f1/pihole/pihole# getfacl gravity.db
# file: gravity.db
# owner: openmediavault-webgui
# group: openmediavault-config
user::rwx
group::rwx
other::rwx

after restart

root@omv:/srv/d1d9f653-e52b-4725-8611-445a70a553f1/pihole/pihole# getfacl gravity.db
# file: gravity.db
# owner: openmediavault-webgui
# group: openmediavault-config
user::rw-
group::rw-
other::r--

running the command setfacl -Rbn on that file or the pihole directory the file resides within it will still get reset upon reboot of the container.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.