スキップしてコンテンツを表示

AWS MGN - stalled at installing the replication agent

0

AWS MGN Agent Installation Failing with Download Error

Issue Description I'm trying to install the AWS Replication Agent for MGN on my EC2 instance but encountering consistent failures. The installation fails with the error "Failed Downloading the AWS Replication Agent" after successfully downloading the initial installer.

Environment Details

  • EC2 Instance: Amazon Linux 2
  • Region: us-east-1
  • Security Group: Configured with outbound rules for port 443
  • IAM: Using credentials with AWSApplicationMigrationAgentInstallationPolicy

Steps Taken

  1. Successfully connected to EC2 via SSH
  2. Downloaded initial installer - sudo wget -O ./aws-replication-installer-init https://aws-application-migration-service-us-east-1.s3.us-east-1.amazonaws.com/latest/linux/aws-replication-installer-init
  3. Ran installation command: sudo chmod +x aws-replication-installer-init; sudo ./aws-replication-installer-init --region us-east-1 --aws-access-key-id [ACCESS_KEY] --aws-secret-access-key [SECRET_KEY] --no-prompt

Error Message

The installation of the AWS Replication Agent has started. Identifying volumes for replication. Identified volume for replication: /dev/xvda of size 12 GiB All volumes for replication were successfully identified. Downloading the AWS Replication Agent onto the source server...

Error: Installing the AWS Replication Agent onto the source server.. and does not progress at all from here.

What I've Tried

  1. Verified outbound security group rules (443 to [IP_ADDRESS])
  2. Cleaned up and retried installation multiple times
  3. Confirmed internet connectivity on the instance
  4. Verified IAM permissions

Questions

  1. What could be causing the download failure despite successful initial installer download?
  2. Are there additional network or security configurations needed?
  3. How can I troubleshoot this download failure?

Any help would be greatly appreciated as this is blocking our migration process.

質問済み 2ヶ月前112ビュー
2回答
0

Some companies block access to unknown Amazon S3 buckets. Can you check if the Amazon S3 buckets are allowlisted?

AWS
回答済み 2ヶ月前
-1

Based on your description, you're encountering an issue with the AWS Application Migration Service (MGN) agent installation that's stalling during the process. Here are some potential causes and solutions:

  1. Agent Version Issue: The installation may be failing due to an outdated AWS Replication Agent. Ensure you're attempting to install the latest version of the AWS Replication Agent.

  2. Network Connectivity Issues: While you've verified outbound security group rules for port 443, there might still be connectivity issues between:

  • The agent and the replication server
  • The replication server and the AWS MGN endpoint
  • The staging subnet and the S3 endpoint
  1. Insufficient Permissions: Verify that the IAM credentials you're using have all the necessary permissions. While you mentioned having the AWSApplicationMigrationAgentInstallationPolicy, there might be additional permissions needed.

  2. System Requirements: Ensure your Linux system meets all prerequisites:

  • Sufficient free disk space
  • Properly formatted disks for replication
  • Exact version of kernel headers if required
  1. Troubleshooting Steps:
  • Check the AWS MGN Agent logs for specific error messages
  • Verify there are no firewall rules or security software blocking the agent's communication
  • Try running the installer from a different shell or with different parameters
  • Ensure there are no third-party disk management tools or backup software running that might interfere
  1. Pairing Issues: The error might indicate a pairing issue between the agent and the replication server. Ensure there's proper network connectivity between all components.

If these steps don't resolve the issue, you may need to contact AWS Support for more detailed troubleshooting specific to your environment.
Sources
Application migration service - Failed to identify volumes for replication. | AWS re:Post
Common replication errors - Application Migration Service
How do I troubleshoot when replication is stuck in MGN/DRS console? | AWS re:Post
Troubleshooting agent issues - Application Migration Service

回答済み 2ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