Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.2k
-
Versions
Platform
Expected behaviorPihole service should start. Actual behavior / bugStartup script fails with: Steps to reproduceRun pihole using Debug TokenI couldn't capture the debug as the image crashed ScreenshotsIf applicable, add screenshots to help explain your problem. Additional contextAt first I thought it was a bad pihole update, but turns out it's a breaking |
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
Update April 25th:
Due toa known issue with Docker and libseccomp <2.5, you may run into issues running2022.04 and later on host systems with an older version oflibseccomp2 (Such as Debian/Raspbian buster or Ubuntu 20.04, and maybeCentOS 7).
The first recommendation is to upgrade your host OS, which will include a more up to date (and fixed) version oflibseccomp.
If you absolutely cannot do this, some usershave reported success in updatinglibseccomp2 via backports on debian, or similar via updates on Ubuntu. You can try this workaround at your own risk
April 2nd: There is a new image2022.04.2beta. Can you folks try it and see if it's working for you?
March 30th at 1210: The lates…
Replies: 18 comments 72 replies
-
Hi, Environment Log output |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
That seems to be a different issue. Or you had The error manifested as the |
BetaWas this translation helpful?Give feedback.
All reactions
-
Confirmed on both Raspi 4B (running bullseye light) and on OMV6 (on a Mac mini) |
BetaWas this translation helpful?Give feedback.
All reactions
-
I had the same problem. Found I could get DNS working if I removed: from my However; I also use the pihole or DHCP and that would fail. I had to disable that to get things started. The DHCP would fail with: I already had: set in the compose file. I tried a few others Ended up disabling the docker container for now and installed manually which worked. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Same problem here. |
BetaWas this translation helpful?Give feedback.
All reactions
-
If you set the pihole uid/gid to 0 it will come up. Docker must have changed some permissions management for network. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Variable done work now ;) -e PIHOLE_UID=0 \ |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
Reading a bit I'm not sure why we never needed cap NET_BIND_SERVICE before. I think that maybe what is needed but I'm busy and don't want to take my network down again. Will try later tonight. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I'm not going to be able to troubleshoot this much, I'm currently on lunch at work and then away for the weekend... But can someone try setting the env var |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I can confim that setting |
BetaWas this translation helpful?Give feedback.
All reactions
-
This worked for me! |
BetaWas this translation helpful?Give feedback.
All reactions
-
I can also confirm this issue. Fortunately I'm running two instances in my network in a docker cluster and only updated one at a time. 20.10.12 still works absolutely fine, 20.10.14 throws the above errors in pihole-FTL logs (and not much at all in docker logs) I've deleted and re-created docker containers, volumes and services (stack) completely and verified image hash is the same on both hosts. I use Host network as well, otherwise I wouldn't know which devices on my network are which (for stats). Per Docker docs, Setting |
BetaWas this translation helpful?Give feedback.
All reactions
-
This helped. Pi Hole is running again. Thanks |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Tests OK with work too same |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
@DFlexy 's answer is acceptable as a temporary workaround, but seeing as in the past Pi-Hole tried to take up as little permissions as necessary it's counterproductive to let everything run as root. Earlier I opened up an issue with Docker, where someone pointed me in the right direction. Maybe the comment might help fix the underlying issue:moby/moby#43420 (comment) The following is a quote from the comment:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
We can give it a go. Once that passes we'll merge it in and get the |
BetaWas this translation helpful?Give feedback.
All reactions
-
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Appears it did not. Back to the drawing board |
BetaWas this translation helpful?Give feedback.
All reactions
-
Too bad, but thanks for trying. Maybe some of the guys over at the Moby project might be able to help. They were expecting some images to break and sound like they're willing to help iron things out. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Update April 25th:Due toa known issue with Docker and libseccomp <2.5, you may run into issues running The first recommendation is to upgrade your host OS, which will include a more up to date (and fixed) version of If you absolutely cannot do this, some usershave reported success in updating April 2nd: There is a new image March 30th at 1210: The latest fixes are now in the Edit: With the root workarounds removed of course. Edit2: This is the moby issue tracking the changes to Docker that looks to be the cause of this issue; |
BetaWas this translation helpful?Give feedback.
All reactions
-
I've got pihole running non-root by changing the sysctl parameter which allows anyone to open a port below 1024. But my reading says that should not be necessary if ambient caps are used correctly. The cat /proc/525/status shows why I need to use the sysctl parameter --> The pihole-FTL process in the dev container on my system is running with no caps enabled. This should not be the case in the dev container if the caps were being effective. I can see some of you are saying the change is working, I don't know if maybe you are not using host networking or maybe your sysctl parameter was already zero (default is zero on ubuntu I've read). But on my debian bullseye system, using the dev container, the process is still running with no caps. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I think the problem is that some of these kernels like bullseye support ambient caps and older ones don't. You've only set the inherited caps, but on systems that support ambient no caps will be propagated across an execve for a non-privileged user unless they are in the ambient set. |
BetaWas this translation helpful?Give feedback.
All reactions
-
dschaper is already trying a solution to support ambient caps, but it's not finished yet. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@dsm1212 I have the ambient working with a slight change. There is a problem in libcap that doesn't propagate ambient permissions when uid/gid/user is changed for the runner.https://bugzilla.redhat.com/show_bug.cgi?id=1950187 So I have to set the And yes, that means Bullseye, but Bullseye has a problem with the ARMv7 arch that prevents working correctly. That is from a You can pull |
BetaWas this translation helpful?Give feedback.
All reactions
-
dsm1212, the PR is at#1030 and it's the workaround for ambient being wiped out when we change to |
BetaWas this translation helpful?Give feedback.
All reactions
-
Why is this a discussion which is marked as answered? This is a bug which is definitely not fixed. |
BetaWas this translation helpful?Give feedback.
All reactions
👎 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
@dschaper The selected answer should be to stay on |
BetaWas this translation helpful?Give feedback.
All reactions
-
I think y'all should just chill and let the dev handle it how they see fit. Dev branch, running as root and staying on an older version are all workarounds and not solutions, but they will all contribute to the same effect and people can choose what they want to try. None of them are straightforward for an "average user", one requires locking packages from updating (unless you meant not updating raspbian at all, which again is not a solution either), the other changing image or modifying environment variables. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
This still doesn't explain why this is a discussion. This is clearly a bug/issue. Issues on GItHub already don't have the greatest UX and now we have a discussion which is like combining 5 issues and is really confusing. |
BetaWas this translation helpful?Give feedback.
All reactions
-
With Issues we can't have threaded discussions. We'd have this entire discussion as one single 50 comment thread. With Discussions we can have threads so entitled whines like this thread can be isolated from the real work of solving the issue caused by an upstream change that wasn't disclosed before it was released. |
BetaWas this translation helpful?Give feedback.
All reactions
👎 1
-
The first 10 comments where each a new thread and then you opened one thread which is actually about the solution. So I don't think this is happening here.
I tried contributing more logs but to my question on how to get more logs I didn't receive an answer. The first dev tag I tried didn't change anything. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Tests now for u ;) My code: |
BetaWas this translation helpful?Give feedback.
All reactions
-
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I can confirm that. I'm running the latest pihole image with macvlan and DHCP without issues. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Thanks for the feedback, I suspect compose isn't applying CAP_NET_ADMIN on my system, I'm using compose v2.4. I'll attempt to update. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I've recreated/reformatted my compose file and can confirm that the latest build now works correctly. I had some old perhaps deprecated entries. Edit: Forgot to add also updated compose to 3.3. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can someone share the updated |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Still not working... Even in the current dev. -.- |
BetaWas this translation helpful?Give feedback.
All reactions
-
The fix is even working on latest now. I see others have upticked so maybe there is a particular platform where it fails or something. You need to provide details, the ones here are addressed and confirmed to be fixed. |
BetaWas this translation helpful?Give feedback.
All reactions
-
If it's not working, it's probably a different issue. Please, try ourDiscourse forum or open a new issue and provide more information. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I agree with the others, can definitely confirm the current latest imageis working fine on a raspbian,without the root user workaround. If you want anyone to take a look, you need to be way more specific on what isn't working. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Well... I just purged the whole container (bye bye, around 20 local entries) and fired it up with the latest image - and it's working again. :) Dunno what was wrong before that. Tried the dev, tried the named beta - nada. Nothing special configured before... Around 20 clients, ~ 600k blocking entries, local entries and conditional forwarding to my router/DHCP because of local hostnames. I will observe it and report back if it gets worse again. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Locking this thread as it is now resolved. |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #1019 on March 24, 2022 17:42.