I am running postgres on Ubuntu 22.04 and whenever I run psql -U postgres
I get the error psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: password authentication failed for user "postgres"
This is what my pg_lsclusters
looks like 14 main 5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log
here is what the logs look like Connection matched pg_hba.conf line 90: "local all postgres md5" 2023-06-15 12:27:47.815 PDT [37614] postgres@postgres LOG: could not send data to client: Broken pipe 2023-06-15 12:27:50.834 PDT [37615] postgres@postgres FATAL: password authentication failed for user "postgres" 2023-06-15 12:27:50.834 PDT [37615] postgres@postgres DETAIL: User "postgres" has no password assigned
I have tried changing back and fourth between peer and md5, so I'm not sure what the issue is.