Repository navigation
Description
What happened
Chapter thumbnail generation produced zero thumbnails over a nine-hour window while logging 357 failures. Every one of those failures was an S3 upload rejection, but all 357 are labelled reason: chapter_extract_failed, and the admin UI discards the underlying error entirely.
The combination sent me diagnosing ffmpeg extraction when the actual fault was a signature rejection on PutObject.
The mislabelled reason
From the container log, one complete record:
{
"level": "WARN",
"msg": "chapter thumbnail upload failed",
"component": "chapterthumbs",
"file_id": 283344,
"chapter_index": 0,
"reason": "chapter_extract_failed",
"error": "upload chapter-images/283344/0/original.webp: s3 PutObject silo-assets/chapter-images/283344/0/original.webp: operation error S3: PutObject, https response error StatusCode: 403, RequestID: , HostID: , api error AccessDenied: Forbidden: Invalid signature"
}The message is correct — the upload failed. The reason is not: nothing was extracted-and-then-failed, the frame was produced and the S3 PutObject was refused.
All 357 records in the window carry the same reason and the same error class:
357 api error AccessDenied: Forbidden: Invalid signature
357 reason: chapter_extract_failed
chapter_extract_failed is also the reason used for genuine extraction failures. In the same log, 11 records report real extract problems with distinct causes:
reason: tonemap_unsupported error: tonemap_unsupported: software HDR tone mapping is disabled
reason: chapter_extract_failed error: hardware extraction failed: chapter_extract_failed: ffmpeg extract frame: exit status 234
([mjpeg @ ...] Non full-range YUV is non-standard ...)
So the same code covers both a real ffmpeg failure and an S3 authorization failure, which makes it useless for telling them apart — by count it is wrong 357 times out of 368.
The error is dropped before it reaches the admin
The string above exists in the container log. The admin UI (Logs → the same chapterthumbs WARN entry) renders:
{
"chapter_index": 4,
"component": "chapterthumbs",
"error": {},
"file_id": 170621,
"reason": "chapter_extract_failed"
}"error": {} — an empty object. Everything needed to identify the cause is discarded at exactly the surface an operator is expected to use. Combined with the wrong reason code, the admin UI states, confidently and incorrectly, that extraction is failing.
Without shell access to the container there is no way to discover that this is an S3 signature problem.
Impact
The failure is silent in aggregate as well. chapter thumbnail processing finished reports the outcome:
{ "component": "chapterthumbs", "file_id": 272282, "failed_count": 6, "generated_count": 0 }
{ "component": "chapterthumbs", "file_id": 272278, "failed_count": 5, "generated_count": 0 }Different files, generated_count: 0 every time, and nothing surfaces to the admin beyond a WARN whose reason is wrong and whose error is empty. In a 100-entry sample of the component there were 59 WARN and no success message of any kind.
For context on how this presents: the deployment had recently moved its public bucket behind a reverse proxy. Presigned GETs validate through it (artwork loads correctly), while PutObject does not — so reads look healthy and only writes fail. That is a deployment-side problem and not what this issue asks you to fix; it is why the diagnosis mattered, and why the reason code pointing at ffmpeg was costly.
Expected behavior
- An upload failure should not report
reason: chapter_extract_failed. A distinct code —chapter_upload_failed, or similar — would separate the storage path from the extraction path. - The underlying error should reach the admin log payload rather than serialising to
{}. The string is already available at the point the WARN is emitted.
Environment
- Silo
519 · 604bafe1 - Self-hosted S3 (Garage), public asset bucket, URL auth "Signed links"
- 357 upload failures between 11:34Z and 20:05Z, zero successes
Media paths and hostnames omitted. Object keys shown above are Silo-generated and contain no media identifiers.
Activity