PhoenixKit 2.49.0: Library sync states and a history of storage changes
PhoenixKit 2.49.0 shows whether each media library’s files are up to date, lets admins check or pause it, and records every change to the site’s storage settings.
A sync state per library
Settings → Media → Libraries has a Sync column: Up to date, Syncing with the files left, Paused, Waiting when files are out of date and nothing is working on them, or Needs attention when the last run failed. Check now, Pause and Resume are offered to people with both jobs.manage and media.manage, and the column updates live. “Up to date” means the files follow their library’s current settings; it does not prove every object is still on its bucket.
Behind this, the storage reconciler now runs as one job run per library, shown on Admin → Jobs with its progress and history. The location backfill, checksum backfill and library purge are job runs too. A purge can be watched but not paused or cancelled.
A History tab for storage
Settings → Media has a new History tab. It records who created, renamed or deleted a bucket, storage profile, library, rendition set or size, who changed a bucket’s role or order in a profile, and who moved a library, with the time and what changed. Entries are permanent, never include a key, and leave out a user’s own library, profile and bucket. Show every field opens an entry in place, for media managers who cannot open the Activity page.
Queue warnings
The Jobs page’s Runs tab warns when a queue seems stuck: a run’s batch has waited ten minutes and nothing in that queue has run since.
Upgrading
No migration. Storage jobs queued by 2.48.0 or earlier still run.
Full release notes: PhoenixKit 2.49.0
2.49.0 · 3 October 2026
Added
- Each library’s storage has a state, and can be checked and paused. Settings → Media →
Libraries has a Sync column: Up to date, Syncing (“N files left”), Paused,
Waiting (files are out of date and no run is working on them — the case the Health page’s
global count hid) or Needs attention (the last run failed with files left, or the reconciler
keeps failing on some). Check now, Pause and Resume are offered to those who hold
jobs.manageandmedia.manage, and the column follows the library’s run live. “Up to date” means the files carry their library’s current profile and variant-set revisions; it does not prove every object is still on its bucket. The Health page links to the storage runs. (Storage.LibraryState;Reconciler.out_of_date_query/1andcounts_by_library/0count what is out of date apart from what the reconciler may take now.) - Settings → Media has a History tab, and every change to the site’s storage settings is
recorded. Who created, renamed or deleted a bucket, a storage profile, a library, a variant set
or a size; who added a bucket to a profile, changed its role, order or status, or took it out;
who moved a library to another profile or variant set or changed its annotated-thumbnail choice;
who reset the sizes or remade them all — each with the person, the time and what changed from →
to (
Storage.Audit,storage.profile.updated,storage.library.profile_changed, …). The entries are permanent (not pruned by the activity retention), name only fields that are not secret — never a key — and leave out a user’s own library, profile and bucket, which are private. The tab lists them with the storage job runs’ entries, filters between the two, pages, and follows the log live; each row opens its full entry on the Activity page. The context functions takeactor_uuid:in their options (create_profile/2,put_bucket/4,set_library_profile/3,Storage.update_bucket/3, …); without one an entry says the system did it. - Each History row can be opened in place (“Show every field”), so a media manager who may not
open the Activity page (
media.managedoes not implydashboard) still reads every field that changed, not only the first three. Run titles never contain a user’s library name: a user’s library is “a user’s library” on the Jobs page, the Libraries tab and in the History. PhoenixKitWeb.Components.Core.ActivityList: a list of activity entries for any screen that shows a slice of the log; the Activity page shares itssummarize_details/1.- The Runs tab warns when a queue is not working: a run’s batch has been available for ten
minutes and nothing in that queue has run since — observed from Oban’s own table, so a web node
with
queues: falsedoes not cry wolf for a worker node. Jobs.can_start?/2, for a screen that offers a button that starts a run.
Changed
- The storage reconciler is a job run per library (
storage.reconcile) instead of one walk over every file. A change to a profile, a variant set or a library’s choice still queuesWorkers.ReconcileJob, which now starts the runs for the libraries that have files to bring up to date (a pass already running begins again at its next batch). Each run shows on Admin → Jobs with its progress, can be paused between batches, and keeps a history. - The location backfill, the checksum backfill and the library purge are job runs too
(
storage.location_backfill,storage.checksum_backfill,storage.purge_library). The purge is visible but cannot be paused or cancelled: it walks the whole library and cannot be undone. The old Oban jobs remain as shims that start the runs, so jobs queued by 2.48.0 or earlier still work.
Fixed
- Storage configuration changes and their audit entries commit together; failed audit inserts roll back the change, and rolled-back changes produce no storage audit announcement. Diffs use locked, current rows, so stale forms cannot record incorrect old values or duplicate no-ops.
- Storage audit redacts credentials and query tokens in endpoint/CDN URLs and includes bucket access, capacity and CDN changes, alternative size formats, and checks requested for one set.
- Media History identifies the affected resource, includes global storage settings with the signed-in actor, refreshes after missed announcements, and handles invalid or removed pages. Historical users retain their UUID label; Activity links require dashboard access.
- Object Storage service labels load their setup module before checking its optional label callback, so the Integrations list shows the service on its first visit after boot.
- Storage reconcile triggers preserve restart requests for active libraries even when their files are temporarily ineligible, and return start failures so the trigger job can retry.
- The stalled-queue warning ignores paused runs and superseded dispatches, and matches the current dispatch using each table’s configured schema.
- The Libraries tab refreshes derived sync state every 30 seconds while visible, including changes that produce no run event. Its counts query reads only the displayed libraries.
i18n
- The new strings in all seven locales.
PhoenixKit 2.49.0. Install or update: {:phoenix_kit, "~> 2.49"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.