You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cached artwork breaks permanently when the public S3 provider changes #348
When an admin changes the public S3 provider (endpoint, bucket, or key prefix), every cached image breaks permanently unless they migrate the bucket contents themselves:
The DB stores bucket-relative keys (tmdb/movies/550/poster/original.webp) in poster_path / backdrop_path / etc., and serving resolves them against the current S3 config — so after a provider change every URL points into a bucket where nothing exists.
The cached path in the row is the image cache pipeline's durable dedup marker: EnqueueExistingProviderArtwork only enqueues rows whose destination is still a provider URL or empty, so already-cached rows are never re-enqueued.
Clients fetch images directly from S3 via presigned/read-endpoint URLs, so the server never even observes the 404s. The breakage is silent and recovery requires hand-written SQL.
The same silent-breakage applies to chapter thumbnails, collection artwork, library posters, branding assets, and audiobook/ebook covers — everything in the public bucket.
Proposal
Automatic verify-and-reconcile, no admin decisions required. Design spec: docs/superpowers/specs/2026-07-08-s3-artwork-reconcile-design.md.
Storage identity fingerprint (endpoint|bucket|key_prefix of the public write config) persisted in server_settings; compared at startup.
reconcile_artwork_cache task (startup trigger, gated by the fingerprint; manually runnable): probes a sample of cached objects, then either bulk-resets (nothing migrated) or per-row verifies (migrated / partial). Missing provider-sourced artwork is reset to its *_source_path so the existing image cache queue rebuilds it; non-redownloadable surfaces are cleared so their owning pipeline (chapter backfill, book enrichment, collection collage) refills them, with unrecoverable uploads reported.
Settings UI callout warning that uploaded artwork can't be re-downloaded.
Users never see broken images during the transition: reset rows serve the provider's original URL via the existing absolute-URL pass-through, and thumbhashes are kept.
Activity
fix(metadata): harden artwork reconcile per code review
fix(metadata): guard bulk reset against degraded probes, certify only…
feat(metadata): reconcile artwork cache after public S3 provider chan…
feat(metadata): reconcile artwork cache after public S3 provider chan…