supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.09k stars 212 forks source link

supabase start fails - program "postgres" is needed by initdb but was not found in the same directory #2909

Closed csi-lk closed 1 day ago

csi-lk commented 1 day ago

Describe the bug

Pretty self explanitory, continues to restart with error

popen failure: Operation not permitted
initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/bin/initdb"

To Reproduce Steps to reproduce the behavior:

  1. supabase start

System information Rerun the failing command with --create-ticket flag.

csi-lk commented 1 day ago

Going back in time to CLI version 1.219.0 seems to get past this step and fails later on

Status: Downloaded newer image for public.ecr.aws/supabase/studio:20241106-f29003e
supabase_rest_hearclear container logs:
postgrest: internal error: Ticker: Failed to spawn thread: Operation not permitted
    (GHC version 9.4.8 for aarch64_unknown_linux)
csi-lk commented 1 day ago

Uninstalling and re-installing docker on my machine seems to have fixed this, closing