Persistent PostgreSQL 28P01 on Direct connection after two database password resets #50970
Unanswered
asawaku1632
asked this question in
Questions
Replies: 1 comment
|
I'd start with the server log, because Postgres records why a password login failed and keeps that reason away from the client. It's the safest way to tell a wrong password from a server-side problem without exposing anything.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm troubleshooting a persistent PostgreSQL authentication failure on a Supabase DEV project using a Direct database connection.
I have already opened Supabase Support ticket SU-474350, but since this is a Free-plan project and the issue is still unresolved, I'm also asking the community for help.
Environment
Connection method: Direct
Port: 5432
Database: postgres
User: postgres
I am intentionally not posting the project ref, full hostname, connection URI, password, or any other credentials.
The application/probe must use a Direct connection. Switching to the transaction/session/shared pooler is not an acceptable workaround for this particular test.
What happens
The Direct PostgreSQL connection reaches the server, but authentication is rejected.
The client receives:
SQLSTATE: 28P01
Classification: invalid_password / password authentication failed
The Supabase Postgres logs independently show:
password authentication failed for user "postgres"
So this does not appear to be only a client-side error classification.
Troubleshooting already performed
Confirmed the connection details directly in the Supabase Connect dialog:
The original network had a connectivity problem with the Direct IPv6 endpoint.
I switched the PC to a smartphone tethering connection.
On that network, TCP port 5432 to the Direct database endpoint is reachable.
TLS initially failed with SELF_SIGNED_CERT_IN_CHAIN.
I configured the Supabase Root 2021 CA through NODE_EXTRA_CA_CERTS.
After resolving that TLS trust issue, the failure progressed to PostgreSQL authentication.
The process-local Direct connection URI was rebuilt from the latest DEV database password using a masked prompt.
The password was percent-encoded before constructing the PostgreSQL URI.
The resulting connection still fails with PostgreSQL SQLSTATE 28P01.
The Supabase Postgres logs show the corresponding password authentication failure for user "postgres".
I have already performed two controlled database-password resets for this DEV project. The Direct endpoint continues to reject authentication.
I have not performed a third password reset because repeating the same reset without understanding the persistent 28P01 does not seem useful.
What I would like to understand
Is there any known situation where a database password reset can succeed in the Dashboard but the Direct PostgreSQL endpoint continues to authenticate against a different/stale password state?
Is there any server-side state, role configuration, password propagation issue, or diagnostic available in Supabase that I should check for the
postgresrole after a password reset?Are there any additional safe diagnostics that can distinguish a password mismatch from a password-reset propagation/server-side authentication issue without exposing the database password?
Important constraints
Any guidance on the next diagnostic step would be appreciated.
Thanks.
All reactions