pi-hole/pi-hole

Ads Not Blocking Properly in Pi-hole Docker

touhamii opened this issue · 6 comments

Versions

Pi-hole version is v5.17.3 (Latest: v5.17.3)
web version is v5.21 (Latest: v5.21)
FTL version is v5.24 (Latest: v5.24)

Platform

  • Platform: Docker

Issue:
Ads are not consistently being blocked as expected in my Pi-hole Docker setup. After restarting Docker or my PC, the blocking functionality becomes random. Even after re-downloading Pi-hole, the problem persists.

Expected Behavior:
Consistent ad blocking, with domains and ads disappearing as intended.

Note:
No changes were made to settings; the issue started without any modifications made by me. I only restarted my PC.

Please, post the compose file or docker run command used to start the container.

Also, generate a debug log and post here only the Token.

Using the command line:

  • use pihole -d command.
  • when asked to upload the log, answer Y.
  • copy only the token and paste here.

Using the web interface:

  • click on Tools > Generate Debug Log menu.
  • then mark the second checkbox to upload the log and click on the big button.
  • when finished, copy only the token and paste here.

1/ docker run :

docker run --hostname=d76b0dc50f41 --mac-address=02:42:ac:11:00:02 --env=PATH=/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=phpver=php --env=PHP_ERROR_LOG=/var/log/lighttpd/error-pihole.log --env=IPv6=True --env=S6_KEEP_ENV=1 --env=S6_BEHAVIOUR_IF_STAGE2_FAILS=2 --env=S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 --env=FTLCONF_LOCAL_IPV4=0.0.0.0 --env=FTL_CMD=no-daemon --env=DNSMASQ_USER=pihole -p 53:53 -p 53:53/udp -p 67:67/udp -p 80:80 --label='org.opencontainers.image.created=2024-01-07T08:10:27.389Z' --label='org.opencontainers.image.description=Pi-hole in a docker container' --label='org.opencontainers.image.licenses=NOASSERTION' --label='org.opencontainers.image.revision=184b8bbedcbf308a1777ed653f4a7cbc5885358d' --label='org.opencontainers.image.source=https://github.com/pi-hole/docker-pi-hole' --label='org.opencontainers.image.title=docker-pi-hole' --label='org.opencontainers.image.url=https://github.com/pi-hole/docker-pi-hole' --label='org.opencontainers.image.version=2024.01.0' --runtime=runc -d pihole/pihole:latest

2/
[✓] Your debug token is: https://tricorder.pi-hole.net/n1NqmaUX/

Observations:

The number of blocked queries increases when visiting sites with ads (e.g., cnn.com).
However, certain ads, such as the large one at the top (see attached picture), do not disappear.
This issue is specific to Windows 10 + Docker; on my MX Linux distro, Pi-hole functions correctly.

Picture 1: Before navigating to cnn.com
https://i.imgur.com/ejkVjyM.png

Picture 2 : After
https://i.imgur.com/I3zmD9h.png