Troubleshooting
You finish this chapter able to read Miniflux's complaints the way the lab learned to: each one names the part that is unhappy, and the fix follows the name. Every entry below either happened in the lab — its transcript is named — or follows from a check the guide has already shown you.
The pulse check that sorts everything
Before anything else:
curl -s http://127.0.0.1:8080/healthcheck
OK means the program and its
database are both alive, and your
problem is narrower — a feed, a
credential, a setting. Silence or an
error means start lower: is the
process running at all (the package's
service, or your binary's terminal),
and is PostgreSQL up (pg_isready,
chapter 3)? Miniflux without its
database is a voice with no memory;
almost every "Miniflux is down" is
one of those two processes stopped.
"refusing to access private network host"
You asked Miniflux to fetch a feed at
a loopback or home-network address,
and the guard rail of chapter 5
stopped it (transcript t04). On your
own server this is the
FETCHER_ALLOW_PRIVATE_NETWORKS
setting waiting to be turned — with
chapter 11's colder head on while you
turn it. The message names the lock;
it is not a broken feed.
The sign-in that bounces your script back
A browser signs in first try; your
curl keeps landing back on the
sign-in page. That is the csrf lesson
of chapter 4: the form's hidden token
belongs to the cookie the form page
set, so fetch and post must share one
cookie jar (transcript t03 shows the
working sequence). Or skip the form:
scripts belong at the API door, with a
key (chapter 8), where none of this
applies.
"404 page not found" from an address that sounds right
The API's grammar is consistent, but
it is its grammar: key calls hang
off the signed-in user (/v1/api-keys),
not off a numbered user
(/v1/users/1/api-keys — the lab's
404, transcript t05). A 404 from the
API is nearly always a misremembered
address, not a missing feature. Check
the call against chapter 8's list
before concluding anything is broken.
"this is not an interactive terminal, exiting"
-create-admin wants a keyboard
(transcript t02). Run it in a real
terminal, or use the CREATE_ADMIN
environment route for unattended
installs (chapter 4). The message, for
once, is the whole diagnosis.
A feed that stopped bringing anything
Read its report card (chapter 7): the
feed's own page, and fields
parsing_error_count and
parsing_error_message in its API
record. Three usual stories:
- The site moved. The feed address redirects or dies. Subscribe afresh at the new address; your old entries stay in history meanwhile.
- The site broke its feed. Errors climb, entries stop. Nothing on your side is wrong, and refreshing harder will not help; the disable switch keeps the archive without the noise.
- The feed changed under you. A site republishes with different entry identities, and Miniflux treats the new versions as new entries — or an old favourite vanishes from the document and takes its place in your list only in history. Chapter 11's rule applies: you hold what arrived; the feed owns what comes next.
And the dull one, first really: check
the feed is not disabled, and that
next_check_at is not simply in the
future — a feed between polls looks
exactly like a quiet feed, because it
is one. The refresh call (chapter 7)
settles which.
Nothing arrives from anywhere
If every feed is stale, suspect the
server, not the sites: the scheduler
runs inside the same process as the
web pages, so a Miniflux that serves
pages but never fetches is a Miniflux
whose clock or database is unhappy —
the health check above, the process's
own log (its lines are plain about
what it is doing), and POLLING_FREQUENCY
in -config-dump are the three places
to look, in that order.