-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fresh deployment = Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor #1715
Comments
+1 on this for me as well - happens in kubernetes only when using a PV. Without PV it operates normally |
+1 also going through this. Had to downgrade to v5 from scratch to be able to use it normally as a PV. Hope we can get it fixed soon |
+1 docker with NFS volumes |
+1 on kubernetes using a Longhorn RWX persistent volume. I wonder if it's due to https://man7.org/linux/man-pages/man2/flock.2.html
|
We tried to bring up a fix for this, it's this PR pi-hole/FTL#2218 It would be great if you could test this. Therefore, you need to build the Pi-hole image yourself including this particular FTL branch. Steps to build are pretty simple. It will build an image with
More details on building the image locally: https://github.com/pi-hole/docker-pi-hole?tab=readme-ov-file#building-the-image-locally Thanks for your help |
thank you @yubiuser . I'm seeing better results now running inside kubernetes. the container log still shows the error message, however it doesn't crash anymore as it used to on restoring a backup and configuration modification works fine. DNS resolution is OK. is the error message expected?
|
Same result as @pushpinderbal ! But we are up and running and came straight off of an upgrade from v5. I'm going to do a fresh build next. Incase anyone wants to test as well: https://hub.docker.com/repository/docker/paimonsoror/pihole/general edit: Fresh install to PV w/ a post install restore from teleporter backup success as well! |
Yes, the error message is still part of the deal because your particular setup prevents FTL to get an exclusive lock on the file because this is not supported by the filesystem you are using. I still think it is meaningful as - when others would be writing to this file while FTL is writing, too, it may be damaged/invalid. Debugging of such a case is easier when we know that the mechanism trying to prevent exactly this is not applicable here. |
Shouldn't the error then be turned into a warning? |
Confirmed that this resolved my issue. |
I just tried image 2025.02.04 after upgrading and didn't resolve the problem for me in k8s with nfs for storage. The pod doesn't come up and restarts.
|
@EmilyNerdGirl I still get the error, but it is a warning now, but the service itself works as intended, which tbh it likely did before, I just was focusing on the ERROR message. What isn't working for you? |
The pod is still failing to come up, and eventually fails and is restarted. If I roll back to 2024.7.0 it works fine. Is there an upgrade step I may be missing causing it to fail out? |
Can you post your full deployment config and any other relevant manifests? edit: Mine for context...
|
Thank you for the help!
|
I am also seeing the same issue while using the pihole helm chart in k3s and using NFS based storage via local-path-provisioner |
I think you should read the release notes... Edit: The helm chart may also not be updated for v6, either. 🤷♀ |
I was just about to post this... Looks like the env variables in the old helm chart are incorrect. Going to convert over to a regular deployment and see what happens 🤞 |
Yeah I think the issue is the variable renaming from the helm chart now which isn't related to this. I'm not set up to test at the moment though |
Thank you @evulhotdog ! Rewriting it using a deployment and I am up and running again :) |
Fwiw in have a pr for updates to Mojo's helm charts... Just waiting for this fix confirmation before i mo e it out of draft |
always got issue with image 2025.02.4 with docker and nfs volume |
This is a: Bug
Details
spinning up a new instance of pihole v6 today in docker and using the newer env vars. however, when i spin up the container I am seeing the following error in the logs:
therefore, none of the settings i am trying to configure are getting applied.
Note: This seems to happen only if/when using a persistent volume on an external device (NFS in my case).
Related Issues
How to reproduce the issue
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: