pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vijaykumar Patil <vijaykumar.patil@maersk.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: unable to resgiter witnes node in repmgr
Date: Wed, 3 Jan 2024 05:25:41 +0000
Message-ID: <AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM> (raw)

Happy new year to everyone !!


Can any one help me on this below issue as we are not able to register witness node in repmgr , getting below error.

postgres@adsoazdbaodb04[TEST]-/home/postgres: repmgr -f /u01/app/admin/Data/repmgr.conf witness register -h scrbtrheldbaas001
INFO: connecting to witness node "adsoazdbaodb04" (ID: 4)
DEBUG: connecting to: "user=repmgr connect_timeout=2 dbname=repmgr host=adsoazdbaodb04 fallback_application_name=repmgr options=-csearch_path="
INFO: connecting to primary node
DEBUG: connecting to: "user=repmgr connect_timeout=2 dbname=repmgr host=scrbtrheldbaas001 fallback_application_name=repmgr options=-csearch_path="
ERROR: witness node cannot be in the same cluster as the primary node
DETAIL: database system identifiers on primary node and provided witness node match (7317528477531093832)
HINT: the witness node must be created on a separate read/write node


postgres@adsoazdbaodb04[TEST]-/home/postgres: cat /u01/app/admin/Data/repmgr.conf
#cluster='pg_cluster'
node_id=4
node_name=adsoazdbaodb04
conninfo='host=adsoazdbaodb04 user=repmgr dbname=repmgr connect_timeout=2'
data_directory='/u01/app/admin/Data/pg_da'
failover=automatic
promote_command='repmgr standby promote -f /u01/app/admin/Data/repmgr.conf --log-to-file'
follow_command='repmgr standby follow -f /u01/app/admin/Data/repmgr.conf --log-to-file --upstream-node-id=%n'
pg_bindir='/u01/app/admin/Postgresql/15.3/bin'
user='repmgr'
log_level = 'DEBUG'
log_file = '/u01/app/admin/Data/repmgr.log'
monitoring_history = 'true'
primary_visibility_consensus = 'true'

Thanks & Regards
Vijaykumar
Database Operations
[cid:image001.png@01DA3E32.D50A9B60]
Maersk Global Service Centre, Pune.


________________________________

The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments.

Maersk will as part of our communication and interaction with you collect and process your personal data. You can read more about Maersk's collection and processing of your personal data and your rights as a data subject in our privacy policy <https://www.maersk.com/front-page-requirements/privacy-policy;

Please consider the environment before printing this email.


Classification: Internal

Attachments:

image001.png (image/png, 4.0K) download view image

Message-ID: <AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM>
Permalink:  ../AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: vijaykumar.patil@maersk.com
  Subject: Re: unable to resgiter witnes node in repmgr
  In-Reply-To: <AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM>
  References: <AMAP107MB04695AFBF6C3DF4FBDD9CBCDF560A@AMAP107MB0469.EURP107.PROD.OUTLOOK.COM>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox