Skip to content

PhoenixKit 2.41.6: S3 and R2 buckets readable again

PhoenixKit 2.41.6 fixes sites that keep media on Amazon S3 or Cloudflare R2: every file there read as missing and every download failed. It also carries the fixes of 2.41.5, which was not published on Hex.

Under hackney 4, the default HTTP client of the S3 library could not handle the reply to a HEAD request. Every object on an S3 or R2 bucket looked missing, downloads failed with “File not found in any bucket”, and new uploads got no sizes. The S3 provider now always sends its requests through Req, whatever the host configures. A bucket that fails to answer no longer means the file is gone, so affected files recover by themselves.

Also fixed:

  • OAuth sign-in no longer creates an account while registration is turned off. Signing in to an existing account still works.
  • The admin user form says when a password, email or username change was refused for lack of rank.
  • A media browser scoped to a folder handles linked-in files correctly, and a failed removal shows Failed to remove file.
  • An external module that needs Storage no longer shows “Requires Storage” on the Modules page.
Full release notes: PhoenixKit 2.41.6

2.41.6 · 30 September 2026

Fixed

  • S3 and Cloudflare R2 buckets can be read again under hackney 4 (#882). ExAws’s default HTTP client did not handle hackney 4’s reply to a HEAD, so every HEAD raised: an object on an S3/R2 bucket read as missing, and every download (which starts with a HEAD) failed with “File not found in any bucket”, so uploads that landed there got no sizes and the reconciler never counted its copies. The S3 provider now sends its requests through ExAws.Request.Req (already a dependency), whatever the host’s config :ex_aws, http_client: says; hosts need no change. The workaround from the issue (http_client: ExAws.Request.Req in the host) can stay or go.
  • A bucket that cannot answer no longer reads as missing data. Providers.S3.file_exists?/2 returns false only for a 404; any other failure is logged with the bucket and the reason. The location backfill leaves an object unchecked when a bucket could not answer, instead of recording it as found nowhere (which made reads stop looking for it). Files hit by #882 recover by themselves once this is deployed: the reconciler copies and counts them again, and a missing size is queued the next time it is requested.
  • An external module that requires Storage no longer shows “Requires Storage” on the Modules page. The badge read the required module’s enabled flag, and Storage (always on) reports module_enabled; the card now reads either, as the built-in modules’ cards already did.

PhoenixKit 2.41.6. Install or update: {:phoenix_kit, "~> 2.41"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.