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 Project Link Request says update config.toml but no differences cited #2539

Closed sosensible closed 1 month ago

sosensible commented 2 months ago

Describe the bug Attempting to run > supabase link generated this exception.

Connecting to remote database...
Finished supabase link.
WARNING: Local config differs from linked project. Try updating supabase\config.toml
[api]
enabled = true
port = 54321
schemas = ["public", "graphql_public"]
extra_search_path = ["public", "extensions"]
max_rows = 1000
[api.tls]
enabled = false

To Reproduce Steps to reproduce the behavior:

  1. run > supabase link
  2. enter the db password when requested
  3. read the error message
  4. check for differences there are none
  5. look for docs to say what settings are in linked project, no known path to resolve
  6. tried updating to current db version on prod site and repeating but same results

Expected behavior Local dev to link with remote without a WARNING: that has not path to resolution.

Screenshots n/a

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

hamzaakramdropslab commented 2 months ago

@sosensible did you find the solution to this problem

sosensible commented 2 months ago

We got it running but blocking some of the service containers from starting, but that is not functional as we expect to use some of those services.

evris99 commented 2 months ago

Same for me with supabase-cli version 1.187.2

empz commented 2 months ago

Also experiencing this issue. Supabase CLI 1.187.3

plainpaul commented 2 months ago

Same issue using: Supabase CLI 1.187.3

plainpaul commented 1 month ago

I'm somewhat new to supabase and even newer to supabase cli so pardon my ignorance. I didn't realize I could have a local dev instance when I started, so I built everything through the remote dashboard/SQL editor. To get it locally, is this where Project Link comes into play? Are there any workarounds to get this work bug fixed? Is there any way to output the toml file from Supabase's dashboard and update it that way?

sweatybridge commented 1 month ago

I can confirm this is a bug with detecting differences in remote and local config, which results in the printed message. However, seeing this message does not mean linking project failed. You can continue using supabase locally with cli despite config differences.

@plainpaul hope this clarifies.

sweatybridge commented 1 month ago

The config diff bug as been resolved in latest cli release.