Standby not configuring and giving connection timedout error towards master

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Standby not configuring and giving connection timedout error towards master

L2 Linker

We are running Conjur Enterprise 13.2.2 version with one master and 2 standby node.

 

We have not stopped the Autofailover cluster and the Master node and standby nodes got stopped for than 15 mins.

 

When we have started all nodes and saw health check of Conjur Master is fine but standby was in 'initializing' state.

 

So i have stopped all the standby node and re-install the master node with older conjur backup.

 

I have generated seed file and configuring standby again using seed file, but its giving below error:

 

podman exec conjur evoke configure standby

 psql: error: connection to server at "xxxxx.azure.volvo.net" (x.x.x.x), port 5432 failed: Connection timed out

 Is the server running on that host and accepting TCP/IP connections?

 

psql: error: connection to server at "xxxxx.azure.volvo.net" (x.x.x.x), port 5432 failed: Connection timed out

    Is the server running on that host and accepting TCP/IP connections?

error: Replication connection could not be established

 

 

Master node health check status:

{

 "services": {

  "ldap-sync": "disabled",

  "possum": "ok",

  "ui": "ok",

  "ok": true

 },

 "database": {

  "ok": true,

  "connect": {

   "main": "ok"

  },

  "free_space": {

   "main": {

    "kbytes": 12624716,

    "inodes": 12877355

   }

  },

  "replication_status": {

   "pg_current_xlog_location": "0/26A4BF0",

   "pg_current_xlog_location_bytes": 40520688

  },

  "logical_replication_status": {

   "subscriptions": "Subscriptions are only available on Conjur Followers."

  }

 },

 "audit": {

  "ok": true,

  "received": {

   "processed": 0

  }

 },

 "local_authentication": {

  "ok": true

 },

 "selective_replication": {

  "ok": true,

  "degraded": false,

  "label": {

   "last_attempt_timestamp": "2025-01-23T06:46:54.365Z",

   "last_success_timestamp": "2025-01-23T06:46:54.365Z",

   "last_duration_seconds": 0.0016300849993058364

  }

 },

 "ok": true,

 "degraded": false,

 "role": "master"

* Connection #0 to host localhost left intact

 

1 accepted solution

Accepted Solutions

port 5432 should be accessible from standbys and LB for data replication from the Leader

https://docs.cyberark.com/conjur-enterprise/13.4/en/content/deployment/cjr-architecture.htm#Accessibility

 

once you verify it's open, check the connection from the standby containers themselves, not only from the VM side

for example, by

 

docker exec -it conjur-standby bash

curl -kv telnet://leader:5432

curl -kv telnet://LB:5432

 

check if 443 is also open

View solution in original post

4 REPLIES 4

L4 Transporter

hi @Rupesh Sahu​ 

 

have you checked the connection between leader and standbys?

https://docs.cyberark.com/conjur-enterprise/13.4/en/content/deployment/cjr-architecture.htm#Communicationbetweencomponents

 

any additional details in the nginx/postgres logs?

 

could it be that the cluster was down due to network problems between nodes or smth happened on LB side?

 

try to 'curl' 'telnet' the necessary ports between hosts from the containers and VMs side. If everything is open, try to seed and configure the standbys directly on the leader, bypassing LB (this step should help to understand if the problem is on the LB side)

 

L2 Linker

Please find below Master node netstat output:

 

netstat -anp | grep 443

tcp    0   0 0.0.0.0:443       0.0.0.0:*        LISTEN   16295/conmon

 

 netstat -anp | grep 5432

tcp    0   0 0.0.0.0:5432      0.0.0.0:*        LISTEN   16295/conmon

 

 

But telnet not working from standby to Master node. Also we are bypassing LB here

port 5432 should be accessible from standbys and LB for data replication from the Leader

https://docs.cyberark.com/conjur-enterprise/13.4/en/content/deployment/cjr-architecture.htm#Accessibility

 

once you verify it's open, check the connection from the standby containers themselves, not only from the VM side

for example, by

 

docker exec -it conjur-standby bash

curl -kv telnet://leader:5432

curl -kv telnet://LB:5432

 

check if 443 is also open

L2 Linker

Thank you so much @Oleksandr Voloschuk​ .

Issue was with the iptables.

  • 1 accepted solution
  • 270 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!