Thanks @Coro
these are the entries above the database errrors.
A lot of lines with
[2021-05-17 04:58:00.774 626/T630] WARN: Command "ip neigh show" failed!
[2021-05-17 04:58:00.774 626/T630] Message: Success
interrupted by this after every 40-50 warning, with different count for deleted rows
[2021-05-17 04:59:00.891 626/T630] Notice: Database size is 33.22 MB, deleted 263 rows
and then
[2021-05-17 05:45:56.946 619M] Using log file /var/log/pihole-FTL.log
[2021-05-17 05:45:56.947 619M] ########## FTL started! ##########
[2021-05-17 05:45:56.947 619M] FTL branch: master
[2021-05-17 05:45:56.947 619M] FTL version: v5.8.1
[2021-05-17 05:45:56.947 619M] FTL commit: b90ab8b1
[2021-05-17 05:45:56.947 619M] FTL date: 2021-04-21 20:03:47 +0100
[2021-05-17 05:45:56.947 619M] FTL user: pihole
[2021-05-17 05:45:56.947 619M] Compiled for armv7hf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
[2021-05-17 05:45:56.947 619M] Creating mutex
[2021-05-17 05:45:56.949 619M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2021-05-17 05:45:56.949 619M] SOCKET_LISTENING: only local
[2021-05-17 05:45:56.949 619M] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2021-05-17 05:45:56.949 619M] MAXDBDAYS: max age for stored queries is 365 days
[2021-05-17 05:45:56.949 619M] RESOLVE_IPV6: Resolve IPv6 addresses
[2021-05-17 05:45:56.949 619M] RESOLVE_IPV4: Resolve IPv4 addresses
[2021-05-17 05:45:56.949 619M] DBINTERVAL: saving to DB file every minute
[2021-05-17 05:45:56.949 619M] DBFILE: Using /etc/pihole/pihole-FTL.db
[2021-05-17 05:45:56.949 619M] MAXLOGAGE: Importing up to 24.0 hours of log data
[2021-05-17 05:45:56.949 619M] PRIVACYLEVEL: Set to 0
[2021-05-17 05:45:56.949 619M] IGNORE_LOCALHOST: Show queries from localhost
[2021-05-17 05:45:56.950 619M] BLOCKINGMODE: Null IPs for blocked domains
[2021-05-17 05:45:56.950 619M] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2021-05-17 05:45:56.950 619M] DBIMPORT: Importing history from database
[2021-05-17 05:45:56.950 619M] PIDFILE: Using /run/pihole-FTL.pid
[2021-05-17 05:45:56.950 619M] PORTFILE: Using /run/pihole-FTL.port
[2021-05-17 05:45:56.950 619M] SOCKETFILE: Using /run/pihole/FTL.sock
[2021-05-17 05:45:56.950 619M] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2021-05-17 05:45:56.950 619M] MACVENDORDB: Using /etc/pihole/macvendor.db
[2021-05-17 05:45:56.950 619M] GRAVITYDB: Using /etc/pihole/gravity.db
[2021-05-17 05:45:56.950 619M] PARSE_ARP_CACHE: Active
[2021-05-17 05:45:56.950 619M] CNAME_DEEP_INSPECT: Active
[2021-05-17 05:45:56.950 619M] DELAY_STARTUP: No delay requested.
[2021-05-17 05:45:56.950 619M] BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2021-05-17 05:45:56.950 619M] NICE: Set process niceness to -10 (default)
[2021-05-17 05:45:56.950 619M] MAXNETAGE: Removing IP addresses and host names from network table after 365 days
[2021-05-17 05:45:56.950 619M] NAMES_FROM_NETDB: Enabled, trying to get names from network database
[2021-05-17 05:45:56.950 619M] EDNS0_ECS: Overwrite client from ECS information
[2021-05-17 05:45:56.950 619M] REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
[2021-05-17 05:45:56.950 619M] RATE_LIMIT: Rate-limiting client making more than 1000 queries in 60 seconds
[2021-05-17 05:45:56.950 619M] REPLY_ADDR4: Automatic interface-dependent detection of address
[2021-05-17 05:45:56.951 619M] REPLY_ADDR6: Automatic interface-dependent detection of address
[2021-05-17 05:45:56.951 619M] Finished config file parsing
[2021-05-17 05:45:56.955 619M] Database version is 9
[2021-05-17 05:45:56.955 619M] Imported 0 alias-clients
[2021-05-17 05:45:56.956 619M] Database successfully initialized
[2021-05-17 05:45:56.962 619M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 1.0MB used, 485.5MB total, FTL uses 1.0MB)
[2021-05-17 05:45:56.962 619M] New upstream server: 8.8.4.4:53 (0/1024)
[2021-05-17 05:45:56.971 619M] New upstream server: 2001:4860:4860::8844:53 (1/1024)
[2021-05-17 05:45:56.983 619M] Resizing "FTL-domains" from 4096 to (512 * 16) == 8192 (/dev/shm: 1.1MB used, 485.5MB total, FTL uses 1.0MB)
[2021-05-17 05:45:57.000 619M] New upstream server: 2001:4860:4860::8888:53 (2/1024)
[2021-05-17 05:45:57.031 619M] New upstream server: 8.8.8.8:53 (3/1024)
[2021-05-17 05:45:57.040 619M] Resizing "FTL-domains" from 8192 to (768 * 16) == 12288 (/dev/shm: 1.1MB used, 485.5MB total, FTL uses 1.1MB)
[2021-05-17 05:45:57.065 619M] Resizing "FTL-queries" from 229376 to (8192 * 56) == 458752 (/dev/shm: 1.1MB used, 485.5MB total, FTL uses 1.1MB)
[2021-05-17 05:45:57.163 619M] Resizing "FTL-domains" from 12288 to (1024 * 16) == 16384 (/dev/shm: 1.3MB used, 485.5MB total, FTL uses 1.3MB)
[2021-05-17 05:45:57.174 619M] Resizing "FTL-queries" from 458752 to (12288 * 56) == 688128 (/dev/shm: 1.3MB used, 485.5MB total, FTL uses 1.3MB)
[2021-05-17 05:45:57.294 619M] Resizing "FTL-queries" from 688128 to (16384 * 56) == 917504 (/dev/shm: 1.5MB used, 485.5MB total, FTL uses 1.5MB)
[2021-05-17 05:45:57.313 619M] Resizing "FTL-domains" from 16384 to (1280 * 16) == 20480 (/dev/shm: 1.8MB used, 485.5MB total, FTL uses 1.7MB)
[2021-05-17 05:45:57.408 619M] Resizing "FTL-queries" from 917504 to (20480 * 56) == 1146880 (/dev/shm: 1.8MB used, 485.5MB total, FTL uses 1.8MB)
[2021-05-17 05:45:57.552 619M] Resizing "FTL-queries" from 1146880 to (24576 * 56) == 1376256 (/dev/shm: 2.0MB used, 485.5MB total, FTL uses 2.0MB)
[2021-05-17 05:45:57.571 619M] Resizing "FTL-domains" from 20480 to (1536 * 16) == 24576 (/dev/shm: 2.2MB used, 485.5MB total, FTL uses 2.2MB)
[2021-05-17 05:45:57.671 619M] Resizing "FTL-queries" from 1376256 to (28672 * 56) == 1605632 (/dev/shm: 2.2MB used, 485.5MB total, FTL uses 2.2MB)
[2021-05-17 05:45:57.729 619M] Imported 26405 queries from the long-term database
[2021-05-17 05:45:57.730 619M] -> Total DNS queries: 26405
[2021-05-17 05:45:57.731 619M] -> Cached DNS queries: 4622
[2021-05-17 05:45:57.731 619M] -> Forwarded DNS queries: 20204
[2021-05-17 05:45:57.731 619M] -> Blocked DNS queries: 1255
[2021-05-17 05:45:57.731 619M] -> Unknown DNS queries: 0
[2021-05-17 05:45:57.731 619M] -> Unique domains: 1347
[2021-05-17 05:45:57.731 619M] -> Unique clients: 3
[2021-05-17 05:45:57.731 619M] -> Known forward destinations: 4
[2021-05-17 05:45:57.731 619M] Successfully accessed setupVars.conf
[2021-05-17 05:45:57.737 625M] PID of FTL process: 625
[2021-05-17 05:45:57.738 625/T626] Listening on port 4711 for incoming IPv4 telnet connections
[2021-05-17 05:45:57.738 625M] INFO: FTL is running as user pihole (UID 999)
[2021-05-17 05:45:57.739 625/T627] Listening on port 4711 for incoming IPv6 telnet connections
[2021-05-17 05:45:57.739 625/T628] Listening on Unix socket
[2021-05-17 05:45:57.740 625M] Reloading DNS cache
[2021-05-17 05:45:57.740 625M] Blocking status is enabled
[2021-05-17 05:45:57.762 625/T629] Compiled 0 whitelist and 0 blacklist regex filters for 3 clients in 2.0 msec
[2021-05-17 05:46:00.797 625/T629] SQLite3 message: index corruption at line 91877 of [5d4c65779d] (779)
I tried the recovery procedure but I'm not shure if it worked properly. There were a lot of errors like
Error: near line 329155: UNIQUE constraint failed: queries.id
and
Error: near line 329156: NOT NULL constraint failed: queries.status
when iI did pihole-FTL /etc/pihole/pihole-FTL.db ".recover" | pihole-FTL ~/pihole-FTL_recovered.db
What would be the ultimate solution? Deleting the database by removing /etc/pihole/pihole-FTL.db
?