Common agent installation errors
This topic covers platform-agnostic installation errors related to AWS credentials, account configuration, IAM, and agent lifecycle. These errors occur on both Linux and Windows.
Error: Outdated agent installer version
Error: Installation fails with version-related errors or unexpected behavior.
Cause: You are using an old version of the installer. The installer does not self-update in all scenarios.
Resolution:
-
Download the latest installer from the AWS Elastic Disaster Recovery console. Choose Source servers, then choose Add server.
-
On Linux, check the installed agent version:
cat /var/lib/aws-replication-agent/agent.version -
If a previous agent is installed, uninstall it first, reboot the server, then install the new version.
-
For download instructions, see Adding source servers.
Error: Account not initialized
Error:
AWS Replication Agent installation failed due to the account not being initialized
Cause: AWS Elastic Disaster Recovery has not been initialized in the target Region. Initialization creates the required service-linked roles and replication infrastructure.
Resolution:
-
Initialize AWS Elastic Disaster Recovery by following Elastic Disaster Recovery initialization and permissions.
-
Run the installer again after initialization completes.
Error: Failed to validate AWS credentials
Error:
Failed to validate AWS credentials
Cause: The AWS Access Key ID or Secret Access Key provided during installation is incorrect, expired, or malformed.
Resolution:
-
Verify that the credentials are active in the IAM console.
-
If you are using temporary credentials (STS), check the expiration time.
-
Test the credentials independently:
aws sts get-caller-identity --regionregion -
On Windows, use PowerShell instead of CMD to avoid special character pasting issues with secret keys.
-
Ensure that the Region specified during installation matches the Region where AWS Elastic Disaster Recovery is initialized.
Error: Request signature mismatch
Error:
InvalidSignatureException... The request signature we calculated does not match the signature you provided
Cause: The installer signed the request with a corrupted AWS Secret Access Key, so the computed signature does not match. This commonly occurs when a command shell interprets special characters in the key and alters it during entry. A significantly skewed system clock can also cause this error.
Resolution:
-
Re-enter the Secret Access Key and make sure you paste it exactly. On Windows, use PowerShell instead of CMD, or enclose the key in double quotes.
-
Make sure the system clock is accurate. For example, synchronize with Network Time Protocol (NTP).
-
Verify the credentials with the following command:
aws sts get-caller-identityThen run the installer again.
Error: Missing agent installation policy
Error:
User is not authorized to perform or access denied errors during
installation.
Cause: The IAM user or role used for installation does not have the required permissions.
Resolution:
-
Attach the
AWSElasticDisasterRecoveryAgentInstallationPolicymanaged policy to the IAM user or role.Policy ARN:
arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallationPolicy -
Verify the policy attachment for an IAM user:
aws iam list-attached-user-policies --user-nameusername -
If you are using an IAM role, verify the policy attachment:
aws iam list-attached-role-policies --role-namerole-name
Error: Agent IAM role missing
Error: Installation fails because required service roles do not exist.
Cause: The AWS Elastic Disaster Recovery service roles were not created during initialization or were manually deleted. These roles are:
-
AWSElasticDisasterRecoveryReplicationServerRole -
AWSElasticDisasterRecoveryConversionServerRole -
AWSElasticDisasterRecoveryRecoveryInstanceRole
Resolution:
-
Reinitialize AWS Elastic Disaster Recovery from the console. This recreates the roles.
-
For more information, see Elastic Disaster Recovery initialization and permissions.
Error: Server registered to different Region or account
Error:
Cannot install agent, as this server was previously installed to replicate into another region or account
Cause: The source server's agent configuration file references a previous AWS Elastic Disaster Recovery Region or account.
Resolution:
Important
Resolving this requires disconnecting and deleting the existing source server from the AWS Elastic Disaster Recovery console. This removes the server from AWS Elastic Disaster Recovery and terminates its replication resources. Consult your DR administrator before proceeding.
-
Disconnect and delete the source server from the AWS Elastic Disaster Recovery console in the previously configured Region or account.
-
Run the installer again with the correct Region and credentials.
Error: Reboot required after uninstallation
Error:
The server has not been restarted since agent uninstallation
Cause: The previous agent was uninstalled but the kernel driver is still loaded in memory. A reboot is required to fully remove it.
Resolution:
-
Reboot the source server.
-
Run the installer again after the reboot completes.
Error: Volume exceeds size limit
Error: Error indicating a volume is too large for replication.
Cause: A source volume exceeds the AWS Elastic Disaster Recovery size limits.
AWS Elastic Disaster Recovery volume limits:
-
Maximum volume size: 16 TiB per volume
-
Maximum boot volume size: 16 TiB
-
Maximum volumes per source server: 63
Resolution:
-
Exclude the oversized volume by using the
--devicesinstaller parameter (Linux) or replication settings. -
Alternatively, reduce the volume size on the source server before installing.
Error: Source server already exists
Error:
already exists during installation.
Cause: The source server is already registered with AWS Elastic Disaster Recovery in this Region and account.
Resolution:
-
If reinstalling on the same server: run the installer again without providing tags. You cannot update tags during installation. Use the AWS Elastic Disaster Recovery console or API to modify tags.
-
If registering as a new source server: disconnect and delete the existing source server from the AWS Elastic Disaster Recovery console first.
Error: Missing marketplace license permissions
Error:
Missing permissions to retrieve marketplace licenses from the source account
Cause: The IAM credentials used for installation do not have permission to access AWS Marketplace product codes. This error only occurs when replicating Amazon EC2 instances that use Marketplace AMIs.
Resolution:
-
Add the
ec2:DescribeInstancespermission to the IAM user or role. -
This permission is needed to retrieve Marketplace product codes from the source instance for license compliance.
Error: Secure connection failed while downloading installation files
Error:
Failed to establish a secure connection while downloading the AWS Replication Agent installation files.
Cause: The installer could not complete a TLS handshake when it downloaded the agent installation files from Amazon S3. An intercepting proxy or a TLS-inspecting firewall might present a certificate that the installer does not trust. The certificate authority (CA) trust store on the source server might also be missing or outdated.
Resolution: Complete the following steps:
-
Allow direct HTTPS egress from the source server to the Amazon S3 endpoints in your target Region, without TLS inspection.
-
If you use a proxy, verify that the operating system trust store on the source server trusts the proxy CA certificate.
-
Verify that the system time on the source server is correct. Clock skew invalidates certificates that are otherwise valid.
Error: Operating system is not supported
Error:
The operating system is not supported by the AWS Replication Agent.
Cause: The operating system of the source server is not on the AWS Elastic Disaster Recovery supported list. Elastic Disaster Recovery checks the operating system during installation.
Resolution: Verify that Elastic Disaster Recovery supports the operating system of the source server, then run the installer again. For the supported versions, see Supported Linux operating systems or Supported Windows operating systems.
Error: Invalid endpoint
Error: The AWS SDK returns this error:
Invalid endpoint: value
Cause: The value that you provided for the
--endpoint parameter, or a malformed --region value, is not a
well-formed endpoint URL.
Resolution: Use one of the following options:
-
Omit the
--endpointparameter so that the installer uses the default Regional endpoint. -
If you must set the
--endpointparameter, provide a valid HTTPS URL. -
Verify that the
--regionvalue is a valid AWS Region code, for exampleus-east-1.
Error: Connection attempt failed on port 443
Error: The installer cannot reach the AWS Elastic Disaster Recovery
endpoint and returns this error:
Connection attempt to region on port 443
failed.
Cause: The source server cannot open an outbound TCP connection on port 443 to the AWS Elastic Disaster Recovery endpoints. This error is usually caused by one of the following:
-
A missing route from the source server to the AWS Elastic Disaster Recovery endpoints
-
A firewall that blocks outbound connections, either on the source server or on a network appliance
-
An incorrect web proxy configuration on the source server, for example a proxy that does not pass HTTPS traffic
Resolution: Verify that your firewall, security group, and web proxy configuration allow outbound traffic on port 443 to the following endpoints:
-
drs.region.amazonaws.com -
s3.region.amazonaws.com
To test connectivity on Linux, run the following command on the source server:
$curl -v https://drs.region.amazonaws.com
To test connectivity on Windows, run the following command on the source server:
Test-NetConnection drs.region.amazonaws.com -Port 443
To avoid this error, verify connectivity to these endpoints from the source server before you run the AWS Elastic Disaster Recovery agent installer.
Error: Root or administrator privileges required
Error: The installer exits immediately without making any changes. On Linux, the installer returns the following error message:
You do not have enough privileges to run this application installer. Run the
installer again, using root privileges.
On Windows, the installer returns the following error message:
Please run this script as Administrator.
Cause: You ran the installer without the privileges it requires. The installer checks for sufficient privileges before it does any work, so it does not modify the source server.
Resolution: On Linux, run the installer with
sudo:
$sudo ./aws-replication-installer-init
On Windows, open a Command Prompt or PowerShell window with Run as administrator and run the installer from there.