Disable/Enable feature in PiHole Admin Web Console hanging

v4-0

#1

This issue is occurring on a newly provisioned and updated Raspbian Stretch OS. PiHole is the only package/application/utility that we had installed on it.

Expected Behaviour:

Within the PiHole Admin Web Console click Disable then click the 5 minute option. PiHole is then immediately disabled. Click the Enable option and PiHole is then immediately re-enabled.

Actual Behaviour:

When clicking Disable within the PiHole Admin Web Console then clicking the 5 minute option there is a small circle on the screen for an extended period of time. PiHole eventually disables after an extended period of time and then the 5 minute count down starts. When clicking Enable to reenable PiHole there is no response from the PiHole Admin Web Console for an extended period of time. Continuing to click on the Enable button re-enables PiHole after a period of time.

Debug Token:

3yh6o2s95q


#6

I can confirm similar behaviour on my Pi, though the lag does not appear to be very much. @Don_Naismith
, how long a gap between the circle appearing and Pi-hole being disabled are you noticing?

lag


#7

PiHole is installed on a Raspberry Pi 3 B+ and I’m accessing the PiHole admin web console from a Win10 PC using the latest version of Google Chrome. The Raspberry Pi 3 B+ was previously running Raspbian Jesse with a recent 3.x version of PiHole and there was no lag when clicking Disable / Enable. I was in the process of rebuilding the Pi with Raspian Stretch and PiHole 4.x when I noticed the behaviour.

D_E


#8

Do you notice the same delay when logging into your Pi and running

pihole enable

or

pihole disable

?


#10

I’m seeing a similar delay.

D_E1


#13

Okay, how active is your network (rough number of clients and a typical number of queries within 24 hours) and have you configured FTL somehow (edited /etc/pihole/pihole-FTL.conf)?

Can you run pihole -t in a separate terminal and try to identify if there is anything specific happening during this delay time?


#15

This is a fresh build with Raspbian Stretch OS updated and default install of PiHole 4.x. Only one client is currently using it. Minimal activity. /etc/pihole/pihole-FTL.conf is blank.


#16

Okay, sorry for asking this as well, but how does the same GIF look for tail -f /var/log/pihole-FTL.log on the right side?


#17

