Troubleshooting
Outcome: the failures this guide's lab actually met — and the ones its runs point to — each with its cause and its check.
Every line fails to parse
Symptom: total equals failed; the
panels are empty. Cause: almost
always the log format — the preset does
not match the file. A combined parser
reading a common-layout log, a custom
server layout, the wrong file entirely
(an error log is not an access log).
Check: look at one raw line, name its
fields by eye, and compare with the
preset's shape; use --config-dialog
(-c) at a real terminal to test
presets against your lines, and
--invalid-requests to see the rejects
in a file of their own (chapter 5).
No failures — and the numbers are still wrong
Symptom: a plausible report that does
not match the site you know. Cause:
the lab's own discovery — a near-miss
format can parse cleanly (COMMON read
its COMBINED log without a single
failure, tolerating the extra fields),
and a custom layout with two fields
swapped would count happily into the
wrong panels. Check: never trust a new
log source until one panel has been
verified by hand — count the 404s with
awk '$9==404' and compare, as chapter
8 does. Agreement between an independent
count and GoAccess is the whole game.
"Unable to open the specified db path"
Symptom: the persistence fatal error
of chapter 9, naming
src/persistence.c. Cause: --db-path
points at a directory that does not
exist yet. Fix: mkdir it first.
GoAccess fills directories; it does not
create them. And if a run half-failed
this way, remember the report file may
still have been written — the run's two
halves succeed separately, so check both.
The web server answers 403 on every page
Symptom: your fresh lab server logs
nothing but 403s — and GoAccess then
analyses a log of pure refusal. Cause:
in the lab, the server's worker user
could not read files under a home
directory; the server's error log said
Permission denied outright. Check:
read the server's error log before
blaming the analyser, and remember the
division of labour — GoAccess can only
report the log it is given; a log of
403s, faithfully counted, is the server
asking for help. (The lab's fix, a
user root; line in a throwaway lab
config, is a lab fix. On a real server,
grant the worker user read access to
the document root properly.)
The dashboard will not draw
Symptom: running GoAccess bare, with
no -o, in a script or a pipe, produces
nothing useful. Cause: the terminal
dashboard needs a terminal. Fix: give
it one, or — in scripts, cron jobs and
pipelines — always name an output file
(-o report.json), which is the
non-interactive shape the lab used for
every filed report in this guide.
A setting applies itself
Symptom: a run behaves as if a flag
you did not pass was set. Cause: the
system-wide configuration at
/etc/goaccess/goaccess.conf is read by
default. Fix: pass -p with your own
config file (chapter 5), or edit the
system file deliberately — but know
which of the two your run used before
debugging anything else.
Unique visitors looks too small — or too big
Symptom: the count offends your sense of your audience. Cause: chapter 12's fingerprint arithmetic, working as designed. Check: compare hits, visitors and hosts together, and look at the browsers panel: a "visitor" explosion is often one address wearing many agent strings, and a suspiciously singular visitor is often a whole network behind one NAT address. The number is a measurement of fingerprints; interpret it as one.