Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'

Поиск
Список
Период
Сортировка
От Keaney, Will
Тема Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'
Дата
Msg-id BL1PR19MB6036B8DE8C1E19E5D73BF1EB9E692@BL1PR19MB6036.namprd19.prod.outlook.com
обсуждение исходный текст
Ответы Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'
Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'
Список pgsql-general
Hello,

I'm building a new 2-node Postgreql 13 streaming replication cluster. I'm able to clone the primary to the standby
usingpg_basebackup. 
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". 

I've tried using both .pgpass and passing the password explicitly in the myrecovery.conf primary_conninfo string. Debug
logson the primary show the initial connection. but no user provided and no authentication attempt. 

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

I've triple-checked that the password in .pgpass matches the password set for the repl user in the database, and the
repluser has REPLICATION access. 
I'm able to connect to the primary server using the repl user and the psql client, both via .pgpass and providing the
passworddirectly. 
I can't figure out why the standby postgres server is skipping the provided credentials when connecting to the primary.

Thank you for your time,

Will Keaney

________________________________

This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain
informationthat is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use,
disclosureor distribution is prohibited. If you are not the intended recipient, please contact the sender by reply
e-mailand destroy all copies of the original message. 



В списке pgsql-general по дате отправления:

Предыдущее
От: David Barron
Дата:
Сообщение: RE: pgAdmin 8.1 install
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Postgres 13 streaming replication standby not sending password, 'fe_sendauth: no password supplied'