EnterpriseDB / repmgr

A lightweight replication manager for PostgreSQL (Postgres)

Home Page:https://repmgr.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stand By cloning not working in RHEL 8 PSQL 15 repmgr 15

crbsram opened this issue · comments

The Node 1 has repmgr user with password as repmgr
when I try to run the below command I get this error.

I am unable to pass password in the repmgr command.

./repmgr -h N10001 -U repmgr -d repmgr -f /var/lib/pgsql/15/repmgr.conf standby clone --dry-run
NOTICE: destination directory "/data/database" provided
INFO: connecting to source node
DETAIL: connection string is: host=N10001 user=repmgr dbname=repmgr
ERROR: connection to database failed
DETAIL:
connection to server at "N10001" (192.168.1.2), port 5432 failed: fe_sendauth: no password supplied

Pls help in resolving the same.

Thanks
C.R.Bala

commented

Hi,

It's probably NOT a repmgr issue.

Have you configured your .pgpass file correcty?
https://repmgr.org/docs/current/configuration-password-management.html

Regards,
FST

Hi Team

Issue resolved after made changes to pg_hba.conf file.

The setup worked fine and Active Active is running perfectly.

Thanks
C.R.Bala