Bug Description
The Supabase local database container fails to start properly due to a missing 99-roles.sql file, causing a restart loop that prevents database initialization and migration application.
Steps to Reproduce
- Install Supabase CLI v2.67.1
- Run
supabase start
- Container enters restart loop with error:
psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory
Expected Behavior
Database should initialize successfully without errors.
Actual Behavior
Container restarts repeatedly, preventing database from completing initialization.
Environment
- Supabase CLI Version: 2.67.1
- OS: macOS 24.6.0 (Darwin ARM64)
- Docker Version: 28.5.1
- Project ID: zndanyasplhiqeyawqmz
Error Logs
psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory
Additional Context
- Created placeholder file at
supabase/init/init-scripts/99-roles.sql but it's not being copied to container
- Issue persists across CLI versions (tested 2.65.5 and 2.67.1)
- Prevents local database reset and migration application