PADR.log message: Last IO Error: "error connecting to master 'ReplicationUser@127.0.0.1:33061'

PADR.log message: Last IO Error: "error connecting to master 'ReplicationUser@127.0.0.1:33061'

110
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 13:05 PM


Symptom


In a vault environment, replication appears to be working successfully but there are errors in the PADR.log and/or the VaultDB.log on the DR server:
"Last IO Error: "error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x""


In the VaultDB.log is the following message:
 
[ERROR] Slave I/O: error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x, Error_code: 2013.

or [ERROR] Slave I/O for channel '': error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x message: Access denied for user 'ReplicationUser'@'localhost' (using password: YES), Error_code: MY-001045


Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault Vault

Cause


Standalone and HA Cluster
This can occur when the ReplicationUser.pass and MasterReplicationUser.pass become out of sync. This can happen when the proper failback process is not followed, a vault has been out of contact for extended periods of time, and/or a virtual vault is restored to a prior snapshot.

HA Cluster
This can occur when the 
ReplicationUser.pass from Node A was not copied to Node B per the HA Vault install instructions causing the files to be different between the nodes. The ReplicationUser.pass from the first HA Node is used to create the MasterReplicationUser.pass on the DR Vault.



Resolution


Rename ReplicationUser.pass and MasterReplicationUser.pass on the vault with the error (should be DR Vault) to ReplicationUserBad.pass and MasterReplicationUserBad.pass as a backup.
Copy ReplicationUser.pass from the good vault to the DR vault. In a HA Cluster ensure both nodes have the updated ReplicationUser.pass

Trigger a full replication using the following steps
Standalone
  1. Stop the "Idira Disaster Recovery" service
  2. Update PADR.ini with the following
    1. Set "Failovermode" to "No"
    2. Update "NextBinaryLogNumberToStartAt" to "-1"
    3. Delete "LastDataReplicationTimestamp"
  3. Start the "Idira Disaster Recovery" service
HA Cluster
  1. Use "Vault Cluster Manager"- Stop both nodes
  2. On one node bring the data drive online
  3. Update PADR.ini with the following
    1. Set "Failovermode" to "No"
    2. Update "NextBinaryLogNumberToStartAt" to "-1"
    3. Delete "LastDataReplicationTimestamp"
  4. Take the data drive offline
  5. Using "Vault Cluster Manager" start one node
  6. Review padr.log to ensure replication completes successfully
  7. Using "Vault Cluster Manager" start the second node
If replication is successful the ReplicationUserBad.pass and MasterReplicationUserBad.pass can be deleted.
 
In the event that ReplicationUser.pass does not exist on the running vault or node follow the resolution in the link below to regenerate ReplicationUser.pass
PADR0100W Metadata Replication warning: Communication error. Last SQL Error: 0
Once completed, follow the instructions above


Additional Information


Details

SYMPTOM: 

In a vault environment replication appears to be working successfully but there are errors in the PADR.log and/or the VaultDB.log on the DR server:

In the PADR.log is the following message:

Last IO Error: "error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x" 

 

In the VaultDB.log is the following message:
 

[ERROR] Slave I/O: error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x, Error_code: 2013.
or
[ERROR] Slave I/O for channel '': error connecting to master 'ReplicationUser@127.0.0.1:33061' - retry-time: x retries: x message: Access denied for user 'ReplicationUser'@'localhost' (using password: YES), Error_code: MY-001045

 

PROBLEM: 

Standalone and HA Cluster
The can occur  when the ReplicationUser.pass and MasterReplicationUser.pass become out of sync. This can happen when the proper failback process is not followed, a vault has been out of contact for extended periods of time, and/or a virtual vault is restored to a prior snapshot.

HA Cluster
This can occur when the 
ReplicationUser.pass from Node A was not copied to Node B per the HA Vault install instructions causing the files to be different between the nodes. The ReplicationUser.pass from the first HA Node is used to create the MasterReplicationUser.pass on the DR Vault.
 

SOLUTION: 

Rename ReplicationUser.pass and MasterReplicationUser.pass on the vault with the error (should be DR Vault) to ReplicationUserBad.pass and MasterReplicationUserBad.pass as a backup.
Copy ReplicationUser.pass from the good vault to the DR vault. In a HA Cluster ensure both nodes have the updated ReplicationUser.pass

Trigger a full replication using the following steps
Standalone

  1. Stop the "Idira Disaster Recovery" service

  2. Update PADR.ini with the following

    1. Set "Failovermode" to "No"
    2. Update "NextBinaryLogNumberToStartAt" to "-1"
    3. Delete "LastDataReplicationTimestamp"

  3. Start the "Idira Disaster Recovery" service

HA Cluster

  1. Use "Vault Cluster Manager" stop both nodes

  2. On one node bring the data drive online

  3. Update PADR.ini with the following

    1. Set "Failovermode" to "No"
    2. Update "NextBinaryLogNumberToStartAt" to "-1"
    3. Delete "LastDataReplicationTimestamp"

  4. Take the data drive offline

  5. Using "Vault Cluster Manager" start one node

  6. Review padr.log to ensure replication completes successfully

  7. Using "Vault Cluster Manager" start second node

If replication is successful the ReplicationUserBad.pass and MasterReplicationUserBad.pass can be deleted.
 

In the event that ReplicationUser.pass does not exist on the running vault or node follow the resolution in the link below to regenerate ReplicationUser.pass
PADR0100W Metadata Replication warning: Communication error. Last SQL Error: 0
Once competed follow the instructions above




Actions
  • Print
  • Copy Link

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