`db diff` failing with `-f` flag, but successful with `--debug`
I'm working with a local deployment of supabase. I've written two local sql files (and updated config.toml
schema_paths
accordingly) and I'm running supabase db diff -f create_accounts_table
and receiving the error failed to connect to postgres: failed to connect to
host=127.0.0.1 user=postgres database=contrib_regression: tls error (server refused TLS connection)
.
However, when I run with --debug
, I have what looks like a successful output of alterations.supabase status
looks good, and I've been interacting with the database through the dashboard and flutter code throughout the day.
Is this a known issue, or am I holding something upside down? Thanks.
6 Replies
Quick update is that I included
-f
alongside of --debug
, and it was again successful and created the file too. So --debug
works fine, while missing --debug
creates a network issue...It started happening recently. I have this issue too. And like you, adding the
--debug
flag "solves" the issue.GitHub
failed to connect to postgres since 2.40.4, works on --debug · Iss...
#4113 introduced an error for our supabase in docker-compose (for development), i.e. running: pnpx supabase@2.40.3 db reset --db-url "postgres://postgres:supadev@localhost:53322" works, b...
Thanks a lot for pointing that out. Helpful to know that one of the rakes I ran into doesn't require me to go back to the documentation.
No problem. I spent a few good hours troubleshooting this too. Hopefully they’ll have it fixed soon.
Same, I have the exact same issue, --debug makes it work.
On Mac, Tahoe