pi@raspberrypi:~ $ tail -f /var/log/pihole-FTL.log
[2018-08-12 12:55:49.428] -> Known forward destinations: 2
[2018-08-12 12:55:49.428] Successfully accessed setupVars.conf
[2018-08-12 12:55:49.432] PID of FTL process: 5650
[2018-08-12 12:55:49.433] Listening on port 4711 for incoming IPv4 telnet connections
[2018-08-12 12:55:49.433] Listening on port 4711 for incoming IPv6 telnet connections
[2018-08-12 12:55:49.433] Listening on Unix socket
[2018-08-12 12:55:49.434] FATAL: Trying to free NULL pointer in fr ee_whitelist_domains() (regex.c:72)
[2018-08-12 12:55:49.434] INFO: No whitelist file found
[2018-08-12 12:55:49.434] Compiled 0 Regex filters and -1 whitelis ted domains in 0.1 msec (0 errors)
[2018-08-12 12:55:50.137] /etc/pihole/gravity.list: parsed 134366 domains (took 702.1 ms)
[2018-08-12 12:59:33.991] ########## FTL started! ##########
[2018-08-12 12:59:33.992] FTL branch:
[2018-08-12 12:59:33.992] FTL version: v4.0
[2018-08-12 12:59:33.992] FTL commit: 8493df4
[2018-08-12 12:59:33.992] FTL date: 2018-08-05 13:40:30 -0700
[2018-08-12 12:59:33.992] FTL user: pihole
[2018-08-12 12:59:33.993] Starting config file parsing (/etc/pihol e/pihole-FTL.conf)
[2018-08-12 12:59:33.993] SOCKET_LISTENING: only local
[2018-08-12 12:59:33.993] AAAA_QUERY_ANALYSIS: Show AAAA querie s
[2018-08-12 12:59:33.993] MAXDBDAYS: max age for stored queries is 365 days
[2018-08-12 12:59:33.993] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-08-12 12:59:33.994] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-08-12 12:59:33.994] DBINTERVAL: saving to DB file every m inute
[2018-08-12 12:59:33.994] DBFILE: Using /etc/pihole/pihole-FTL. db
[2018-08-12 12:59:33.994] MAXLOGAGE: Importing up to 24.0 hours of log data
[2018-08-12 12:59:33.995] PRIVACYLEVEL: Set to 0
[2018-08-12 12:59:33.995] IGNORE_LOCALHOST: Show queries from l ocalhost
[2018-08-12 12:59:33.995] BLOCKINGMODE: Null IPs for blocked do mains
[2018-08-12 12:59:33.995] REGEX_DEBUGMODE: Inactive
[2018-08-12 12:59:33.995] Finished config file parsing
[2018-08-12 12:59:33.996] INFO: No whitelist file found
[2018-08-12 12:59:33.996] Compiled 0 Regex filters and -1 whitelis ted domains in 0.2 msec (0 errors)
[2018-08-12 12:59:33.997] Database successfully initialized
[2018-08-12 12:59:33.998] Notice: Increasing queries struct size f rom 0 to 10000
[2018-08-12 12:59:33.998] Notice: Increasing domains struct size f rom 0 to 1000
[2018-08-12 12:59:33.998] Notice: Increasing clients struct size f rom 0 to 10
[2018-08-12 12:59:33.999] New forward server: 8.8.4.4 (0/0)
[2018-08-12 12:59:33.999] Notice: Increasing forwarded struct size from 0 to 4
[2018-08-12 12:59:33.999] Notice: Increasing overTime struct size from 0 to 100
[2018-08-12 12:59:34.003] New forward server: 8.8.8.8 (1/4)
[2018-08-12 12:59:34.015] Imported 1874 queries from the long-term database
[2018-08-12 12:59:34.015] -> Total DNS queries: 1874
[2018-08-12 12:59:34.015] -> Cached DNS queries: 73
[2018-08-12 12:59:34.015] -> Forwarded DNS queries: 1191
[2018-08-12 12:59:34.016] -> Exactly blocked DNS queries: 610
[2018-08-12 12:59:34.016] -> Unknown DNS queries: 0
[2018-08-12 12:59:34.016] -> Unique domains: 419
[2018-08-12 12:59:34.016] -> Unique clients: 7
[2018-08-12 12:59:34.016] -> Known forward destinations: 2
[2018-08-12 12:59:34.017] Successfully accessed setupVars.conf
[2018-08-12 12:59:34.021] PID of FTL process: 6559
[2018-08-12 12:59:34.021] Listening on port 4711 for incoming IPv4 telnet connections
[2018-08-12 12:59:34.022] Listening on port 4711 for incoming IPv6 telnet connections
[2018-08-12 12:59:34.022] Listening on Unix socket
[2018-08-12 12:59:34.024] FATAL: Trying to free NULL pointer in fr ee_whitelist_domains() (regex.c:72)
[2018-08-12 12:59:34.025] INFO: No whitelist file found
[2018-08-12 12:59:34.025] Compiled 0 Regex filters and -1 whitelis ted domains in 0.6 msec (0 errors)
[2018-08-12 12:59:47.395] ########## FTL started! ##########
[2018-08-12 12:59:47.395] FTL branch:
[2018-08-12 12:59:47.395] FTL version: v4.0
[2018-08-12 12:59:47.395] FTL commit: 8493df4
[2018-08-12 12:59:47.395] FTL date: 2018-08-05 13:40:30 -0700
[2018-08-12 12:59:47.395] FTL user: pihole
[2018-08-12 12:59:47.395] Starting config file parsing (/etc/pihol e/pihole-FTL.conf)
[2018-08-12 12:59:47.395] SOCKET_LISTENING: only local
[2018-08-12 12:59:47.395] AAAA_QUERY_ANALYSIS: Show AAAA querie s
[2018-08-12 12:59:47.395] MAXDBDAYS: max age for stored queries is 365 days
[2018-08-12 12:59:47.396] RESOLVE_IPV6: Resolve IPv6 addresses
[2018-08-12 12:59:47.396] RESOLVE_IPV4: Resolve IPv4 addresses
[2018-08-12 12:59:47.396] DBINTERVAL: saving to DB file every m inute
[2018-08-12 12:59:47.396] DBFILE: Using /etc/pihole/pihole-FTL. db
[2018-08-12 12:59:47.396] MAXLOGAGE: Importing up to 24.0 hours of log data
[2018-08-12 12:59:47.396] PRIVACYLEVEL: Set to 0
[2018-08-12 12:59:47.396] IGNORE_LOCALHOST: Show queries from l ocalhost
[2018-08-12 12:59:47.396] BLOCKINGMODE: Null IPs for blocked do mains
[2018-08-12 12:59:47.396] REGEX_DEBUGMODE: Inactive
[2018-08-12 12:59:47.396] Finished config file parsing
[2018-08-12 12:59:47.396] INFO: No whitelist file found
[2018-08-12 12:59:47.396] Compiled 0 Regex filters and -1 whitelis ted domains in 0.1 msec (0 errors)
[2018-08-12 12:59:47.397] Database successfully initialized
[2018-08-12 12:59:47.398] Notice: Increasing queries struct size f rom 0 to 10000
[2018-08-12 12:59:47.398] Notice: Increasing domains struct size f rom 0 to 1000
[2018-08-12 12:59:47.398] Notice: Increasing clients struct size f rom 0 to 10
[2018-08-12 12:59:47.398] New forward server: 8.8.4.4 (0/0)
[2018-08-12 12:59:47.398] Notice: Increasing forwarded struct size from 0 to 4
[2018-08-12 12:59:47.398] Notice: Increasing overTime struct size from 0 to 100
[2018-08-12 12:59:47.402] New forward server: 8.8.8.8 (1/4)
[2018-08-12 12:59:47.413] Imported 1874 queries from the long-term database
[2018-08-12 12:59:47.413] -> Total DNS queries: 1874
[2018-08-12 12:59:47.414] -> Cached DNS queries: 73
[2018-08-12 12:59:47.414] -> Forwarded DNS queries: 1191
[2018-08-12 12:59:47.414] -> Exactly blocked DNS queries: 610
[2018-08-12 12:59:47.414] -> Unknown DNS queries: 0
[2018-08-12 12:59:47.414] -> Unique domains: 419
[2018-08-12 12:59:47.414] -> Unique clients: 7
[2018-08-12 12:59:47.414] -> Known forward destinations: 2
[2018-08-12 12:59:47.414] Successfully accessed setupVars.conf
[2018-08-12 12:59:47.418] PID of FTL process: 6756
[2018-08-12 12:59:47.419] Listening on port 4711 for incoming IPv4 telnet connections
[2018-08-12 12:59:47.419] Listening on port 4711 for incoming IPv6 telnet connections
[2018-08-12 12:59:47.419] Listening on Unix socket
[2018-08-12 12:59:47.421] FATAL: Trying to free NULL pointer in fr ee_whitelist_domains() (regex.c:72)
[2018-08-12 12:59:47.421] INFO: No whitelist file found
[2018-08-12 12:59:47.421] Compiled 0 Regex filters and -1 whitelis ted domains in 0.3 msec (0 errors)
[2018-08-12 12:59:48.140] /etc/pihole/gravity.list: parsed 134366 domains (took 717.7 ms)


#18

Just to let you know that we take the problem seriously: I propose a complete rewrite of our blocking infrastructure. This would also remove any delays in the enable/disable commands.


#19

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