How do I debug my Pi-hole installation?


Method 1: Generate a debug token via the Web interface

  1. Log in to your Pi-hole’s Web interface
  2. Navigate to Tools > Generate debug log
  3. Click the Generate debug log button
  4. Send us the debug token

Method 2: Use the command line to generate a debug token

  1. Login into your Pi-hole’s command line
  2. Enter pihole -d
  3. Provide us with the debug token that is generated after the debug script completes

Alternative: Securely sending us additional information

Preferred Method

If there is additional information you want to provide us, you can upload any kind of text to our server. You will still get a debug token so your information will remain anonymous.

To do this, you can pipe some shell output into netcat, which will upload it to our secure server.

Here are a few examples of how you can send us this information:

VIa The pihole Command (assuming your install is not broken and the pihole command exists)

echo "hello developers" | pihole tricorder
cat some.log | pihole tricorder

pihole tricorder will always use openssl if it is available. If it’s not, it will revert to using netcat.

Via NetCat (cleartext)

echo "some text" | nc 9999
cat somefile.txt | nc 9999
tail -n4 /var/log/pihole.log | nc 9999

Via SSL (encrypted)

echo "Information to send over SSL" | openssl s_client -quiet -connect 2> /dev/null

Be patient as it can sometime take a moment for it to upload. Once complete, you will receive a debug token such as 3vnm3hqwjs:

root@ubuntu:~$ echo "help me" | nc 9999

When you are ready to get some help from us, give us this token and we can look up your information. Please note anything uploaded will self-destruct after 48 hours.

Alternate Methods

These services are similar, but your information will be more public. Just send us the link generated from the service.

Pi-hole DNS not resolving
Failed installation
Guide for less problematic setup?
Sneaky Query... how did this happen?
Ads not blocked from Ubuntu VM after install. Perhaps router configuration?
Unknown Error -1
Sneaky Query... how did this happen?
Pi-hole v3.2 Introduces Long-term Statistics, An Audit Log, Colours, and More!
Why do blacklisted domains show IPv4 as "Pi-holed" but not IPv6 in the query log?
Your debug token is: Use netcat
Long-term queries over time: Inconsistency
Default Ad-Servers from list are not being installed
Webpages are really slow or even not loading. windows 10, chrome
PiVPN + Pi-Hole installation let crashes the Raspberry
Pihole have no log files
High CPU load, no graphs
Pihole 3.0 on Synology Docker - list updates fail
PiVPN + Pi-Hole installation let crashes the Raspberry