AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Storage Stuck In 'Coming Up…' After Restart Due To Database Schema Reset, Project Never Reaches ACTIVE_HEALTHY

A Supabase Free-plan project in ap-northeast-2 is stuck in COMING_UP state for over a month because the Storage service cannot start. Symptoms indicate the PostgreSQL database was unintentionally reset: storage.buckets and storage.objects are empty, public schema has 0 tables, schema_migrations is missing, and auth.users has only one row. This leaves no self-service recovery as pause/restore is disabled in COMING_UP state.

criticalConfidence 75%Supabase

Origin Analysis

The project's database appears to have been reset or corrupted during a routine restart, likely due to an infrastructure fault or migration failure on the Free-tier backend. The Storage service requires its catalog tables (storage.buckets, storage.objects) and associated schemas to initialize. With those missing, Storage health checks fail with ABORTED REQ and object requests return HTTP 544, which prevents the project from reaching ACTIVE_HEALTHY. The platform's state machine disables pause/restore in COMING_UP, trapping the project without self-service recovery.
1. Have a Free-plan Supabase project running normally in ap-northeast-2. 2. Restart the project via dashboard. 3. Observe all services return Healthy except Storage, which remains 'Coming up…'. 4. Project status stays COMING_UP indefinitely (1+ month). 5. Attempt recovery: Pause button disabled; restore_project API rejected because state is COMING_UP, not PAUSED. 6. Verify Storage failures: health endpoint returns ABORTED REQ; public objects return HTTP 544; SQL queries show storage.buckets and storage.objects empty; public schema has 0 tables; schema_migrations missing; auth.users has only 1 row.

Fixing Code Block

Edge Case Audit

This script assumes the existence of a force-pause API flag and a restore endpoint; both may not be available or may require special permissions. Running restore will overwrite the current database state with the selected backup, causing irreversible data loss for any data created after that backup. Do not execute without confirming a valid backup exists and without explicit authorization. Rollback: before restore, take a manual dump of the current database (even if partial) using pg_dump or Supabase dashboard export. If restore fails, project may remain in an inconsistent state requiring manual intervention.

Ecosystem Topology