-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Pihole won't start in docker: Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported) #1085
Comments
Please, what is the output of |
Thanks for replying!
Hope it helps. JD. |
Update: I tried something on the console:
I guess if getting file caps isn't possible setting them is neither. JD. |
Thanx for replying, I've set the caps exactly as in your hint - no change, pihole-FTL doesn't run. JD. |
Sorry, I can't answer that. I never used a Synology device. You could try to ask this at our Discourse Forum. |
Have you tried without Portainer? I'll try to set up a similar configuration on my DS, I need to update to v7 though. |
Can you post your environment settings? |
Update 2: I've searched around further and found this:
I've tried the manual from the link https://docs.docker.com/storage/storagedriver/overlayfs-driver/, but my docker-fs is still aufs.
Regards JD. |
Yes, if AUFS does not allow capabilities to be set then there will be issues starting. And we don't configure the kernel in the image, it uses the kernel of the host OS. |
Okay, that means for me pihole on docker/synology isn't an option any more.
hoping to change the storage driver from aufs to overlay2 or btrfs but nothing changed - driver is still aufs. JD. |
There are a number of users that have Pi-hole running on Synology. Do you know what filesystem you have the Synology set to use? My Synology Docker setup shows 'btrfs' since I'm using the HybridRaid format with my 2 disk unit. It sounds like you may have ext4 format which ends up as 'aufs' under Docker. |
You've supposed right - All of the hdds have ext4-fs. I'm wondering where the issue comes from since before the update to DSM7.1-42661 there weren't any issues with cap settings. |
I'm not sure, but this could be a combination of different things. Recently (before Any of these changes (or any combination of them) could be the reason why you are seeing different behavior after the upgrade. |
Dear community, I've managed to get pihole:latest running on docker/portainer. I've transformed the file system of one hdd into btrfs and it worked nearly out of the box.
Do I have to re-initialize some databases ? JD. |
Why not make some extra code to detect Synology just for this bug? Is it too much a deviation? I was trying to upgrade from pihole installed back in 2019 to something fresher, and bumped into this change of behavior. Before upgrade - pihole was running successfully in docker on Synology, and after upgrading it cannot start because pihole cannot set capabilities on file '/usr/bin/pihole-FTL' just as in the first message of this thread. Or, introduce an env variable - something like $DONT_FIX_CAPS defaulting to 0 and if a user sets it as 1, then code in fix_capabilities just ignores error coming from setcap call. |
|
Error from setcap doesn't mean |
@PromoFaux thanks, still not working as non-root (adding DNSMASQ_USER=root works).
For others who found this issue because of the error message: if docker is on Synology, please see #963 |
I am having the same issue on a raspberry pi, running pihole with Podman. From all the approaches I have found only setting the ENV variable |
What versions of the OS and Podman? |
|
Since a week I'm trying to get pihole:latest running on a docker/portainer combination on DSM7.
I updated from DSM6, portainer 1.24 and a very old pihole (5.*).
Details
I've been trying portainer (marked as deprecated) and portainer-ce on docker. While starting, first I got the error
Doing so, now I'm running into
System info:
Related Issues
#963
How to reproduce the issue
I've tried pihole releases back to 2021.9 - none started without DSNMASQ_USER=root and none did run pihole-FTL.
I've tried with portainer and portainer-ce.
Before any creation of the container from scratch I deleted my volume binds and recreated them empty.
These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
The text was updated successfully, but these errors were encountered: