Hi, I have daily issue with SQLite database and pihole v6. Pihole becomes non responsible. I tested repairing and recreation without success. Issue comes back. I have this behavior since 1 week.
Increasing memory to 8GB of the Debian LXC container on Proxmox 8.2.4 do not help. I store only 24 hours of client activity.
Does somebody see same issue like me with similar or same setup ?. I will go forward and recreate the LXC container or install pihole v6 development Version into a VM. Proxmox is on 6.8.8.4 kernel. Pihole will automatically updated daily via cronjob.
2024-08-06 01:00:00.650 CEST [467/T474] WARNING: Host name of client "192.168.x.x" => "Meross Smart Switch.domain" contains (at least) one invalid character (hex 20) at position 6
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: ----------------------------> FTL crashed! <----------------------------
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: Please report a bug at https://github.com/pi-hole/FTL/issues
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: and include in your report already the following details:
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL has been running for 2 seconds
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL branch: development-v6
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL version: vDev-cce2c21
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL commit: cce2c210
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL date: 2024-08-04 14:47:39 +0200
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: FTL user: started as pihole, ended as pihole
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: Compiled for linux/amd64 (compiled on CI) using cc (Alpine 13.2.1_git20240309) 13.2.1 20240309
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: Process details: MID: 2388
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: PID: 2388
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: TID: 2391
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: Name: dns-client
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: Received signal: Segmentation fault
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: at address: 0x6e6961006410
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: with code: SEGV_MAPERR (Address not mapped to object)
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: !!! INFO: pihole-FTL has not been compiled with glibc/backtrace support, not generating one !!!
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: ------ Listing content of directory /dev/shm ------
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: File Mode User:Group Size Filename
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rwxrwxrwx root:root 280 .
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rwxr-xr-x root:root 3K ..
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 569K FTL-fifo-log
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 8K FTL-per-client-regex
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 98K FTL-dns-cache
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 8K FTL-overTime
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 1M FTL-queries
2024-08-06 01:00:48.416 CEST [2388/T2391] INFO: rw------- pihole:pihole 29K FTL-upstreams
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 86K FTL-clients
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 41K FTL-domains
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 82K FTL-strings
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 16 FTL-settings
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 292 FTL-counters
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: rw------- pihole:pihole 88 FTL-lock
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: ---------------------------------------------------
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: Please also include some lines from above the !!!!!!!!! header.
2024-08-06 01:00:48.417 CEST [2388/T2391] INFO: Thank you for helping us to improve our FTL engine!
It looks like the issue is initiated by a meross device on the network while sending âblanksâ in the hostname. pihole cannot handle this actually and crashes. I saw this blank hostname problem in the past from other users too. The hostname is not the one reported by pihole. This is also defined and reserved hostname in the dhcp server (not pihole dhcp) without any blanks.
I don't think the host name is the cause. If we look closely at the logs, we see that the crash happens almost one minute later in a different process. It seems you have two instances of pihole-FTL running at the same time (PIDs 467 and 2388) which is indeed unsupported.
Your posted log excerpt leaves a few question-marks behind - is it really complete? Please post some more lines, also into the past when this happens next time including some of the lines from FTL.log.1 in case this happened at the very top of FTL.log.
This PR will improve on concurrency between running pihole-FTL processes and - in theory - allow it (but at the same time tries hard to prevent this from happening):
2024-08-09 00:10:00.027 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 388 rows
2024-08-09 00:20:00.087 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 385 rows
2024-08-09 00:30:00.086 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 383 rows
2024-08-09 00:40:00.055 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 381 rows
2024-08-09 00:50:00.093 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 379 rows
2024-08-09 00:59:00.023 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 376 rows
2024-08-09 01:00:00.632 CEST [199/T203] WARNING: Host name of client "192.168.27.76" => "Meross Smart Switch.fritz.box" contains (at least) o
ne invalid character (hex 20) at position 6
2024-08-09 01:00:00.632 CEST [199/T203] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-09 01:00:00.632 CEST [199/T203] INFO: ----------------------------> FTL crashed! <----------------------------
2024-08-09 01:00:00.632 CEST [199/T203] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-09 01:00:00.632 CEST [199/T203] INFO: Please report a bug at Issues ¡ pi-hole/FTL ¡ GitHub
2024-08-09 01:00:00.632 CEST [199/T203] INFO: and include in your report already the following details:
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL has been running for 54185 seconds
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL branch: development-v6
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL version: vDev-cce2c21
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL commit: cce2c210
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL date: 2024-08-04 14:47:39 +0200
2024-08-09 01:00:00.632 CEST [199/T203] INFO: FTL user: started as pihole, ended as pihole
2024-08-09 01:00:00.633 CEST [199/T203] INFO: Compiled for linux/amd64 (compiled on CI) using cc (Alpine 13.2.1_git20240309) 13.2.1 20240309
2024-08-09 01:00:00.633 CEST [199/T203] INFO: Process details: MID: 199
2024-08-09 01:00:00.633 CEST [199/T203] INFO: PID: 199
2024-08-09 01:00:00.633 CEST [199/T203] INFO: TID: 203
2024-08-09 01:00:00.633 CEST [199/T203] INFO: Name: dns-client
2024-08-09 01:00:00.633 CEST [199/T203] INFO: Received signal: Segmentation fault
2024-08-09 01:00:00.633 CEST [199/T203] INFO: at address: 0
2024-08-09 01:00:00.633 CEST [199/T203] INFO: with code: Unknown (128)
2024-08-09 01:00:00.633 CEST [199/T203] INFO: !!! INFO: pihole-FTL has not been compiled with glibc/backtrace support, not generating one !!!
2024-08-09 01:00:00.633 CEST [199/T203] INFO: ------ Listing content of directory /dev/shm ------
2024-08-09 01:00:00.633 CEST [199/T203] INFO: File Mode User:Group Size Filename
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rwxrwxrwx root:root 280 .
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rwxr-xr-x root:root 480 ..
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 88 FTL-lock
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 292 FTL-counters
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 16 FTL-settings
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 123K FTL-strings
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 135K FTL-domains
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 86K FTL-clients
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 29K FTL-upstreams
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 4M FTL-queries
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 8K FTL-overTime
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 332K FTL-dns-cache
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 8K FTL-per-client-regex
2024-08-09 01:00:00.633 CEST [199/T203] INFO: rw------- pihole:pihole 569K FTL-fifo-log
2024-08-09 01:00:00.633 CEST [199/T203] INFO: ---------------------------------------------------
2024-08-09 01:00:00.633 CEST [199/T203] INFO: Please also include some lines from above the !!!!!!!!! header.
2024-08-09 01:00:00.634 CEST [199/T203] INFO: Thank you for helping us to improve our FTL engine!
2024-08-09 01:00:00.634 CEST [199/T203] INFO: Waiting for threads to join
2024-08-09 01:00:00.634 CEST [199/T203] INFO: Thread database (0) is idle, terminating it.
2024-08-09 01:00:00.634 CEST [199/T203] INFO: Thread housekeeper (1) is idle, terminating it.
2024-08-09 01:00:00.634 CEST [199M] INFO: Shutting down... // exit code 0 // jmpret 0
2024-08-09 01:00:00.642 CEST [199/T204] INFO: Terminating timer thread
2024-08-09 01:00:00.889 CEST [199M] INFO: Finished final database update
2024-08-09 01:00:00.889 CEST [199M] INFO: Waiting for threads to join
2024-08-09 01:00:00.889 CEST [199M] INFO: Thread database (0) is idle, terminating it.
2024-08-09 01:00:00.889 CEST [199M] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-09 01:00:00.889 CEST [199M] INFO: ----------------------------> FTL crashed! <----------------------------
2024-08-09 01:00:00.889 CEST [199M] INFO: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-08-09 01:00:00.889 CEST [199M] INFO: Please report a bug at Issues ¡ pi-hole/FTL ¡ GitHub
2024-08-09 01:00:00.889 CEST [199M] INFO: and include in your report already the following details:
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL has been running for 54185 seconds
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL branch: development-v6
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL version: vDev-cce2c21
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL commit: cce2c210
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL date: 2024-08-04 14:47:39 +0200
2024-08-09 01:00:00.889 CEST [199M] INFO: FTL user: started as pihole, ended as pihole
2024-08-09 01:00:00.889 CEST [199M] INFO: Compiled for linux/amd64 (compiled on CI) using cc (Alpine 13.2.1_git20240309) 13.2.1 20240309
2024-08-09 01:00:00.889 CEST [199M] INFO: Process details: MID: 199
2024-08-09 01:00:00.889 CEST [199M] INFO: PID: 199
2024-08-09 01:00:00.889 CEST [199M] INFO: TID: 199
2024-08-09 01:00:00.889 CEST [199M] INFO: Name: pihole-FTL
2024-08-09 01:00:00.889 CEST [199M] INFO: Received signal: Segmentation fault
2024-08-09 01:00:00.889 CEST [199M] INFO: at address: 0x7ed5e8747b74
2024-08-09 01:00:00.889 CEST [199M] INFO: with code: SEGV_MAPERR (Address not mapped to object)
2024-08-09 01:00:00.889 CEST [199M] INFO: !!! INFO: pihole-FTL has not been compiled with glibc/backtrace support, not generating one !!!
2024-08-09 01:00:00.889 CEST [199M] INFO: ------ Listing content of directory /dev/shm ------
2024-08-09 01:00:00.889 CEST [199M] INFO: File Mode User:Group Size Filename
2024-08-09 01:00:00.890 CEST [199M] INFO: rwxrwxrwx root:root 280 .
2024-08-09 01:00:00.890 CEST [199M] INFO: rwxr-xr-x root:root 480 ..
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 88 FTL-lock
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 292 FTL-counters
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 16 FTL-settings
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 123K FTL-strings
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 135K FTL-domains
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 86K FTL-clients
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 29K FTL-upstreams
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 4M FTL-queries
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 8K FTL-overTime
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 332K FTL-dns-cache
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 8K FTL-per-client-regex
2024-08-09 01:00:00.890 CEST [199M] INFO: rw------- pihole:pihole 569K FTL-fifo-log
2024-08-09 01:00:00.890 CEST [199M] INFO: ---------------------------------------------------
2024-08-09 01:00:00.890 CEST [199M] INFO: Please also include some lines from above the !!!!!!!!! header.
2024-08-09 01:00:00.890 CEST [199M] INFO: Thank you for helping us to improve our FTL engine!
2024-08-09 01:00:00.890 CEST [199M] INFO: Waiting for threads to join
2024-08-09 01:00:00.890 CEST [199M] INFO: Thread database (0) is idle, terminating it.
2024-08-09 01:00:06.032 CEST [5353M] INFO: ########## FTL started on pihole01! ##########
2024-08-09 01:00:06.032 CEST [5353M] INFO: FTL branch: development-v6
2024-08-09 01:00:06.032 CEST [5353M] INFO: FTL version: vDev-cce2c21
2024-08-09 01:00:06.032 CEST [5353M] INFO: FTL commit: cce2c210
2024-08-09 01:00:06.032 CEST [5353M] INFO: FTL date: 2024-08-04 14:47:39 +0200
2024-08-09 01:00:06.032 CEST [5353M] INFO: FTL user: pihole
2024-08-09 01:00:06.032 CEST [5353M] INFO: Compiled for linux/amd64 (compiled on CI) using cc (Alpine 13.2.1_git20240309) 13.2.1 20240309
2024-08-09 01:00:06.035 CEST [5353M] INFO: Wrote config file:
Here is the end of FTL.1 file. Issue do appear again. On the network there is no device with âMerros Smart Switchâ naming. I have also checked the Router config. I was wondering why pihole will see such a device name. Strange !
It looks like issue comes up while pihole flush once quiet is running on midnight.
I have now renamed the Meross Smart Switch in the app to that name with blanks. Renewed DHCP.. and in the dhcp it looks now like âMeross-Smart-Switchâ after dhcp reregistration. So will check over weekend what happened now.
2024-08-08 23:30:00.044 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 395 rows
2024-08-08 23:40:00.103 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 395 rows
2024-08-08 23:50:00.019 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 392 rows
2024-08-09 00:00:00.102 CEST [199/T201] INFO: Size of /etc/pihole/pihole-FTL.db is 3.07 MB, deleted 390 rows
Please tell us such important details, otherwise, as you've seen, interpretations may go into an entirely wrong direction.
Your latest log excerpt shows two crashes, I think I see what is causing the second one, but not the former. It seems we need to do further debugging to see what is going on exactly. Please follow the instructions here: gdb - Pi-hole documentation
Once the crash happens again, the debugger will halt the process in the faulty state and you can follow the last step (3.). This will hopefully provide enough information to exactly identify (and subsequently fix) this bug.
pihole is getting unusable while starting gdb, so I cannot help more actually.
Also clearing up database and start fresh wouldnât help.
I think the meross device is stored with blanks into the pihole-FTL database. I will analyze from that. The issue with the database and FTL crashes only when this meross device is updating dns/dhcp.
Without having the meross device in the database.. everythingâs looking good.
You need to manually type continue + Enter to have FTL continue servicing while being watched by gdb. I thought that's mentioned in the guide, may need to revisit it.
Thread 1 "pihole-FTL" received signal SIGTERM, Terminated.
Thread 1 "pihole-FTL" received signal SIG41, Real-time event 41.
__restore_sigs(set=set@entry=0x7fffc915c300)
at ./arch/x86_64/syscall_arch.h:40
40./arch/x86_64/syscall_arch.h: Datei oder Verzeichnis nicht gefunden.
(gdb) backtrace #0 __restore_sigs(set=set@entry=0x7fffc915c300) at ./arch/x86_64/syscall_arch.h:40 #1 0x00000000007c6fb5in raise(sig=) at src/signal/raise.c:11 #2 0x00000000004236d5in SIGTERM_handler(si=, unused=, signum=) at /app/src/signals.c:414
Backtrace stopped: Cannot access memory at address 0x7fffc915c6f8
This isn't a crash. Something is asking FTL to terminate. This can be either you (e.g. pihole restartdns) or a cronjob or whatever else (e.g. some other automatic script). We first need to eliminate this external influence to keep the debugger attached until the crash is happening.
I have focused where âMeross Smart Switchâ naming is generated.
There where an Alexa instance or Smarthings Instance application running. This could produce the issue. Since I removed Alexa app from my devices and from network, no issue do appear again.