XDR Authentication Issues

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Synopsis: Common XDR Authentication Issues

Issue 1:

You see the following errors in the XDR log:

Dec 21 2015 19:44:45 GMT: WARNING (xdr): (as_cluster.c:as_cluster_seed_nodes:382) AEROSPIKE_NOT_AUTHENTICATED not authenticated
Dec 21 2015 19:44:45 GMT: INFO (xdr): (xdr.c::5962) Failed to connect to remote cluster 'REMOTE_DC_EAST', code -1: Failed to seed cluster at /work/source/modules/ee/xdr/src/as_cluster.c:395. Retrying.

Solution 1

  1. Verify that the XDR context of aerospike.conf contains the following entry: dc-security-config-file <full path to>/security-credentials.txt

  2. Verify that the path to security-credentials.txt exists.

  3. Verify that the security-credentials.txt file is properly formatted. Use the following example as a template:

credentials
{
  username xdr_user
  password xdr_pass
}

Issue 2:

You see the following error in the XDR log: Dec 22 2015 16:51:12 GMT: WARNING (xdr): (as_cluster.c:as_cluster_seed_nodes:382) AEROSPIKE_INVALID_PASSWORD AEROSPIKE_INVALID_PASSWORD

Solution 2:

Verify the password in security-credentials.txt. Make sure that the password is the same as the password in the destination cluster.