Hi everyone,
i have installed pgBackRest on PRIMARY database server. After change config parameters of pgBackRest, i tried to create stanza but it failed. It show error
[postgres@postgres-db01 ~]$ pgbackrest --stanza=acb_stanza stanza-create
2023-04-16 03:58:53.940 P00 INFO: stanza-create command begin 2.45: --exec-id=10649-13d77bf3 --log-level-console=info --log-level-file=debug --log-path=/backup/pgBackRest/log --pg1-path=/data/FEP/datafile --pg1-port=27500 --pg1-socket-path=/tmp --repo1-path=/backup/pgBackRest --stanza=acb_stanza
WARN: unable to check pg1: [DbConnectError] unable to connect to ‘dbname=‘postgres’ port=27500 host=’/tmp’': connection to server on socket “/tmp/.s.PGSQL.27500” failed: fe_sendauth: no password supplied
ERROR: [056]: unable to find primary cluster - cannot proceed
HINT: are all available clusters in recovery?
2023-04-16 03:58:53.945 P00 INFO: stanza-create command end: aborted with exception [056]
Content of pgBackRest configuration file is:
[global]
repo1-path=/backup/pgBackRest
log-level-console=info
log-level-file=debug
start-fast=y
log-path=/backup/pgBackRest/log
repo1-retention-archive=5
repo1-retention-archive-type=full
repo1-retention-full=2
[acb_stanza]
pg1-path=/data/FEP/datafile
pg1-port=27500
pg1-host=postgres-db01
pg1-socket-path=/tmp
Please help me to resolve the problem when i create stanza.
Thank you so much