Skip to content
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

ERROR: Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor #1736

Closed
myset opened this issue Feb 21, 2025 · 2 comments

Comments

@myset
Copy link

myset commented Feb 21, 2025

ERROR: Cannot open config file /etc/pihole/pihole.toml in exclusive mode (r): Bad file descriptor

Details

OS: Ubuntu 24.04 x64
Docker: version 28.0.0, build f9ced58

  • Previous version works fine with same NFS4 (2024-09).
  • 2025-02 - new pihole version folder within a local folder work fine
  • 2025-02 - a clean pihole instalation throw the same error
  • Permissions and touch files are fine within container with user pihole

docker exec -it -u pihole pihole /bin/bash

2cd9e2469193:/$ ls -la /etc/pihole/
total 24183
drwxr-xr-x 8 pihole pihole       27 Feb 21 20:10 .
drwxr-xr-x 1 root   root       4096 Feb 21 20:10 ..
-rw-rw---- 1 pihole pihole       65 Jun 19  2023 adlists.list
-rw-r----- 1 pihole pihole       44 Feb 21 20:10 cli_pw
drwxr-xr-x 2 pihole pihole       13 Feb 21 20:10 config_backups
-rw-rw---- 1 pihole pihole        0 Jun 19  2023 dhcp.leases
-rw-rw---- 1 pihole pihole      651 Feb 21 00:22 dns-servers.conf
-rw-r--r-- 1 pihole pihole     5163 Feb 21 20:10 dnsmasq.conf
-rw-rw---- 1 pihole pihole  7725056 Feb 21 14:17 gravity.db
drwxr-xr-x 2 pihole pihole        5 Feb 21 14:13 gravity_backups
-rw-rw---- 1 pihole pihole  7725056 Feb 21 14:13 gravity_old.db
drwxr-xr-x 2 pihole pihole        3 Feb 21 19:37 hosts
drwxr-xr-x 2 pihole pihole        5 Feb 21 09:52 listsCache
-rw-rw---- 1 pihole pihole       65 Feb 21 00:22 local.list
-rw-r--r-- 1 root   root        421 Feb 21 20:10 logrotate
drwxr-xr-x 2 pihole pihole        3 Jun 19  2023 migration_backup
drwxr-xr-x 2 pihole pihole        7 Feb 21 00:22 migration_backup_v6
-rw-r----- 1 pihole pihole 32555008 Feb 21 20:08 pihole-FTL.db
-rw-r----- 1 pihole pihole    32768 Feb 21 20:23 pihole-FTL.db-shm
-rw-r----- 1 pihole pihole   296672 Feb 21 20:23 pihole-FTL.db-wal
-rw-r--r-- 1 pihole pihole    51999 Feb 21 20:13 pihole.toml
-rw-rw---- 1 pihole pihole    52123 Feb 21 20:10 pihole.toml.broken
-rw-rw---- 1 pihole pihole      307 Feb 21 00:22 setupVars.conf.update.bak
-rw-rw---- 1 pihole pihole      713 Feb 21 00:22 tls.crt
-rw-rw---- 1 pihole pihole     1001 Feb 21 00:22 tls.pem
-rw-rw---- 1 pihole pihole      733 Feb 21 00:22 tls_ca.crt
-rw-r--r-- 1 pihole pihole      380 Feb 21 20:10 versions
2cd9e2469193:/$ touch /etc/pihole/pihole.toml
2cd9e2469193:/$ lsof /etc/pihole/pihole.toml
61	/bin/bash	0	/dev/null
61	/bin/bash	1	pipe:[45970]
61	/bin/bash	2	pipe:[45971]
456	/bin/bash	0	/dev/pts/0
456	/bin/bash	1	/dev/pts/0
456	/bin/bash	2	/dev/pts/0
456	/bin/bash	255	/dev/pts/0

@PromoFaux
Copy link
Member

Duplicate of #1715 ? (can reopen if not)

@myset
Copy link
Author

myset commented Feb 22, 2025

Thank you

P.S.
Yesterday there wasn't any issue on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants