PADR0100W Metadata Replication warning: Communication error. Last SQL Error: 0

PADR0100W Metadata Replication warning: Communication error. Last SQL Error: 0

146
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 13:02 PM


Symptom



The following errors are observed in the PADR.log file:
 
 01/03/2018 21:40:56.304215] :: PADR0010I Replicate ended. 
[01/03/2018 21:45:51.217094] :: PADR0100W Metadata Replication warning: Communication error. See Diagnostic Info below. 
[01/03/2018 21:45:51.217162] :: Last SQL Error Code: 0 
[01/03/2018 21:45:51.217186] :: Last SQL Error: "" 
[01/03/2018 21:45:51.217208] :: Last IO Error Code: 0 
[01/03/2018 21:45:51.217230] :: Last IO Error: "" 
[01/03/2018 21:45:51.217252] :: SQL Thread Running State: "Yes" 
[01/03/2018 21:45:51.217276] :: IO Thread Running State: "Connecting" 
[01/03/2018 21:45:54.420675] :: PADR0009I Replicate started. 
[01/03/2018 21:45:54.421668] :: PADR0095I Refreshing Vault configuration files. 
[01/03/2018 21:45:56.023177] :: PADR0097I Refreshing Vault configuration files completed successfully. 


 


Environment


9.6;9.7;v9.7.5;14.0;14.2;14.6 Digital Vault Server - DR

Cause


The ReplicationUser.pass file on Primary Vault is missing, corrupted or out of sync with DR server MasterReplicationUser.pass file.
-ReplicationUser.pass - This password file is used for connection to the local MySQL to run the replication.

-MasterReplicationUser.pass - This password is used by the MySQL service, on the DR machine, to connect to the Primary Vault database and replicate the metadata from it.
 
These files are located in the same directories as VaultUser.pass. To confirm the location open dbparm.ini and go to the directory listed for VaultUser.pass.
 

  1. On Primary vault server, open a CMD in the ReplicationUser.pass folder path and run: 
    certutil -hashfile ReplicationUser.pass MD5
  2. On DR server, open a CMD in the MasterReplicationUser.pass folder path and run: 
    certutil -hashfile MasterReplicationUser.pass MD5

The hash value of both files should be identical.
 
If the hash value are different, follow instructions e,f,g,h below to copy ReplicationUser.pass to DR server. If the ReplicationUser.pass does not exist on the Primary vault follow instructions below to recreate and reset the password.



Resolution


RecoverReplicationPassword Procedure 
***Master CD must be inserted and or a valid path to recprv.key in dbparm.ini***

a. On the primary Vault open an elevated command prompt and navigate to the Server installation directory (drive:\program files (x86)\privateark\server)

b. Run CAVaultManager.exe RecoverReplicationPassword (Identify the VaultUser.pass path directory in the dbparm.ini before running the command, this is the same location of the VaultEmergency.pass.



c. Give the full path to VaultEmergency.pass file when requested for it

d. Give an empty password, this will generate a random password. Enter through the next two prompts, as they are optional 

Example: 


C:\Program Files (x86)\PrivateArk\Server>CAVaultManager.exe RecoverReplicationPassword 
File name where encrypted emergency password for database access is stored [mandatory] ==>C:\Users\Administrator\Desktop\Keys\master\VaultEmergency.pass 
New password for replication access ==> 
External Database user name [optional] ==> 
External Database user password ==> 
ITADB399I Using encryption algorithms: Advanced Encryption Standard (AES), 256 b 
it, RSA (2048 bit), SHA1 (Protocol Integrity), SHA2-512 (Files Integrity). 
ITADM114I Successfully connected to Database, Database id 0. 
CAVLT221I Password for Vault replication user was recovered successfully.


e. On the DR, rename the MasterReplicationUser.pass file to MasterReplicationUser.pass.bck

f. Copy the ReplicationUser.pass file from the primary vault to DR.

Note - Do not overwrite the original ReplicationUser.pass file on the DR Vault.

g. On the DR, paste the ReplicationUser.pass file where the keys are stored and rename it to MasterReplicationUser.pass


h. Perform a Full replication.


If Primary or Dr servers have HA standby nodes copy ReplicationUser.pass to them as well.


Additional Information


Details

 

SYMPTOM:

 

The following errors are observed in the PADR.log file:

 

 01/03/2018 21:40:56.304215] :: PADR0010I Replicate ended. 

