AWS drs: Reorganize DRS agent install errors with DRS-INST error codes
Summary
Restructures the AWS Elastic Disaster Recovery agent installation common errors page, assigning standardized DRS-INST-XXX error codes to each error, reordering sections, and moving some errors (IAM role missing, arm64 EC2 verification) under a new 'Account setup errors' section. Content is largely reorganized rather than newly authored.
Security assessment
The diff is a documentation restructuring that adds error codes and reorders existing troubleshooting content. While it touches security-adjacent topics (IAM policy attachment, credential validation, port 443 connectivity, root privileges), these are pre-existing troubleshooting entries being reorganized, not new security guidance or a fix for a specific vulnerability.
Evidence
+**Cause:** The AWS Access Key ID or Secret Access Key provided during installation is incorrect, expired, or malformed.
Diff
diff --git a/drs/latest/userguide/agent-install-common-errors.md b/drs/latest/userguide/agent-install-common-errors.md index 3d13c22..3b7505e 100644 --- a//drs/latest/userguide/agent-install-common-errors.md +++ b//drs/latest/userguide/agent-install-common-errors.md @@ -7 +7 @@ -Error: Outdated agent installer versionError: Account not initializedError: Failed to validate AWS credentialsError: Request signature mismatchError: Missing agent installation policyError: Agent IAM role missingError: Server registered to different Region or accountError: Reboot required after uninstallationError: Volume exceeds size limitError: Source server already existsError: Missing marketplace license permissionsError: Secure connection failed while downloading installation filesError: DRS cannot confirm that the arm64 source is an EC2 instanceError: Operating system is not supportedError: Operating system has reached its end of lifeError: Invalid endpointError: Connection attempt failed on port 443Error: Root or administrator privileges required +DRS-INST-007: Reboot required after uninstallationDRS-INST-010: Outdated agent installer versionDRS-INST-020: Missing marketplace license permissionsDRS-INST-021: Server registered to different Region or accountDRS-INST-901: Account not initializedDRS-INST-902: Failed to validate AWS credentialsDRS-INST-903: Connection attempt failed on port 443DRS-INST-904: Missing agent installation policyDRS-INST-905: Source server already existsDRS-INST-906: Volume exceeds size limitDRS-INST-907: Request signature mismatchDRS-INST-908: Root or administrator privileges requiredDRS-INST-911: Secure connection failed while downloading filesDRS-INST-912: Operating system is not supportedDRS-INST-913: Invalid endpointDRS-INST-918: Operating system has reached its end of lifeAccount setup errors @@ -15 +15 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Outdated agent installer version + * DRS-INST-007: Reboot required after uninstallation @@ -17 +17 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Account not initialized + * DRS-INST-010: Outdated agent installer version @@ -19 +19 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Failed to validate AWS credentials + * DRS-INST-020: Missing marketplace license permissions @@ -21 +21 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Request signature mismatch + * DRS-INST-021: Server registered to different Region or account @@ -23 +23 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Missing agent installation policy + * DRS-INST-901: Account not initialized @@ -25 +25 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Agent IAM role missing + * DRS-INST-902: Failed to validate AWS credentials @@ -27 +27 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Server registered to different Region or account + * DRS-INST-903: Connection attempt failed on port 443 @@ -29 +29 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Reboot required after uninstallation + * DRS-INST-904: Missing agent installation policy @@ -31 +31 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Volume exceeds size limit + * DRS-INST-905: Source server already exists @@ -33 +33 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Source server already exists + * DRS-INST-906: Volume exceeds size limit @@ -35 +35 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Missing marketplace license permissions + * DRS-INST-907: Request signature mismatch @@ -37 +37 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Secure connection failed while downloading installation files + * DRS-INST-908: Root or administrator privileges required @@ -39 +39 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: DRS cannot confirm that the arm64 source is an EC2 instance + * DRS-INST-911: Secure connection failed while downloading files @@ -41 +41 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Operating system is not supported + * DRS-INST-912: Operating system is not supported @@ -43 +43 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Operating system has reached its end of life + * DRS-INST-913: Invalid endpoint @@ -45 +45 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Invalid endpoint + * DRS-INST-918: Operating system has reached its end of life @@ -47 +47 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Connection attempt failed on port 443 + * Account setup errors @@ -49 +48,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - * Error: Root or administrator privileges required @@ -52,0 +52 @@ This topic covers platform-agnostic installation errors related to AWS credentia +## DRS-INST-007: Reboot required after uninstallation @@ -54 +54 @@ This topic covers platform-agnostic installation errors related to AWS credentia -## Error: Outdated agent installer version +**Error message:** **`Error code: DRS-INST-007 - Reboot required after uninstallation`** @@ -56 +56,14 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Error:** Installation fails with version-related errors or unexpected behavior. +**Cause:** The previous agent was uninstalled but the kernel driver is still loaded in memory. A reboot is required to fully remove it. + +**Resolution:** + + 1. Reboot the source server. + + 2. Run the installer again after the reboot completes. + + + + +## DRS-INST-010: Outdated agent installer version + +**Error message:** **`Error code: DRS-INST-010 - Outdated agent installer version`** @@ -75 +88 @@ This topic covers platform-agnostic installation errors related to AWS credentia -## Error: Account not initialized +## DRS-INST-020: Missing marketplace license permissions @@ -77 +90 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Error:** `AWS Replication Agent installation failed due to the account not being initialized` +**Error message:** **`Error code: DRS-INST-020 - Missing marketplace license permissions`** @@ -79 +92 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Cause:** AWS Elastic Disaster Recovery has not been initialized in the target Region. Initialization creates the required service-linked roles and replication infrastructure. +**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. @@ -83 +96 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 1. Initialize AWS Elastic Disaster Recovery by following [Elastic Disaster Recovery initialization and permissions](./getting-started-initializing.html). + 1. Add the `ec2:DescribeInstances` permission to the IAM user or role. @@ -85 +98 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 2. Run the installer again after initialization completes. + 2. This permission is needed to retrieve Marketplace product codes from the source instance for license compliance. @@ -90 +103 @@ This topic covers platform-agnostic installation errors related to AWS credentia -## Error: Failed to validate AWS credentials +## DRS-INST-021: Server registered to different Region or account @@ -92 +105 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Error:** `Failed to validate AWS credentials` +**Error message:** **`Error code: DRS-INST-021 - Server registered to different Region or account`** @@ -94 +107 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Cause:** The AWS Access Key ID or Secret Access Key provided during installation is incorrect, expired, or malformed. +**Cause:** The source server's agent configuration file references a previous AWS Elastic Disaster Recovery Region or account. @@ -98 +111 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 1. Verify that the credentials are active in the IAM console. +###### Important @@ -100 +113 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 2. If you are using temporary credentials (STS), check the expiration time. +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. @@ -102 +115 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 3. Test the credentials independently: + 1. Disconnect and delete the source server from the AWS Elastic Disaster Recovery console in the previously configured Region or account. @@ -104 +117 @@ This topic covers platform-agnostic installation errors related to AWS credentia - aws sts get-caller-identity --region region + 2. Run the installer again with the correct Region and credentials. @@ -106 +118,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 4. On Windows, use PowerShell instead of CMD to avoid special character pasting issues with secret keys. @@ -108 +119,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 5. Ensure that the Region specified during installation matches the Region where AWS Elastic Disaster Recovery is initialized. @@ -110,0 +122 @@ This topic covers platform-agnostic installation errors related to AWS credentia +## DRS-INST-901: Account not initialized @@ -111,0 +124 @@ This topic covers platform-agnostic installation errors related to AWS credentia +**Error message:** **`Error code: DRS-INST-901 - Account not initialized`** @@ -113 +126 @@ This topic covers platform-agnostic installation errors related to AWS credentia -## Error: Request signature mismatch +**Cause:** AWS Elastic Disaster Recovery has not been initialized in the target Region. Initialization creates the required service-linked roles and replication infrastructure. @@ -115 +128 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Error:** **`InvalidSignatureException... The request signature we calculated does not match the signature you provided`** +**Resolution:** @@ -117 +130 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**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. + 1. Initialize AWS Elastic Disaster Recovery by following [Elastic Disaster Recovery initialization and permissions](./getting-started-initializing.html). @@ -119 +132 @@ This topic covers platform-agnostic installation errors related to AWS credentia -**Resolution:** + 2. Run the installer again after initialization completes. @@ -121 +133,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 1. 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. @@ -123 +134,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 2. Make sure the system clock is accurate. For example, synchronize with Network Time Protocol (NTP). @@ -125 +135,0 @@ This topic covers platform-agnostic installation errors related to AWS credentia - 3. Verify the credentials with the following command: @@ -127 +137 @@ This topic covers platform-agnostic installation errors related to AWS credentia - aws sts get-caller-identity +## DRS-INST-902: Failed to validate AWS credentials @@ -129 +139,3 @@ This topic covers platform-agnostic installation errors related to AWS credentia -Then run the installer again. +**Error message:** **`Error code: DRS-INST-902 - Failed to validate AWS credentials`** + +**Cause:** The AWS Access Key ID or Secret Access Key provided during installation is incorrect, expired, or malformed. @@ -130,0 +143 @@ Then run the installer again. +**Resolution:** @@ -131,0 +145 @@ Then run the installer again. + 1. Verify that the credentials are active in the IAM console. @@ -132,0 +147 @@ Then run the installer again. + 2. If you are using temporary credentials (STS), check the expiration time. @@ -134 +149 @@ Then run the installer again. -## Error: Missing agent installation policy + 3. Test the credentials independently: @@ -136 +151 @@ Then run the installer again. -**Error:** `User is not authorized to perform` or access denied errors during installation. + aws sts get-caller-identity --region region @@ -138 +153 @@ Then run the installer again. -**Cause:** The IAM user or role used for installation does not have the required permissions. + 4. On Windows, use PowerShell instead of CMD to avoid special character pasting issues with secret keys. @@ -140 +155 @@ Then run the installer again. -**Resolution:** + 5. Ensure that the Region specified during installation matches the Region where AWS Elastic Disaster Recovery is initialized. @@ -142 +156,0 @@ Then run the installer again. - 1. Attach the `AWSElasticDisasterRecoveryAgentInstallationPolicy` managed policy to the IAM user or role. @@ -144 +157,0 @@ Then run the installer again. -Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallationPolicy` @@ -146 +158,0 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation - 2. Verify the policy attachment for an IAM user: @@ -148 +160 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation - aws iam list-attached-user-policies --user-name username +## DRS-INST-903: Connection attempt failed on port 443 @@ -150 +162 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation - 3. If you are using an IAM role, verify the policy attachment: +**Error message:** **`Error code: DRS-INST-903 - Connection attempt failed on port 443`** @@ -152 +164 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation - aws iam list-attached-role-policies --role-name role-name +**Cause:** The installer cannot reach the AWS Elastic Disaster Recovery endpoint. 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: @@ -153,0 +166 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation + * A missing route from the source server to the AWS Elastic Disaster Recovery endpoints @@ -154,0 +168 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation + * A firewall that blocks outbound connections, either on the source server or on a network appliance @@ -155,0 +170 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation + * An incorrect web proxy configuration on the source server, for example a proxy that does not pass HTTPS traffic @@ -157 +171,0 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation -## Error: Agent IAM role missing @@ -159 +172,0 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation -**Error:** Installation fails because required service roles do not exist. @@ -161 +173,0 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation -**Cause:** The AWS Elastic Disaster Recovery service roles were not created during initialization or were manually deleted. These roles are: @@ -163 +175 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation - * `AWSElasticDisasterRecoveryReplicationServerRole` +**Resolution:** Verify that your firewall, security group, and web proxy configuration allow outbound traffic on port 443 to the following endpoints: @@ -165 +177 @@ Policy ARN: `arn:aws:iam::aws:policy/AWSElasticDisasterRecoveryAgentInstallation