- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
05-09-2025 10:43 PM
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
--------------------------------------------------------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------------------------------------------------------
05-11-2025 06:54 PM
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
05-11-2025 06:54 PM
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
05-22-2025 12:14 AM
thank you for sharing this with the community! @Pradeep Shetty
08-01-2025 01:20 AM
Thanks @Pradeep Shetty for the insights.
How do I perform option 1?
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!

