Storage API returns 503 "The database schema is invalid or incompatible" on all authenticated operations (project byuoolwmzlqewncjlgzo #50753
Replies: 3 comments 2 replies
|
This has occurred in the past and was an RLS policy. |
|
UPDATE: uploads using the service_role key from a server route DO work. So storage-api is not failing on the schema — it is rejecting public |
|
The fact that This is not a key validation failure, and the error message is not a random platform glitch. It is caused by an infinite recursion error in Row-Level Security (RLS) that Supabase Storage intercepts and maps to Architectural Root Cause: Why
|
Uh oh!
There was an error while loading. Please reload this page.
Since 2026-09-16 every authenticated Storage operation on my project fails:
Project ref: byuoolwmzlqewncjlgzo · Free plan · us-east-1
Client: supabase-js 2.105.1 / storage-js 2.108.0 (browser)
What fails
POST /object/avatares//avatar.jpg → 503 in ~40ms
POST /object/list/avatares → 400
All four buckets. Both new uploads and upserts. Also plain LIST calls —
listing a bucket should never fail, and it does not consume any quota, which
rules out plan limits. Storage usage is ~1 MB of a 1 GB allowance.
What still works
service, so they do not indicate storage-api is healthy
Timeline
storage.migrations shows these applied on 2026-09-16 21:13:
The most recent object write in the whole project is 2026-09-07 23:00.
Nothing has been written since those migrations ran.
Schema state
All four rows in storage.buckets are well formed (type STANDARD,
versioning_status DISABLED, all columns populated). RLS policies exist per
bucket. A policy rejection would return "new row violates row-level security
policy", which is not what we get — and a 503 is not client-caused.
Already ruled out
A support ticket was opened and has not been answered.
Ask
storage-api appears to be on a version incompatible with the migrated storage
schema for this project. Can someone check the storage-api version running for
byuoolwmzlqewncjlgzo and re-sync it?
All reactions