Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’3mo agoβ€’
4 replies
NB

Direct Database Connection Refusing Port 5432 After Working Yesterday

What I'm trying to achieve:
Connect to my Supabase database using direct database access (my account has the ipv4 add-on) through a Docker container running Letta/MemGPT.

What's going wrong:
Connection was working perfectly yesterday, but today getting "Connection refused" on port 5432. The database host IP appears to be completely unreachable.

Environment details:
- OS: Ubuntu 24.04 (WSL2)
- Platform: Docker container
- Database driver: pg8000 (PostgreSQL)
- Project ID: pvxhhmwxdcsvlqouptuc
- Database host: db.pvxhhmwxdcsvlqouptuc.supabase.co (resolves to 15.157.30.159)

Error:
pg8000.exceptions.InterfaceError: Can't create a connection to host db.pvxhhmwxdcsvlqouptuc.supabase.co and port 5432
pg8000.exceptions.InterfaceError: Can't create a connection to host db.pvxhhmwxdcsvlqouptuc.supabase.co and port 5432


Troubleshooting completed:
- Verified no configuration changes on my end
- Confirmed direct database access is enabled in dashboard
- Checked Supabase status page (no outages)
- Network tests show 100% packet loss to the IP address
- DNS resolution works correctly

Connection string format:
postgresql://postgres:PASSWORD@db.pvxhhmwxdcsvlqouptuc.supabase.co:5432/postgres
postgresql://postgres:PASSWORD@db.pvxhhmwxdcsvlqouptuc.supabase.co:5432/postgres


Could this be related to infrastructure changes on the Supabase side? The IP seems completely unreachable from multiple network tests.

Any guidance would be appreciated!
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

Cannot connect to database using supervisor port (5432) after change password
SupabaseSSupabase / help-and-questions
5mo ago
Cannot connect to database on port 5432 – P1001 error and psql connection closed unexpectedly
SupabaseSSupabase / help-and-questions
7mo ago
Connection to Postgres database stopped working
SupabaseSSupabase / help-and-questions
4y ago
Database Connection
SupabaseSSupabase / help-and-questions
3mo ago