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.02k stars 201 forks source link

Local development environment issue after updating to latest docker images #2177

Closed anton-kirschhock closed 5 months ago

anton-kirschhock commented 5 months ago

Describe the bug Supabase CLI just installed the latest version of the Realtime image (v2.28.23) and when I want to start my local env I get: {:error, "ERROR 42703 (undefined_column) column t0.jwt_jwks does not exist\n\n query: SELECT t0.\"id\", t0.\"name\", t0.\"external_id\", t0.\"jwt_secret\", t0.\"jwt_jwks\", t0.\"postgres_cdc_default\", t0.\"max_concurrent_users\", t0.\"max_events_per_second\", t0.\"max_bytes_per_second\", t0.\"max_channels_per_client\", t0.\"max_joins_per_second\", t0.\"suspend\", t0.\"inserted_at\", t0.\"updated_at\" FROM \"tenants\" AS t0 WHERE (t0.\"external_id\" = $1)"}} to 500 response

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior No issues when starting the supabase stack

Screenshots If applicable, add screenshots to help explain your problem.

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

Additional context If applicable, add any other context about the problem here.

anton-kirschhock commented 5 months ago

Additionally, FYI as a workaround I use supabase start -x realtime : I don't need the realtime services from supabase

sweatybridge commented 5 months ago

This is because we changed the order which realtime migrations are run. It affects users who are starting supabase from a local backup.

You can fix it by running supabase stop --no-backup before supabase start. Note this will delete any uncommitted changes you have locally.