Troubleshooting
Work these in the order given for each symptom — each step rules something out before the next one costs you anything. The lab met several of these itself; those say so.
Gatus started, but the dashboard is empty or wrong
- Which config did it read? The
second line of the log names it:
[config.LoadConfiguration] Reading configuration from configFile=.... With noGATUS_CONFIG_PATH, Gatus looks forconfig/config.yamlunder the folder it started from — start it from somewhere else and it happily reads a different file, or the built-in example. - Did the endpoints validate? Look
for
Validated N endpointswith your N. A file can be valid YAML and still not be the file you meant.
"address already in use" at startup
Something already owns the port — the
lab met exactly this: the sandbox
machine had a service on 8080, and the
log's failed to listen line ended the
run. Find the owner
(ss -tlnp | grep 8080), or move
Gatus: set web.port (and web.address
if you like) in the config, as chapter
3 does — the lab runs on 8085 for this
reason.
An endpoint is red and "shouldn't be"
- Read the failing condition, with
its resolved values. API or detail
page:
[BODY].status (UP) == DOWNtells you the fact and the rule. Most red boards are the rule, doing its job (chapter 5). - Visit the target the way Gatus
does.
curlthe exact URL from the exact machine Gatus runs on. If curl fails too, the watcher is reporting, not causing. - Check the error text. Connection
refused is a closed port; a timeout
is a firewall or a very slow service;
a certificate error is the TLS layer,
with its own condition
(
client.insecureexists for lab targets you control — know what you are skipping before using it elsewhere).
It is red in flashes, green between
Flapping is usually a response-time condition set too tight for the network's mood, or an interval so short that ordinary load spikes trip it. Read a stretch of results in the API; if durations straddle your line, the line is the story. Raise the threshold to above-normal-but-below-pain, and let alert failure-thresholds (chapter 6) absorb single blips.
No alert arrived
In this order:
- Did it fail enough times in a row? Count from the API. Below the failure-threshold there is no alert to miss — that is the design.
- Is the provider configured at
all? The startup log lists
configuredProvidersandignoredProviders. An alert naming a provider that was never configured is ignored, silently from then on (chapter 6). - Can the destination be reached —
and can you prove it received
anything? Test against a listener
you control (the lab's
gatus-lab/capture.py) before blaming the real channel. The lab caught its TRIGGERED and RESOLVED payloads this way (transcriptst05-webhook-alert.txt,t06-alert-resolved.txt); a message you have never seen is a hope, not an alerting setup. - Then check the real provider's side: webhook URL copied whole, token valid, the channel not muted — in that order, because everything before this step is yours and checkable.
The alert fired once and never resolved — or resolved too early
The counting is symmetric: a triggered
alert resolves only after
success-threshold successes in a
row. A service that alternates —
success, failure, success — can keep an
incident open for hours, or with a high
success-threshold, flicker the
all-clear and re-trigger. The events
list and the result strip in the API
show the alternation plainly; set the
thresholds to match how the service
actually misbehaves.
History vanished after a restart
In-memory storage: there is no
storage: block in effect, whatever
was intended. Chapter 8's restart test
is the check, and its fix is the
SQLite block. If the block exists and
history still vanished, verify the
path file is where you think and
that the Gatus user can write it —
then check the startup log for the
config file actually read (first entry
in this chapter; the causes in this
guide rhyme).
My edit to the config did nothing — or killed Gatus
Edits are picked up automatically and
the log says
Configuration file has been modified
(the lab's transcript
t07-config-reload.txt). If nothing
changed, you edited a different file
than the one named in the startup log.
If Gatus exited, the new file is
invalid — by default an invalid reload
stops the program (chapter 11 explains
the opt-in exception and its trap).
The log's last lines name the fault;
chapter 3's habit — start a second
copy against the edited file first —
prevents the surprise.
ICMP or DNS endpoints always fail
Before debugging Gatus, ask the
machine: can its own ping ping? In
the lab sandbox the answer was
Operation not permitted — raw sockets
refused by the system itself, and UDP
(the DNS kind's transport) blocked as
well (transcript
t10-tcp-and-icmp.txt). Where the
operating system or the network says
no, Gatus cannot say yes. Run such
checks from a machine where the
system's own tools succeed, or accept
those kinds as documented-only in your
setup — and say so in your notes, so
the always-red row does not train you
to ignore red rows.