You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a: Run Issue (running Pi-hole container failing)
Details
When upgrading from 2024.07.0 or running a clean install, pihole is unable to save changes or run properly due to not being able to obtain exclusive mode on a config file.
From a clean install, I'm able to get it running, then I try to save a config and it fails to reload and all services cease to function.
2025-02-18 22:45:57.650 EST [137M] ERROR: Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor
2025-02-18 22:45:57.661 EST [141M] ERROR: Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor
2025-02-18 22:45:57.671 EST [145M] ERROR: Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor
Related Issues
I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar
How to reproduce the issue
Environment data
Operating System: Ubuntu
Hardware: Virtual Machine running k3s
Kernel Architecture: amd64
Docker Install Info and version:
Software source: ghcr.io/pi-hole/pihole:2024.07.0
Supplimentary Software: k3s
Hardware architecture: x86
docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
any additional info to help reproduce
The dirs and files are all owned by pihole (1000:1000) so it does not appear to be a permissions issue.
These common fixes didn't work for my issue
I have tried removing/destroying my container, and re-creating a new container
I have tried fresh volume data by backing up and moving/removing the old volume data
I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
I have tried running without my volume data mounts to eliminate volumes as the cause
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:
Experiencing the same issue with an upgrade to v6.
My volumes are all bound from network locations (ntfs4). Permissions are read, write, and execute, but I doubt it can get an exclusive lock on a config file (why would it even need to do that?).
@djgaven588 I am also mounting them via NFS, and from past experience, I don't think NFS supports file locking in the same way that other standard mounted filesystems do, so it feels like we're on the right path.
This is a: Run Issue (running Pi-hole container failing)
Details
When upgrading from 2024.07.0 or running a clean install, pihole is unable to save changes or run properly due to not being able to obtain exclusive mode on a config file.
From a clean install, I'm able to get it running, then I try to save a config and it fails to reload and all services cease to function.
Related Issues
How to reproduce the issue
The dirs and files are all owned by pihole (1000:1000) so it does not appear to be a permissions 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: