Troubleshooting
Scope: failures in the order you're likely to meet them, each as symptom → cause → fix. Entries the lab produced are marked with their transcript; the rest come from the project's documentation and are worded as what they are.
Nothing is blocked, anywhere
Symptom: ads everywhere, an empty or near-empty query log.
Cause: the house isn't asking. Pi-hole can only refuse questions it hears (chapter 2).
Fix: check the router's DHCP/DNS setting names the Pi-hole's address; then recipes #5's audit — one device, one fresh page load, one log line that should exist. If the log shows other devices but never this one, that device has its own resolver opinions (chapter 9).
Pi-hole is down and "the internet is broken"
Symptom: every name fails to resolve, house-wide, though the connection itself is up.
Cause: the single DNS server is the single point of failure chapter 2 warned about — FTL stopped, the box lost power, or its address changed under it.
Fix: get to the box (its address, a
screen, SSH) and check the service —
pihole status on a full install; on any
install, one local question tells the
truth: dig @127.0.0.1 pi.hole. Restart
the service if it's down, and fix the
address problem permanently with a
reservation if it wandered. As a bridge,
repoint the router's DNS at an upstream
until the box is back — and remember to
point it back.
The engine runs but answers nobody (lab)
Symptom (t07, first start): FTL up,
ports listening, queries unanswered, and
the log repeats gravity database not
available / Cannot read gravity database.
Cause: /etc/pihole/gravity.db missing
or its info bookkeeping absent — a state
a real install never reaches, because the
installer and gravity create both.
Fix: this is the bare-engine assembly's
tuition (examples/lab-notes.txt): create
the database from the project's schema and
let a gravity run — or the lab's hand
planting — fill it. If you meet it on a
full install, pihole -g rebuilds gravity;
a database it can't repair is a reinstall
conversation, not a debugging one.
A rule change "didn't take"
Symptom: you added or removed a rule; dig still shows the old answer.
Cause (t04): the cache, most likely. Blocked answers are cached briefly (two seconds in the lab) and forwarded answers for their TTL; the first re-ask after a change can be a reading of history, not of your rule.
Fix: wait out the TTL and ask again. If the answer persists, then check the unglamorous things: the rule's group vs the client's groups (chapter 5), a typo in the name, and whether an allowlist entry outranks your deny — allow wins.
One website breaks; everything else is fine
Symptom: a login, checkout, or video fails only in this house.
Cause: a name the site needs is on a list — chapter 9's "lists are judgement" arriving on schedule.
Fix: recipes #3's drill: reproduce, read that device's refused names in the query log for that minute, allowlist the one name, retry. The disable switch (chapter 8) is the diagnostic that confirms the theory in ten seconds — blocking off, site works, theory proven — and is not the fix.
It works on some devices and not others
Symptom: the log is full of questions from the laptops, silence from the TV (or the reverse).
Causes, in the order to check them: the silent device has a hard-coded resolver or DoH (chapter 9); the network has an IPv6 side door staffed by the router, not Pi-hole; or the silent device is a phone being recognised under a randomised MAC and sitting outside the client you defined (chapter 5). The query log plus the router's client list, compared, will tell you which of the three you're in.
After restarting, FTL never came back (lab)
Symptom (chapter 8's own catch): an API restart on a hand-run engine ends the process for good.
Cause: restart means "exit; your supervisor relaunches you", and a bench with no supervisor keeps the exit and skips the relaunch.
Fix: run the engine under something —
systemd on an install, the container's
restart policy in Docker — and treat any
bare-pihole-FTL session as a lab bench,
not a service. Verify any restart with a
dig before walking away.
The web interface 404s but DNS works (lab)
Symptom (t03): /admin/ redirects to a
login page that returns 404, while DNS
answers and the API responds fine.
Cause: the engine serves interface files it was given; a standalone binary install was never given any. The web interface is a separate component the installer (or the container image) supplies.
Fix: on a full install, a repair install restores the files. On the bare engine, there is nothing to fix — the API is the interface's own back end, and chapter 6 used it directly.
The log fills with a name you've never heard of
Symptom: thousands of questions for something unpronounceable, from one device.
Cause: usually a device doing its job loudly — telemetry, a connectivity check, a misbehaving app retrying. Occasionally a name worth searching the web for.
Fix: read before acting. If the name is junk and unlisted, an exact deny ends it (chapter 3). If it's one device gone frantic, the device is the story, not the name. Blocking a symptom feels productive and occasionally is.