Won't load info in Web UI running on Docker

I've been running Pi-hole on a Raspberry Pi for a while and have started moving apps running on there to Docker on an Intel NUC (running Ubuntu). I've managed to get everything running OK on there apart from Pi-hole.

I'm using @diginc's Docker image from GitHub - frenos/docker-pi-hole: pi-hole in a docker container. After starting the container it seems to work OK at blocking ads, and the logs shown in Portainer and pihole.log don't appear to show any problems (as far as I can tell), but once the Web UI has loaded it doesn't show any details for Total Queries, Queries Blocked, Pi-hole's Query adjusts etc.


I looked at the FAQ page below, and I've tried flushing my browser cache, using a different browser etc.
Why doesn't my Web interface load stats?

I also looked at and tried solutions that worked for other people here and here without any luck.


Here's my code to start the container:

docker run -d \
--restart=unless-stopped \
--name pi-hole \
-v /home/jono/docker/pi-hole/pihole.log:/var/log/pihole.log \
-v /home/jono/docker/pi-hole/etc/pihole/:/etc/pihole \
-v /home/jono/docker/pi-hole/etc/dnsmasq_d:/etc/dnsmasq.d \
-e ServerIP=192.168.0.5 \
-e WEBPASSWORD=MY-PASSWORD \
-e TZ=Europe/London \
-p 54:53/tcp \
-p 54:53/udp \
-p 80:80 \
diginc/pi-hole

and I can post the logs if that would help.

What are the next steps to try and get this working?

Expected Behaviour:

The Web UI would show details/statistics on the ads that have blocked.

Actual Behaviour:

The Web UI doesn't show any details/statistics on the ads that have blocked.

Debug Token:

vjelay88sq

GitHub - frenos/docker-pi-hole: pi-hole in a docker container is a fork of my image that seems pretty far out of date. I've dropped the alpine image all together and only support the debian one now. I didn't think this error was possible on such an old image so I assume you meant my actual image (diginc/pi-hole:latest) not frenos's fork.

To summarize what I've gathered are the most common fixes for this problem:

  • Missing dnsmasq.conf log-queries=extra line
  • if dnsmasq/FTL ran without extra log queries, clean up both the FTL DB and pihole.log to get things rolling again

Can you re-confirm you do all 3 of those steps?

I would suggest running the latest version of my fork and clean up your volume data completely. If that doesn't work the debug steps for logs missing are typically to:

  1. look at the pihole.log to see if dnsmasq is correctly recording queries with the right format
  2. see if FTL is reading said logs into it's database
  • #2 can be accomplished with my newest image using the FLT_CMD being set to 'debug' as an environment variable.
1 Like

Thanks for getting back to me. I posted the wrong link! I'm using your 'proper' version from here https://github.com/diginc/docker-pi-hole

dnsmasq.conf already has the 'log-queries=extra' line.
I trashed pihole-FTL.db and 'emptied' pihole.log.

This still didn't help so I added '-e FTL_CMD="debug" ' , but I'm not sure where the debug log is created/saved :blush:


Not sure if these will help, but here's the contents of 01-pihole.conf
https://d.pr/n/tof4Fw

And here's pihole.log
https://d.pr/n/6btACT

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