EnterpriseDB / repmgr

A lightweight replication manager for PostgreSQL (Postgres)
https://repmgr.org/
Other
1.58k stars 252 forks source link

repmgr cluster crosscheck does not work with custom PostgreSQL location #852

Open JP95Git opened 7 months ago

JP95Git commented 7 months ago

I had to install PostgreSQL and repmgr to a custom location: /path/to/postgresql/.

This works fine:

/path/to/postgresql/repmgr --config-file=/path/to/repmgr.conf cluster matrix --pg_bindir=/path/to/postgresql/
INFO: connecting to database
 Name                      | ID | 1 | 2 | 3
---------------------------+----+---+---+---
XXXXXXXXXXXXX-Node-1       | 1  | * | * | *
XXXXXXXXXXXXX-Node-2       | 2  | * | * | *
XXXXXXXXXXXXX-Witness-Node | 3  | * | * | *

But this one does not work: -> The error is: bash: Zeile 1: repmgr: Kommando nicht gefunden.

/path/to/postgresql/repmgr --config-file=/path/to/repmgr.conf cluster crosscheck --pg_bindir=/path/to/postgresql/
INFO: connecting to database
bash: Zeile 1: repmgr: Kommando nicht gefunden.
 Name                      | ID | 1 | 2 | 3
---------------------------+----+---+---+---
XXXXXXXXXXXXX-Node-1       | 1  | * | * | *
XXXXXXXXXXXXX-Node-2       | 2  | * | * | *
XXXXXXXXXXXXX-Witness-Node | 3  | * | * | *
/path/to/postgresql/repmgr --version
repmgr 5.4.1
/path/to/postgresql/postgres --version
postgres (PostgreSQL) 16.1