© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2y ago•
2 replies
melidokk

CLI - supabase link - "failed to connect to postgres" error

I'm trying to set up a local environment for an existing Supabase project.

I have:
- installed the CLI
- successfully logged in using the CLI

Now I'm trying to link the project using
supabase link
supabase link
but I'm getting the following error:
failed to connect to postgres: failed to connect to `host=aws-0-eu-west-2.pooler.supabase.com user=postgres.XXXXXXX database=postgres`: failed to receive message (timeout: context deadline exceeded)
failed to connect to postgres: failed to connect to `host=aws-0-eu-west-2.pooler.supabase.com user=postgres.XXXXXXX database=postgres`: failed to receive message (timeout: context deadline exceeded)
`

(I've redacted the project ID).

Weirdly enough that step worked earlier but I then logged out using the CLI as I wanted to start again after running into some errors when trying to pull my remove DB schema.

Has anyone ever encountered that error? What am I doing wrong?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

"failed to connect to postgres: failed to connect to" using supabase cli
SupabaseSSupabase / help-and-questions
5mo ago
supabase-cli link hostname resolving error
SupabaseSSupabase / help-and-questions
4y ago
Failed to connect to postgres
SupabaseSSupabase / help-and-questions
3w ago
Unable to connect via Supabase CLI
SupabaseSSupabase / help-and-questions
3mo ago