PADR0100W Metadata Replication warning - Last IO Error Code: 1045

PADR0100W Metadata Replication warning - Last IO Error Code: 1045

116
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:56 PM


Symptom


Incremental replications fail with the following error in the padr.log:
[01/06/2019 00:27:51.304222] :: Last SQL Error Code: 0
[01/06/2019 00:27:51.304240] :: Last SQL Error: ""
[01/06/2019 00:27:51.304257] :: Last IO Error Code: 1045
[01/06/2019 00:27:51.304277] :: Last IO Error: "error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: 60 retries: 15"

- Full replication runs with no issue.
- MasterReplicationUser.pass in DR site and ReplicationUser.pass in primary Vault seems to be the same.


Environment


9.7;9.8;9.9;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;14.0

Cause


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

Full replication is done by DR user and doesn't initiate actual mysql logon with mysql replication user, that's why Full succeeds while incremental fails.


Resolution


You can do the following in order to create a new ReplicationUser.pass on Primary Vault.

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

1. Identify the VaultUser.pass path directory in the dbparm.ini before running the command, this is the same location of the VaultEmergency.pass. Write this down for use in a later step:
image.png
image.png

2. On the primary vault open an elevated command prompt
image.png

3. Navigate to the Server installation directory (drive:\program files (x86)\privateark\server)
image.png

4. Run CAVaultManager.exe RecoverReplicationPassword 
image.png

5. Give the full path to the VaultEmergency.pass file recorded in step 1 when requested for it
image.png

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

Note: This will create a new ReplicationUser.pass. In an HA environment, this file will need to be copied to the inactive HA node.

7. Log into the DR server and browse to the location from step 1 on that server, then rename the MasterReplicationUser.pass file to MasterReplicationUser.pass.bck
image.png

8. Browse to the same location from step 1 on the Prod server, and Copy the ReplicationUser.pass file


image.png

9. On the DR,

Note - Since DR Vault will have its own ReplicationUser.pass file, Do Not Overwrite DR's ReplicationUser.pass with ReplicationUser.pass file from Primary Vault.

            a.  Rename the file  - Get ReplicationUser.pass file generated under  steps 1-6  ( from Primary Vault)  and rename it to MasterReplicationUser.pass.

                   


             The file after renaming - 
                   

          b. Move 'MasterReplicationUser.pass'  generated under step #9#a to the folder where all the keys  are stored -


                 

Note: Moving files between Prod and DR can be done via the PrivateArk client as described in this solution
Note 2: In HA environments, both DR nodes must have the masterreplicationuser.pass file replaced

9. Perform a Full replication.

If the environment is an HA cluster:

In an HA cluster, both Prod nodes must have the same copy of replicationuser.pass, so you will need to copy the new replicationuser.pass file from Prod to the inactive node. The steps for masterreplicationuser.pass will need to be done on both DR nodes.



Actions
  • Print
  • Copy Link

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