Pihole stopped blocking

The issue I am facing:

Pi-hole has stopped blocking sites. It says that a site is blocked, but replies to queries with the IP addresses - as if it was not there.

Here's an example:

$ pihole -t

08:08:19: query[A] cnn.com from 90.250.186.18
08:08:19: forwarded cnn.com to 8.8.8.8
08:08:19: reply cnn.com is 151.101.1.67
08:08:19: reply cnn.com is 151.101.129.67
08:08:19: reply cnn.com is 151.101.193.67
08:08:19: reply cnn.com is 151.101.65.67
08:08:20: query[PTR] 202.249.54.154.in-addr.arpa from 178.62.18.240
08:08:20: cached 154.54.249.202 is crawl-prodd4-10.babbar.eu
08:08:22: query[A] profile.accounts.firefox.com from 90.250.186.18

$ pihole -b cnn.com
  [i] cnn.com already exists in blacklist, no need to add!
$ pihole -v
  Pi-hole version is v5.11.4 (Latest: v5.11.4)
  AdminLTE version is v5.13 (Latest: v5.13)
  FTL version is v5.0 (Latest: v5.16.1)
$ dig cnn.com

; <<>> DiG 9.16.6-Ubuntu <<>> cnn.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43491
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;cnn.com.			IN	A

;; ANSWER SECTION:
cnn.com.		18	IN	A	151.101.129.67
cnn.com.		18	IN	A	151.101.1.67
cnn.com.		18	IN	A	151.101.65.67
cnn.com.		18	IN	A	151.101.193.67 

**Details about my system:**

Linux 5.8.0-63-generic #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

pihole -v
  Pi-hole version is v5.11.4 (Latest: v5.11.4)
  AdminLTE version is v5.13 (Latest: v5.13)
  FTL version is v5.0 (Latest: v5.16.1)

**What I have changed since installing Pi-hole:**

pihole -g
  [i] Neutrino emissions detected...
  [✗] Pulling blocklist source list into range
  [i] No source list found, or it is empty

  [i] Building tree...
  [✗] Unable to build gravity tree in /etc/pihole/gravity_temp.db
  Error: no such table: main.gravity
  [i] Number of gravity domains: 0 (0 unique domains)
  [i] Number of exact blacklisted domains: 1
  [i] Number of regex blacklist filters: 0
  [i] Number of exact whitelisted domains: 0
  [i] Number of regex whitelist filters: 0
  [✗] pihole-FTL: no process found
  [✓] Cleaning up stray matter
  [✓] Restarting DNS server

  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

1 Like

Your FTL is also way outdated.

FTL version is v5.0 (Latest: v5.16.1)
1 Like

Here's the output token URL:

https://tricorder.pi-hole.net/LGFzayFr/

Yes, thank you - I've been trying to fix that, by working around this:

[i] Processing apt-get install(s) for: lighttpd php7.4-cgi php7.4-sqlite3, please wait...
E: Unable to correct problems, you have held broken packages.

I'm having trouble installing the correct versions on linux - it seems to want earlier versions than the versions that I have installed:

The following packages have unmet dependencies:
 php7.4-cgi : Depends: php7.4-common (= 7.4.3-4ubuntu2.12) but 7.4.9-1ubuntu1.2 is to be installed
 php7.4-sqlite3 : Depends: php7.4-common (= 7.4.3-4ubuntu2.12) but 7.4.9-1ubuntu1.2 is to be installed
E: Unable to correct problems, you have held broken packages

You need to resolve the OS level package issues before Pi-hole will update to completion. Two quick search engine links:

1 Like

Do we know when a new version of pihole is coming out?

The problem I've been getting is that this version's FTL relies on an old version of php-7.4 (7.4.3 when the latest is 7.4.9)

I was able to get running again with:

systemctl start pihole-FTL

Soon .... We hope to ship still in August, but some bigger changes need proper testing.

However, this has nothing to do with

This is an OS level issue. Pi-hole works with all PHP > 5.6

1 Like

I have finally fixed this - but by brute force:

$lsof -i :53
COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 1296 dnsmasq    4u  IPv4  27503      0t0  UDP ganesh:domain 
dnsmasq 1296 dnsmasq    5u  IPv4  27504      0t0  TCP ganesh:domain (LISTEN)
dnsmasq 1296 dnsmasq    6u  IPv4  27505      0t0  UDP localhost.localdomain:domain 
dnsmasq 1296 dnsmasq    7u  IPv4  27506      0t0  TCP localhost.localdomain:domain (LISTEN)
dnsmasq 1296 dnsmasq    8u  IPv6  27507      0t0  UDP [fe80::68b0:7ff:fe5d:158c]:domain 
dnsmasq 1296 dnsmasq    9u  IPv6  27508      0t0  TCP [fe80::68b0:7ff:fe5d:158c]:domain (LISTEN)
dnsmasq 1296 dnsmasq   10u  IPv6  27509      0t0  UDP ip6-localhost:domain 
dnsmasq 1296 dnsmasq   11u  IPv6  27510      0t0  TCP ip6-localhost:domain (LISTEN)
11:27 $kill -9 1296
11:27 $lsof -i :53
11:27 $pihole enable
  [i] Enabling blocking
  [✗] pihole-FTL: no process found
  [✓] Pi-hole Enabled
11:27 $which pihole-FTL
/usr/bin/pihole-FTL
11:27 $/usr/bin/pihole-FTL
FTL started!
11:27 $lsof -i :53
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pihole-FT 5319 root    4u  IPv4  53537      0t0  UDP *:domain 
pihole-FT 5319 root    5u  IPv4  53538      0t0  TCP *:domain (LISTEN)
pihole-FT 5319 root    6u  IPv6  53539      0t0  UDP *:domain 
pihole-FT 5319 root    7u  IPv6  53540      0t0  TCP *:domain (LISTEN)
11:27 $dig cnn.com @127.0.0.1

; <<>> DiG 9.18.1-1ubuntu1-Ubuntu <<>> cnn.com @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 729
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;cnn.com.			IN	A

;; ANSWER SECTION:
cnn.com.		2	IN	A	0.0.0.0

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Sun Aug 14 11:28:00 BST 2022
;; MSG SIZE  rcvd: 52

$ pihole -v
Pi-hole version is v5.11.4 (Latest: v5.11.4)
AdminLTE version is v5.13 (Latest: v5.13)
FTL version is v5.16.1 (Latest: v5.16.1)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.