[01/03/2018 21:45:51.217094] :: PADR0100W Metadata Replication warning: Communication error. See Diagnostic Info below. 
[01/03/2018 21:45:51.217162] :: Last SQL Error Code: 0 
[01/03/2018 21:45:51.217186] :: Last SQL Error: "" 
[01/03/2018 21:45:51.217208] :: Last IO Error Code: 0 
[01/03/2018 21:45:51.217230] :: Last IO Error: "" 
[01/03/2018 21:45:51.217252] :: SQL Thread Running State: "Yes" 
[01/03/2018 21:45:51.217276] :: IO Thread Running State: "Connecting" 
[01/03/2018 21:45:54.420675] :: PADR0009I Replicate started. 
[01/03/2018 21:45:54.421668] :: PADR0095I Refreshing Vault configuration files. 
[01/03/2018 21:45:56.023177] :: PADR0097I Refreshing Vault configuration files completed successfully. 

 

PROBLEM:

 

The ReplicationUser.pass file on Primary Vault is missing, corrupted or out of sync with DR server MasterReplicationUser.pass file.

-ReplicationUser.pass - This password file is used for connection to the local MySQL to run the replication.

-MasterReplicationUser.pass - This password is used by the MySQL service, on the DR machine, to connect to the Primary Vault database and replicate the metadata from it.

 

These files are located in the same directories as VaultUser.pass. To confirm the location open dbparm.ini and go to the directory listed for VaultUser.pass.

 

On Primary view ReplicationUser.pass with notepad

On DR view MasterReplicationUser.pass with notepad

The passwords in the files should be the same.

 

If the passwords are different follow instructions e,f,g,h below to copy ReplicationUser.pass to Dr server. If the ReplicationUser.pass does not exist on the Primary vault follow instructions below to recreate and reset the password.

  

SOLUTION:

 

RecoverReplicationPassword Procedure 

***Master CD must be inserted and or a valid path to recprv.key in dbparm.ini***

a. On the primary Vault open an elevated command prompt and navigate to the Server installation directory (drive:\program files (x86)\privateark\server)

b. Run CAVaultManager.exe RecoverReplicationPassword (Identify the VaultUser.pass path directory in the dbparm.ini before running the command, this is the same location of the VaultEmergency.pass.

 

c. Give the full path to VaultEmergency.pass file when requested for it


d. Give an empty password, this will generate a random password. Enter through the next two prompts, as they are optional 

Example: 


C:\Program Files (x86)\PrivateArk\Server>CAVaultManager.exe RecoverReplicationPassword 
File name where encrypted emergency password for database access is stored [mandatory] ==>C:\Users\Administrator\Desktop\Keys\master\VaultEmergency.pass 
New password for replication access ==> 
External Database user name [optional] ==> 
External Database user password ==> 
ITADB399I Using encryption algorithms: Advanced Encryption Standard (AES), 256 b 
it, RSA (2048 bit), SHA1 (Protocol Integrity), SHA2-512 (Files Integrity). 
ITADM114I Successfully connected to Database, Database id 0. 
CAVLT221I Password for Vault replication user was recovered successfully.


e. On the DR, rename the MasterReplicationUser.pass file to MasterReplicationUser.pass.bck

f. Copy the ReplicationUser.pass file from the primary vault to DR.

Note - Do not overwrite the original ReplicationUser.pass file on the DR Vault.

g. On the DR, paste the ReplicationUser.pass file where the keys are stored and rename it to MasterReplicationUser.pass

h. Perform a Full replication.

 

If Primary or Dr servers have HA standby nodes copy ReplicationUser.pass to them as well.




Actions
  • Print
  • Copy Link

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