PTA - mongodb doesn't start on promoted Primary PTA after DR migration

PTA - mongodb doesn't start on promoted Primary PTA after DR migration

107
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:09 PM


Symptom


When attempting to switch to the secondary PTA in a PTA DR environment, the migration fails due to mongodb not starting on the server being promoted to the Primary PTA


The following errors appears several times in the prepwiz.log file on the server being promoted:-


uncaught exception: Error: Could not retrieve replica set config: {

"ok" : 0,

"errmsg" : "no replset config has been received",

"code" : 94,

"codeName" : "NotYetInitialized"


And then:-


PWZ0123E :: Failed to reconfigure mongo replica set. Attempt 6 of 6

PWZ0112E :: Failed to reconfigure MongoDB replica set



Environment


13.0 Privileged Access Manager (PAM, self-hosted) PTA

PTA DR



Cause


There is a 'grace time' to let slow PTAs start the database up before timing out during a promotion. The grace time is currently 12 seconds (6 attempts, 2 second wait between attempt).


If the database is large or the network is a little slow, the promotion will fail because the secondary has run out of tries before the database is fully up.



Resolution


Increase the number of retries to allow more time for the secondary PTA to register the primary as down correctly.


Add the following to the LOCALPARM file on the secondary PTA-


mongo_start_retries=20


Then restart the PTA server.


With this setting the secondary PTA will make 20 tries before timing out.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001WXLCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail