Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied' - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'
Date
Msg-id 348f10200facc875103601ef92d86cfd4567e1ed.camel@cybertec.at
Whole thread Raw
In response to Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'  ("Keaney, Will" <will.keaney@kroger.com>)
List pgsql-general
On Wed, 2024-01-10 at 22:51 +0000, Keaney, Will wrote:
> However, the standby is unable to authenticate to the primary to begin recovery during startup.
> It logs an error, "FATAL:  could not connect to the primary server: fe_sendauth: no password supplied".
>
> pg_hba.conf on the primary:
> host    all,replication     repl            primary-database-server           scram-sha-256
> host    all,replication     repl            standby-database-server           scram-sha-256
>
> myrecovery.conf on the standby:
> primary_conninfo = 'host=primary-database-server port=5432 user=repl application_name=standby-server-name'
> recovery_target_timeline = 'latest'
> primary_slot_name = 'standby_replication_slot'
>
> .pgpass on the standby:
> # hostname:port:database:username:password
> *:*:replication:repl:repl_user_password

make sure that .pgpass is in the home directory of the PostgreSQL user and has
restrictive permissions (0600).  Try using it with a manual connection attempt
via "psql".

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'
Next
From: Alban Hertroijs
Date:
Subject: Time zone offset in to_char()