Troubleshooting
Outcome: the failures the lab met for real, in roughly the order a new user meets them, each with the check that separates it from its neighbours. Transcripts are the lab's own; where a remedy is documented rather than run, it says so.
Every API call says 403 Forbidden
You are not logged in — or your cookie
is stale. The API gives nothing to
strangers (t01b). Log in again and
keep the fresh cookie:
curl -s -c cookies.txt \
-H 'Referer: http://127.0.0.1:18088' \
--data 'username=admin&password=<yours>' \
http://127.0.0.1:18088/api/v2/auth/login
If even the login is refused, the
usual culprit is the missing Referer
header — the program requires it as a
forgery guard, and curl does not send
one by itself.
The password is lost
Two honest cases. No password was
ever set: stop the program, start it
again, and read the console — a fresh
temporary password is printed, good
for that session (chapter 4). A
password was set and forgotten: there
is no recovery question and no reset
mail; that is the single-account model
of chapter 13 telling the truth.
Documented-only remedy: stop the
program, and in the profile's
qBittorrent.conf remove the
Password_PBKDF2 line under the
[WebUI] section; the next start
behaves as never-set and prints a
temporary password. Whoever can edit that file
owns the client — which is why the
profile folder deserves the same care
as a key.
Five wrong tries and the door locks
Wrong passwords answer 401
Unauthorized (t10), and the program
counts them per address: defaults,
read live in t10, are
web_ui_max_auth_fail_count: 5 and
web_ui_ban_duration: 3600 — an hour
of refusal even for the right
password once the counter trips. A
script with a stale password is the
usual author of this accident. Wait out
the hour, or raise the count in
preferences from a session you still
hold.
A torrent sits at stalledDL, 0%, forever
Read the state before touching
anything: stalledDL means no peers
are giving, and the causes queue in
this order (chapter 7 met the first
two):
- The swarm is empty or the torrent
names no way to find it — a
trackerless torrent with DHT, PeX
and LSD off has no discovery at all.
Check the torrent's trackers tab in
the WebUI, or
torrents/trackers. - The only peers are unreachable —
including the mirror case: if your
client is
firewalled(see below), peers who cannot connect out to you and cannot be connected to are lost. - The map never arrived — magnets
sit one state earlier, at
metaDL(below).
Restarts fix none of these. Peers fix all of them.
A magnet sits at metaDL
The client has a name and no map
(t10): metadata comes from the swarm
itself, so a magnet whose swarm is
empty or unreachable waits forever,
politely. The check is time plus one
peer: if torrents/info shows
num_seeds and num_leechs at zero
after a fair wait, there is nobody
home to ask. A .torrent file for the
same hash skips this state entirely —
one reason publishers offer both.
"Not a valid torrent file" (HTTP 415)
The upload was refused because the
file is not a torrent (t10): usually
an error page saved under a plausible
name by a download that went wrong —
the same trap as a 9-byte installer.
Check the file's beginning; a real
torrent opens with the bencode letter
d and a key — the lab's own maps
begin d7:comment — never with the
< of an HTML error page.
Progress fell to 0 on a complete torrent
Do not panic, and do not re-download:
a recheck is running, most likely
one you asked for (chapter 8). Progress
is honestly 0 proven while the
pieces are re-read, and it returns —
or does not, if the disk has news for
you. Wait for the state to leave
checkingUP/checkingDL before
judging the number.
connection_status says "firewalled"
Your client can reach out but not be
reached (t11): inside the sandbox
that is simply the truth, and at home
it means the torrenting port is not
forwarded through the router. Downloads
still work — you connect to others —
but swarms are poorer for it. The fix
lives in the router (a forwarded port,
or enabling UPnP there and in
preferences), not in restarts.
The WebUI port is already taken
Two instances, one port: the second
program cannot serve its pages. Give
each instance its own --webui-port
and its own --profile — the lab's
pair ran 18088/18089 with profiles
side by side — and remember the
torrenting ports must differ too.
RSS rule set, accepted, and nothing happens
Read the rule back (t09): a 200 from
rss/setRule means stored, and a
rule whose affectedFeeds is empty
governs nothing — the field's name is
version-sensitive, and the read-back is
the only statement of what your
version actually kept. Also check the
two preference switches of chapter 10
and whether the feed itself refreshes
(rss/items should show articles, and
hasError should be false).