Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase Local CLI, Database is not healthy #2252

Open
CptJJ opened this issue May 7, 2024 · 2 comments
Open

Supabase Local CLI, Database is not healthy #2252

CptJJ opened this issue May 7, 2024 · 2 comments

Comments

@CptJJ
Copy link

CptJJ commented May 7, 2024

Describe the bug
Supabase db pull works once but then fails on all subsequent pulls. Docker contain loads then goes away instantly (looking in the docker desktop ui)

To Reproduce
Steps to reproduce the behavior:

  1. Supabase init
  2. supabase link
  3. supabase db pull
  4. supabase db pull --schema storage
Failed to remove container: a6e826a9a158f55c6fd8a62c2eda43f4f8806f3688f07b8cc7e24b1b366b55d4 Error response from daemon: No such container: a6e826a9a158f55c6fd8a62c2eda43f4f8806f3688f07b8cc7e24b1b366b55d4
database is not healthy

Also supabase start then gives:

Starting database...
Setting up initial schema...
error running container: exit 1

Expected behavior
A clear and concise description of what you expected to happen.

System information

  • Ticket ID: 86bed0e795d44450a70db9d882eb6d00

  • Version of OS: Max os Sanoma 14.1.2

  • Version of CLI: 1.165.0

  • Version of Docker: 26.1.1

  • Versions of services:

    supabase/postgres │ 15.1.0.32 │ 15.1.0.32
    supabase/gotrue │ v2.150.1 │ v2.150.1
    postgrest/postgrest │ v10.2.0 │ v10.2.0
    supabase/realtime │ v2.28.32 │ -
    supabase/storage-api │ v1.2.1 │ v1.2.1
    supabase/edge-runtime │ v1.45.2 │ -
    supabase/studio │ 20240422-5cf8f30 │ -
    supabase/postgres-meta │ v0.80.0 │ -
    supabase/logflare │ 1.4.0 │ -
    bitnami/pgbouncer │ 1.20.1-debian-11-r39 │ -
    darthsim/imgproxy │ v3.8.0 │ -

@Silur
Copy link

Silur commented May 8, 2024

likely related to #2250

can you check with the --debug flag?

@haydn
Copy link

haydn commented May 10, 2024

I hit this when I upgraded the Supabase CLI. I'm guessing I didn't do a supabase stop --no-backup beforehand.

I was able to work around it be deleting the volumes with Docker:

docker volume ls # find the back-ups for your project
docker volume rm <volume name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants