Skip to content

PostgreSQL container fails with "99-roles.sql: No such file or directory" error causing restart loop #4631

@arend-vanderveen

Description

@arend-vanderveen

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

  1. Install Supabase CLI v2.67.1
  2. Run supabase start
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions