Troubleshooting
Scope: the failures this guide actually met, the ones the architecture makes predictable, and the hardware failures it can only name — each as symptom, cause, and fix, in the order you will meet them.
The first tool is always the log. WeeWX says what it is doing and what it failed to do, in words, with the service's name on the line. Nearly every entry below ends at a log line; start there before changing anything, and change one thing at a time.
The engine will not start
Symptom: weewxd exits immediately, or
the service shows failed.
Causes, in the order this build met them:
- The logger itself is misconfigured.
A
[Logging]section in the wrong shape kills startup before anything else can be logged, with the complaint on the console instead:Unable to set up logger: Unable to configure handler...The fix is chapter 3's: root logger directly under[Logging], handlers under[[handlers]], merged over the defaults — and, while learning, no[Logging]section at all is a legitimate choice: the system log is a fine place to start. - A syntax error in
weewx.conf. The message names the line. The usual authors are a hand edit with the engine running (chapter 4's first rule) and an unquoted password with special characters — the generated file's comments say "use quotes around the password" for a reason. - A service in the roster cannot load.
After editing
[Engine]orbin/user/, a typo'd module name or a Python error in your file appears as a load failure naming the service. Undo the last roster edit; the engine is faithful about starting once the roster is honest again.
The engine runs; no records arrive
Symptom: LOOP packets print (or the log shows the main loop), but no "Added record" lines and the database stays empty.
- Wait one full interval. Records land on interval boundaries, not on startup; at the default 300 seconds a young station looks dead for five full minutes. This is the most common false alarm in the hobby.
- The driver's packets lack a timestamp or the clock is far wrong. The engine says so; chapter 5's clock discipline applies.
- Everything a QC reject. If a sensor is
reporting nonsense beyond its
[StdQC]limits, its values are set aside by design. The log's QC lines will show the discards; the fix is the sensor (or, if the limits are wrong for your climate, the limits).
The website is stale or empty
Symptom: pages exist but show old
weather, or public_html never fills.
- Reports disabled or failing. Search the log for the report's name: a template error fails that report, with a traceback, while the engine archives happily. Fix the template; the next cycle republishes.
- Looking at the wrong folder. A report
writes to its stanza's
HTML_ROOT, and add-on reports (chapter 9's Basic) write to subfolders of it. The front page you want is[StdReport]'sHTML_ROOT. - The web server serves a different copy. If FTP or rsync uploads are enabled, there are two websites; the stale one is usually the upload target after an upload failure, which the log also records.
Two reports, one file
Symptom: the front page shows the wrong report's content, flipping back and forth between cycles.
Cause: two reports generating the same
output filename into the same directory —
the lab did this to itself in chapter 9,
when a test skin's index.html.tmpl
claimed index.html from Seasons. Last
writer wins, per cycle.
Fix: rename the template (the output
takes the template's name) or give one
report its own HTML_ROOT subdirectory.
Remember the rule whenever a skin is
written or installed: output names are per
template, and collisions are silent.
An extension install seems to hang
Symptom: weectl extension install
sits, doing nothing visible.
Cause: the extension's own installer is
asking a question — chapter 9's Basic asked
for a language — that --yes does not cover,
on a terminal nobody is watching. The
install is not hung; it is waiting.
Fix: run it in a real terminal and answer; or feed the answer on standard input. Kill a truly stuck attempt without guilt — the installer saves its work progressively and backs up the configuration before editing it, so a second attempt starts from a clean confession of the first.
Numbers look wrong but nothing is broken
- Temperature averages that no packet showed: records are interval summaries, chapter 6 — an average, not a reading.
- A column always empty: the station does not have that sensor; NULL is the honest state (chapter 6).
- Degree-days or ET look odd on a young station: they are computed from the history that exists; a simulator or a three-day-old station has three days of truth to give.
- Wind direction averages look impossible: direction is circular (the mean of 350° and 10° is 0°, not 180°), and a calm interval has no direction at all — the lab's flat 360° was the simulator at rest, not a northerly gale.
The hardware failures this guide cannot show you
Documented-only, from the project's own
troubleshooting lore: a real station that
"does nothing" is, in order of likelihood, a
permissions problem on the serial device
(the dialout group, chapter 5), a wrong
port or address in the driver stanza, a
Fine Offset family's USB lockup (power-cycle
the console), or a dead sensor battery
announced by exactly the battery columns the
simulator so blithely invented. The engine's
log distinguishes them — driver errors name
the driver — and a station that was working
and stopped is a hardware story until the
log says otherwise.