Skip to the content
Search

Skip the list of pages

Stuck downloads

Why a queue jams, how to tell the six ways apart, and what fixes each of them.

Setting a stack up is a one-day problem. Stuck items are the forever problem.

Once everything is running, the failure that recurs is not configuration — it is a queue that quietly jams. A download stalls at 94 per cent. An import fails because a file is locked, or the release is in a format nothing can extract, or a permission is wrong. An indexer returns nothing because its key expired.

Each service knows about its own stall, and none of them tells anyone. What you experience is simply that things stopped appearing.

Start with the list

$ lemonfiber stuck

Each entry names the item, the service whose queue is holding it, and the stage its download reached — so you can follow any one of them on its own rather than being handed a count to investigate.

If a service's queue could not be read, the listing says so rather than reporting a short list as though nothing else were stuck.

Then follow one item

$ lemonfiber trace "the thing you are waiting for"

A trace searches the way you would name it, not by an internal identifier, and reports how far it got. A show is reported season by season: how many episodes are here, and what each one that is not is waiting on. --season narrows it.

The stages, in order, are:

StageWhat has happened
not-monitoredNobody has asked for it
monitoredWanted, and waiting to be searched for
searchingA search is running
foundAn indexer returned releases
grabbedA release was sent to the download client
downloadingThe download is in progress
downloadedThe download finished
importingThe library service is importing it
importedIt is in the library on disk
availableIt is visible and playable in the media server

Where a trace had to match a renamed release fuzzily, it says so rather than presenting a guess as a fact. Where is my show? covers reading one in full.

The six ways a queue jams

The remedies differ, so the categories are worth telling apart.

What you seeWhere it stopsUsual cause
Stalled downloaddownloading, and not movingA dead torrent with no seeders, or exhausted Usenet retention
Completed and never importeddownloadedPermissions, a name nothing can parse, or an archive that was not extracted
Repeated import failureimporting, again and againStructural. It will not resolve itself.
Waiting indefinitelymonitored, never grabbedNo releases match the quality preset, or the indexers are returning nothing
Orphaned downloadOn disk, unknown to any library serviceAdded by hand, or the service lost track of it
Redownload loopFetched over and overAn import failing silently and being retried forever

Completed and never imported is the one nobody owns. The download client considers it finished. The library service never picked it up. Neither reports a problem, because from each service's own point of view there is not one. Only something watching both can see it.

The redownload loop deserves its own attention. It consumes bandwidth and Usenet allowance indefinitely while looking exactly like normal activity.

Working out which one you have

Start from lemonfiber stuck, follow the trace of the item you care about, and read across from where it stopped. The doctor declares a queue category, and no bundled check reports in it, so the stuck list is where these show.

Stopped at monitored or searching

Nothing is being found. That is usually about the indexers or the quality preset rather than the download side.

  • QUAL-2 — releases exist and the preset wants none of them. The indexer is working; the preset is stricter than what is out there.
  • QUAL-3 — the indexer answered and there is nothing at all. Not a failure; there is nothing to grab yet.
  • CRED-2 — the indexer rejected its key. Searches through it come back empty.
  • CRED-3 and PROVIDER-9 — the key is fine and the indexer is limiting or has spent its allowance. Waiting fixes it.
  • PROVIDER-4 — one indexer has been failing and its aggregator has rested it. Releases are still found, from a smaller pool.
  • PROVIDER-5 — every indexer is failing at once. Indexers do not all fail on the same afternoon, so look at this machine's network, its DNS, and the tunnel if searches run through one.

Quality presets covers changing what the preset asks for.

Stopped at grabbed or downloading

Something was sent to the download client and is not progressing.

  • On Usenet, check the account: PROVIDER-1 means it has nothing left, PROVIDER-6 means it is refusing the login, PROVIDER-7 means it stopped answering, and PROVIDER-8 means the client is opening more connections than the plan allows.
  • On torrents, check that peers can reach you. VPN-4 and VPN-7 both mean no peer can open a connection to your client, which reads as a slow download rather than as a fault. Is my VPN hiding me? covers both.
  • A genuinely slow large release on a slow connection is not broken, and is reported as slow rather than stalled.

Stopped at downloaded or importing

The file is on disk and is not reaching the library. This is nearly always storage or wiring.

  • STORAGE-2 and STORAGE-6 — the services cannot write where they need to. Imports fail inside the service, far from where the cause is.
  • STORAGE-4 — the disk is full or projected to fill. A disk that fills partway through an import leaves half a file behind and stalls everything behind it.
  • WIRING-1 — the download client is filing under a category the rest of the stack no longer looks in, or the service can no longer reach the client at all. lemonfiber doctor --fix offers to put it right.
  • SEED-1 and SEED-2 — the wiring between two services was never completed, or its credential has gone stale.

Hardlinks and one mount point covers the storage side in full.

Stopped at imported, never available

The file is in the library on disk and the media server has not picked it up. The trace distinguishes "the media server answered and does not have it" from "the media server could not be reached", so read which one you got: the first is a library that has not been scanned, the second is not an answer at all.

What lemonfiber will fix for you

Two of the causes above have a repair with one unambiguous action, and lemonfiber doctor --fix offers each rather than applying it silently:

  • moving the download client onto the port the VPN forwarded, for VPN-7;
  • putting a download client back on the category lemonfiber files under, for WIRING-1, where lemonfiber wrote that value and the client still holds it.
$ lemonfiber doctor --fix

Each repair says what it would do and what else changes if it does, and waits to be told. The rest of the causes on this page are yours to act on. See run the doctor.

Thresholds

"Stuck" is a judgement, and the defaults are deliberately conservative. A torrent with no seeders may recover in a day; one that has not moved in a week will not. A false report of "stuck" trains you to ignore the feature, which costs more than the occasional late warning.