HI,
I have a Pihole on docker with this docker-compose:
docker-compose.yml
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Europa/Rome'
DNSMASQ_LISTENING: 'all'
WEBPASSWORD: '***'
WEB_PORT: 8088
volumes:
- '/home/user/Docker_Containers/pihole/pihole:/etc/pihole'
- '/home/user/Docker_Containers/pihole/dnsmasq.d:/etc/dnsmasq.d'
network_mode: 'host'
restart: unless-stopped
after a few minutes the docker acquires the status of "unhealthy" and I can't even reach pihole via the web interface.
...
[✓] FTL is listening on port 53
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)
[✓] Pi-hole blocking is enabled
Pi-hole version is v5.17.2 (Latest: v5.17.2)
web version is v5.20.2 (Latest: v5.20.2)
FTL version is v5.23 (Latest: v5.23)
Container tag is: 2023.10.0
Stopping pihole-FTL
pihole-FTL: no process found
in the web interface, this error message appears in the settings:
There was a problem applying your settings.
Debugging information:
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47
This error message appears in the top left corner:
DNS service not running
but if I try to start the service again the error appears again
Furthermore, if it can be useful, I load a part of the FTL.log file present in the container:
/var/log/pihole/FTL.log
[2023-11-18 14:58:27.510 2507M] Resizing "FTL-clients" from 21504000 to (32128 * 672) == 21590016 (/dev/shm: 27.1MB used, 67.1MB total, FTL uses 27.1MB)
[2023-11-18 14:58:32.802 2507M] Resizing "FTL-clients" from 21590016 to (32256 * 672) == 21676032 (/dev/shm: 27.2MB used, 67.1MB total, FTL uses 27.2MB)
[2023-11-18 14:58:36.564 2507M] Resizing "FTL-clients" from 21676032 to (32384 * 672) == 21762048 (/dev/shm: 27.3MB used, 67.1MB total, FTL uses 27.3MB)
[2023-11-18 14:58:42.112 2507M] Resizing "FTL-clients" from 21762048 to (32512 * 672) == 21848064 (/dev/shm: 27.4MB used, 67.1MB total, FTL uses 27.4MB)
[2023-11-18 14:58:44.309 2507M] Imported 81531 queries from the long-term database
[2023-11-18 14:58:44.311 2507M] -> Total DNS queries: 81531
[2023-11-18 14:58:44.311 2507M] -> Cached DNS queries: 28
[2023-11-18 14:58:44.311 2507M] -> Forwarded DNS queries: 22989
[2023-11-18 14:58:44.311 2507M] -> Blocked DNS queries: 136
[2023-11-18 14:58:44.311 2507M] -> Unknown DNS queries: 0
[2023-11-18 14:58:44.311 2507M] -> Unique domains: 3460
[2023-11-18 14:58:44.311 2507M] -> Unique clients: 32464
[2023-11-18 14:58:44.311 2507M] -> Known forward destinations: 2
[2023-11-18 14:58:44.311 2507M] Successfully accessed setupVars.conf
[2023-11-18 14:58:44.315 2507M] listening on 0.0.0.0 port 53
[2023-11-18 14:58:44.316 2507M] listening on :: port 53
[2023-11-18 14:58:44.318 2507M] PID of FTL process: 2507
[2023-11-18 14:58:44.318 2507M] Listening on port 4711 for incoming IPv4 telnet connections
[2023-11-18 14:58:44.319 2507M] Listening on port 4711 for incoming IPv6 telnet connections
[2023-11-18 14:58:44.321 2507M] Listening on port 4711 for incoming socket telnet connections
[2023-11-18 14:58:44.322 2507M] INFO: FTL is running as user pihole (UID 999)
[2023-11-18 14:58:44.323 2507M] Reloading DNS cache
[2023-11-18 14:58:44.440 2507/T2901] Compiled 0 whitelist and 0 blacklist regex filters for 32468 clients in 7.8 msec
[2023-11-18 14:58:44.441 2507/T2901] Blocking status is enabled
[2023-11-18 14:58:44.873 2507M] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-11-18 14:58:44.873 2507M] ----------------------------> FTL crashed! <----------------------------
[2023-11-18 14:58:44.873 2507M] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-11-18 14:58:44.873 2507M] Please report a bug at https://github.com/pi-hole/FTL/issues
[2023-11-18 14:58:44.873 2507M] and include in your report already the following details:
[2023-11-18 14:58:44.873 2507M] FTL has been running for 833 seconds
[2023-11-18 14:58:44.873 2507M] FTL branch: master
[2023-11-18 14:58:44.873 2507M] FTL version: v5.23
[2023-11-18 14:58:44.873 2507M] FTL commit: d201776e
[2023-11-18 14:58:44.873 2507M] FTL date: 2023-05-28 11:55:26 +0100
[2023-11-18 14:58:44.873 2507M] FTL user: started as pihole, ended as pihole
[2023-11-18 14:58:44.873 2507M] Compiled for aarch64 (compiled on CI) using aarch64-linux-gnu-gcc (Debian 8.3.0-2) 8.3.0
[2023-11-18 14:58:44.873 2507M] Process details: MID: 2507
[2023-11-18 14:58:44.874 2507M] PID: 2507
[2023-11-18 14:58:44.874 2507M] TID: 2507
[2023-11-18 14:58:44.874 2507M] Name: pihole-FTL
[2023-11-18 14:58:44.874 2507M] Received signal: Segmentation fault
[2023-11-18 14:58:44.874 2507M] at address: 0xbebe5865b1be5865
[2023-11-18 14:58:44.874 2507M] with code: SEGV_MAPERR (Address not mapped to object)
[2023-11-18 14:58:44.880 2507M] Backtrace:
[2023-11-18 14:58:44.881 2507M] B[0000]: /usr/bin/pihole-FTL(generate_backtrace+0x38) [0x557a95b818]
[2023-11-18 14:58:45.144 2507M] L[0000]: /__w/FTL/FTL/src/signals.c:98
[2023-11-18 14:58:45.148 2507M] B[0001]: /usr/bin/pihole-FTL(+0x5bcec) [0x557a95bcec]
[2023-11-18 14:58:45.191 2507M] L[0001]: /__w/FTL/FTL/src/signals.c:242
[2023-11-18 14:58:45.196 2507M] B[0002]: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7fbdfbd7a8]
[2023-11-18 14:58:45.196 2507M] B[0003]: /usr/bin/pihole-FTL(+0x125d78) [0x557aa25d78]
[2023-11-18 14:58:45.417 2507M] L[0003]: /__w/FTL/FTL/src/database/sqlite3.c:88298
[2023-11-18 14:58:45.438 2507M] B[0004]: /usr/bin/pihole-FTL(sqlite3_bind_text+0x30) [0x557aa3d718]
[2023-11-18 14:58:45.626 2507M] L[0004]: /__w/FTL/FTL/src/database/sqlite3.c:89760
[2023-11-18 14:58:45.646 2507M] B[0005]: /usr/bin/pihole-FTL(+0x64c24) [0x557a964c24]
[2023-11-18 14:58:45.677 2507M] L[0005]: /__w/FTL/FTL/src/database/gravity-db.c:1198
[2023-11-18 14:58:45.681 2507M] B[0006]: /usr/bin/pihole-FTL(+0x4a598) [0x557a94a598]
[2023-11-18 14:58:45.714 2507M] L[0006]: /__w/FTL/FTL/src/dnsmasq_interface.c:1429
[2023-11-18 14:58:45.717 2507M] B[0007]: /usr/bin/pihole-FTL(_FTL_new_query+0x98c) [0x557a94de7c]
[2023-11-18 14:58:45.750 2507M] L[0007]: /__w/FTL/FTL/src/dnsmasq_interface.c:683 (discriminator 1)
[2023-11-18 14:58:45.754 2507M] B[0008]: /usr/bin/pihole-FTL(receive_query+0x424) [0x557a98f874]
[2023-11-18 14:58:45.790 2507M] L[0008]: /__w/FTL/FTL/src/dnsmasq/forward.c:1770 (discriminator 4)
[2023-11-18 14:58:45.794 2507M] B[0009]: /usr/bin/pihole-FTL(+0x803d4) [0x557a9803d4]
[2023-11-18 14:58:45.829 2507M] L[0009]: /__w/FTL/FTL/src/dnsmasq/dnsmasq.c:1868
[2023-11-18 14:58:45.833 2507M] B[0010]: /usr/bin/pihole-FTL(main_dnsmasq+0xfc0) [0x557a981fd0]
[2023-11-18 14:58:45.868 2507M] L[0010]: /__w/FTL/FTL/src/dnsmasq/dnsmasq.c:1278
[2023-11-18 14:58:45.873 2507M] B[0011]: /usr/bin/pihole-FTL(main+0x100) [0x557a942180]
[2023-11-18 14:58:45.905 2507M] L[0011]: /__w/FTL/FTL/src/main.c:118
[2023-11-18 14:58:45.909 2507M] B[0012]: /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8) [0x7fbdd45e18]
[2023-11-18 14:58:45.909 2507M] B[0013]: /usr/bin/pihole-FTL(+0x42648) [0x557a942648]
[2023-11-18 14:58:45.958 2507M] L[0013]: ??:?
[2023-11-18 14:58:45.967 2507M] ------ Listing content of directory /dev/shm ------
[2023-11-18 14:58:45.967 2507M] File Mode User:Group Size Filename
[2023-11-18 14:58:45.968 2507M] rwxrwxrwx root:root 260 .
[2023-11-18 14:58:45.968 2507M] rwxr-xr-x root:root 320 ..
[2023-11-18 14:58:45.968 2507M] rw------- pihole:pihole 4K FTL-per-client-regex
[2023-11-18 14:58:45.968 2507M] rw------- pihole:pihole 4K FTL-dns-cache
[2023-11-18 14:58:45.968 2507M] rw------- pihole:pihole 8K FTL-overTime
[2023-11-18 14:58:45.968 2507M] rw------- pihole:pihole 5M FTL-queries
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 315K FTL-upstreams
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 22M FTL-clients
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 86K FTL-domains
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 614K FTL-strings
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 16 FTL-settings
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 248 FTL-counters
[2023-11-18 14:58:45.969 2507M] rw------- pihole:pihole 104 FTL-lock
[2023-11-18 14:58:45.969 2507M] ---------------------------------------------------
[2023-11-18 14:58:45.970 2507M] Please also include some lines from above the !!!!!!!!! header.
[2023-11-18 14:58:45.970 2507M] Thank you for helping us to improve our FTL engine!
[2023-11-18 14:58:45.970 2507M] Waiting for threads to join
[2023-11-18 14:58:45.970 2507M] Thread database (0) is idle, terminating it.
[2023-11-18 14:58:45.970 2507M] Thread housekeeper (1) is idle, terminating it.
[2023-11-18 14:58:45.970 2507M] Thread DNS client (2) is idle, terminating it.
[2023-11-18 14:58:45.970 2507M] All threads joined
[2023-11-18 14:58:45.970 2507M] Joining API worker thread 0
[2023-11-18 14:58:45.970 2507M] Joining API worker thread 1
[2023-11-18 14:58:45.971 2507M] Joining API worker thread 2
[2023-11-18 14:58:45.971 2507M] Joining API worker thread 3
[2023-11-18 14:58:45.971 2507M] Joining API worker thread 4
[2023-11-18 17:17:41.300 242M] Using log file /var/log/pihole/FTL.log
[2023-11-18 17:17:41.300 242M] ########## FTL started on raspberrypi! ##########
[2023-11-18 17:17:41.300 242M] FTL branch: master
[2023-11-18 17:17:41.300 242M] FTL version: v5.23
[2023-11-18 17:17:41.300 242M] FTL commit: d201776e
[2023-11-18 17:17:41.300 242M] FTL date: 2023-05-28 11:55:26 +0100
[2023-11-18 17:17:41.300 242M] FTL user: pihole
[2023-11-18 17:17:41.300 242M] Compiled for aarch64 (compiled on CI) using aarch64-linux-gnu-gcc (Debian 8.3.0-2) 8.3.0
[2023-11-18 17:17:41.301 242M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
then I tried to create the docker with the same docker-compose, but leaving out the creation of the volumes and everything works perfectly, but this means that every time I delete and recreate the docker I lose all the data.