Error while setting up PTA DR

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Error while setting up PTA DR

L3 Networker

I'm getting below error while running setupPrimary.sh script in prewiz.log.

 

OS: RHEL 8.6

There is no firewall between two PTA servers. Network connectivity is working fine on all required ports. Also verified certificates are created as per the requirement.

 

There is no error in dbsync logs and all files are getting replicated.

 

Followed attached article . Still issue not resolved.

 

https://community.cyberark.com/s/article/PTA-PTA-DR-replication-status-shows-STARTUP2

 

RUN_DIAGNOSTICS P092 Output

Field_Content_versions_oct20__068Vy00000WSwJZIA1.png 

--------------------------------------------------------------------------------------------------------------------------------

Prepwiz.log:

Successfully ran Mongo script /opt/tomcat/utility/dr/internal/replicaset-add-secondary.js

Attempt 1 of 20: Running Mongo script /opt/tomcat/utility/dr/internal/check-replicaset-status.js

Attempt 2 of 20: Running Mongo script /opt/tomcat/utility/dr/internal/check-replicaset-status.js

…

Attempt 20 of 20: Running Mongo script /opt/tomcat/utility/dr/internal/check-replicaset-status.js

Error initializing Mongo replicaset. /opt/tomcat/utility/dr/internal/check-replicaset-status.js returned an error. In some cases this could just be the initial replication taking an extremely long time to complete. See details in /opt/mongodb/log/mongod.log on the Primary and Secondary servers

LOG | [2025-05-08|13:33:53.776|AEST] | ERROR | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.steps.SetupDRUtil.run(SetupDRUtil.java:127) - An Exception occured while running step SetupDRUtil.

 

--------------------------------------------------------------------------------------------------------------------------------

 

 

 

1 accepted solution

Accepted Solutions

L3 Networker

It was due the certificate of having OSCP URL and no network between the PTA and the OSCP.

There are a few solutions, ordered by preferability:

1. Add an exception to the network zone so that the certificates can be confirmed and validated as designed.

2. Update the certificate to not include the OCSP URL, so that cert validation checking is disabled via the certificate

3. Adding ocspEnabled: false to /etc/mongod.conf may fix this issue, however upgrades to PTA will overwrite this, and it isn't advisable to turn off this security module.

You would add the following to the end of /etc/mongod.conf (make sure there is a space before the ocspEnabled line so it is indented like the other lines in the file):

setParameter:

ocspEnabled: false

View solution in original post

3 REPLIES 3

L3 Networker

It was due the certificate of having OSCP URL and no network between the PTA and the OSCP.

There are a few solutions, ordered by preferability:

1. Add an exception to the network zone so that the certificates can be confirmed and validated as designed.

2. Update the certificate to not include the OCSP URL, so that cert validation checking is disabled via the certificate

3. Adding ocspEnabled: false to /etc/mongod.conf may fix this issue, however upgrades to PTA will overwrite this, and it isn't advisable to turn off this security module.

You would add the following to the end of /etc/mongod.conf (make sure there is a space before the ocspEnabled line so it is indented like the other lines in the file):

setParameter:

ocspEnabled: false

L4 Transporter

thank you for sharing this with the community! @Pradeep Shetty​ 

Thanks @Pradeep Shetty​  for the insights.

 

How do I perform option 1?

  • 1 accepted solution
  • 268 Views
  • 3 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!