Hi all -
I have a working pihole implementation in docker on Mac, but every time the container restarts or gravity is updated, I receive a dozen or so permission denied errors for temporary files with the path in the subject line. I didn't realize this was going on for some time and found I had 50k or so of these temporary empty files that I had to delete manually.
Here is my debug token.
Here is an example of the files created and the permissions that pihole is setting when creating them.
All of the files below were created by pihole, but the ones starting with sed* are set with permissions that cannot be opened (or I'm guessing deleted) by pihole.
---------- 1 jason staff 0B Sep 24 10:51 sedzZvoL2
---------- 1 jason staff 0B Sep 24 10:51 sedzkX1br
---------- 1 jason staff 0B Sep 24 10:59 sedzlewDu
---------- 1 jason staff 0B Sep 24 10:51 sedzwKwnZ
-rw-r--r--@ 1 jason staff 274B Sep 24 10:59 setupVars.conf
Lastly, here are the errors I see in the live logs:
09/24/2023 10:59:57 AM
sed: couldn't open temporary file /etc/pihole/sedXgYw8T: Permission denied
09/24/2023 10:59:57 AM
sed: couldn't open temporary file /etc/pihole/sedUDFPk6: Permission denied
09/24/2023 10:59:57 AM
sed: couldn't open temporary file /etc/pihole/sedGMq4Mk: Permission denied
09/24/2023 10:59:57 AM
sed: couldn't open temporary file /etc/pihole/sedxq2nRB: Permission denied
09/24/2023 10:59:57 AM
sed: couldn't open temporary file /etc/pihole/sed3FmY4N: Permission denied
The one effect I can observe that this this has on my implementation is that my pihole will not work upon reboot until I manually go into DNS settings and save the page without making any changes. This results in a handful of additional sed files being created, but also makes name resolution work for the pihole.
PS: there's a related thread here, but in this case the files were being created in the dnsmasq.d folder, which is not the case for me. I tried the solution there which was to start with a new volume mount in a different filesystem location and the errors still occurred.
PPS: I tried changing dnsmasq_user in my environment variables from pihole to root to see if it made a difference and it does not.
Thanks for reviewing!