AWS DRS Replication Agent Crash or Agent Not Seen
Overview
Diagnose an AWS Elastic Disaster Recovery replication agent crash or AGENT_NOT_SEEN state by checking the source service, agent logs, regional endpoint access and TCP 1500 path before any restart or reinstall that could trigger a rescan and affect RPO.
Diagnose
Symptom
What responders observe.
An AWS DRS source server shows Disconnected, Stalled, Agent not seen or a replication communication error. The local AWS Replication Agent service may be stopped, repeatedly failing, unable to authenticate to the regional DRS endpoint on TCP 443, or unable to reach the staging replication server on TCP 1500.
Detection
Metrics, logs and confirmation commands.
Record sourceServerID, account, target region, dataReplicationState, dataReplicationError and lag before touching the source host.
Check the AWS Replication Agent service and agent.log.0 on the affected operating system.
Correlate ERROR, FATAL, connection, certificate and timeout entries with host reboots, kernel updates, security changes and network events.
Verify TCP 443 from the source to the regional DRS service and TCP 1500 from the source to the staging replication server.
Distinguish a stopped agent from network, IAM, TLS, time-skew, kernel-driver or staging-area failures; reinstall is not the first diagnostic step.
Root cause
Why the incident occurred.
The aws-replication-agent or AwsReplicationService process stopped or failed after a host, kernel or security change.
Egress TCP 443, DNS, proxy trust or system-time drift prevented service authentication.
Security groups, network ACLs or routing blocked TCP 1500 to the staging replication server.
The driver or supported-operating-system prerequisites no longer matched after an update.
A changed MAC address or agent lifecycle action caused DRS to lose source identity and require a new replication cycle.
The staging replication software or regional service path failed while the source agent remained healthy.
Contain and prevent
Blast radius
What else this can affect.
Replication lag grows and recent recovery points can fall outside the intended RPO while the agent is disconnected.
A rescan can temporarily prevent point-in-time recovery newer than the pre-rescan recovery point.
Uninstall, disconnect or source-identity changes can remove replication resources or require replication from the beginning.
Prevention
Controls and guardrails that stop it recurring.
-
Monitor DRS dataReplicationState, lag and agent-seen status alongside the local service.
-
Validate DRS endpoints, TCP 443 and TCP 1500 after firewall, proxy, subnet or security-group changes.
-
Check supported kernels and operating systems before patching protected sources.
-
Keep the AWS diagnostic tool and agent log collection process ready for support.
-
Treat reinstall, hard reboot, disk or MAC-address changes as RPO-affecting changes and link the AWS EC2 health-check workflow in the recovery record.
Fix
Pre-flight checks
Check these before you change anything.
Confirm this is the source server, not a recovery instance or failback client, and record its sourceServerID.
Capture the DRS state, lag, replication error, service state, logs and agent version.
Confirm no drill, recovery or failback is active for the server.
Obtain the DR owner change approval before starting a stopped service or rebooting.
Do not uninstall, disconnect, delete or reinstall the agent unless AWS guidance and the RPO impact are accepted.
Commands
# AWS control-plane state (read-only).
aws drs describe-source-servers --filters "sourceServerIDs=$SOURCE_SERVER_ID" --region "$AWS_REGION" --query "items[0].dataReplicationInfo"
# Linux inspection (read-only).
systemctl status aws-replication-agent
tail -100 /var/lib/aws-replication-agent/agent.log.0
grep -i "ERROR\|FATAL" /var/lib/aws-replication-agent/agent.log.0
cat /var/lib/aws-replication-agent/agent.version
# Windows PowerShell inspection (read-only).
Get-Service -Name AwsReplicationService
Get-Content "C:\Program Files (x86)\AWS Replication Agent\agent.log.0" -Tail 100
Select-String -Pattern "ERROR|FATAL" -Path "C:\Program Files (x86)\AWS Replication Agent\agent.log.0"
Verify and recover
Verification
Evidence required before you close the incident.
Confirm the agent service is running and remains stable for at least 15 consecutive minutes.
Verify the DRS console or DescribeSourceServers shows the agent communicating and dataReplicationState progressing toward a healthy state.
Confirm replication lag decreases to the environment baseline and no new ERROR or FATAL log entries appear.
Verify the latest recovery point advances after communication resumes.
Run a scheduled recovery drill later; do not convert an active incident into an unplanned failover test.
Rollback
The safe way back.
If an approved service start immediately destabilises the source, capture the new logs and return the service to its recorded pre-change state while preserving the existing DRS registration.
Revert only the network or host configuration changed during this incident.
Do not use uninstall, disconnect or delete as rollback
escalate before any action that can force a rescan or full re-replication.
Escalate when
Conditions that need another owner.
-
The service repeatedly crashes, the driver fails to load, or the operating system/kernel is unsupported.
-
Replication remains disconnected after local service and network paths are healthy.
-
A restart, reboot, reinstall, MAC-address correction or source disconnect is proposed.
-
Lag threatens the agreed RPO or no current recovery point is available.
-
Escalate to the DR owner and AWS Support with sourceServerID, region, timestamps, agent version, logs and diagnostic-tool output.
Fixed? Get the next one before it hits you: The KBY Brief
Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Found this useful? Follow KBY for more like it.
Sources
Based on the vendor sources listed below. Check each step against your environment before acting.
First published 27 August 2026
Replication errors: agent communication
Cited for: Defines AGENT_NOT_SEEN and the TCP 443/TCP 1500 communication checks and CLI state query.
Agent logs and diagnostics
Cited for: Verifies Linux and Windows service names, log paths and diagnostic commands.
AWS DRS agent related FAQ
Cited for: Documents agent log locations and the RPO impact of rescans.
Installation requirements for AWS Replication Agent
Cited for: Documents conditions such as MAC-address changes that can stop replication and require reinstallation from the beginning.
Recommended reading
More from KBY that goes with this runbook.
Related runbooks
ALB Targets Turn Unhealthy With Target.Timeout After a Security Group Change on the Instances
Application Load Balancer targets that turn unhealthy with Target.Timeout after an instance security group change are blocking the health checks. Confirm with describe-target-health and the security group rules, then add one inbound rule whose source is the load balancer security group on the traffic and health check ports, keeping its rule ID for rollback and never opening the instances wider.
GitLab CI Services From Amazon ECR Fail to Pull After 12 Hours: Switch to the ECR Credential Helper
GitLab CI jobs whose image or services come from a private Amazon ECR registry fail with no basic auth credentials or HTTP 403 when DOCKER_AUTH_CONFIG holds a pasted ECR token, which lasts 12 hours. Refresh it to unblock, then install docker-credential-ecr-login on a self-managed runner with a pull-only IAM role and use credHelpers.
AWS Step Functions Execution Timeout: Diagnose States.Timeout
Diagnose an AWS Step Functions States.Timeout by separating workflow, task, heartbeat, HTTP Task and downstream-service limits. Change retry, catch or timeout policy only once you understand the execution type and any duplicate side effects.

