Thread: Replication error

Replication error

From
Sonam Sharma
Date:
I"m running postgres DB on docker & database replication have been enabled. After configuring repmgr not able to switch over/failover operation.DB & errors details are provided below.

Please help on this.


  ssh -o Batchmode=yes -q -o ConnectTimeout=10 10.0.0.76 /usr/lib/postgresql/9.4/bin/repmgr -f /etc/repmgr.conf --version 2>/dev/null && echo "1" || echo "0"
ERROR: unable to execute "repmgr" on "10.0.0.76"
HINT: check "pg_bindir" is set to the correct path in "repmgr.conf"; 

The value is set correctly of binddir. But still getting error. It is adding psql after bin directory and then repmgr i.e /usr/pgsql/pgsql9.5/bin/psql/repmgr. But on primary when I am doing which repmgr it's showing correct path