AWS Security ChangesHomeSearch

AWS drs: Add DRS-INST-027 driver update environment file error

Service: drs · 2026-11-21 · Documentation low

File: drs/latest/userguide/agent-install-linux-errors.md

Summary

Adds a new troubleshooting entry (DRS-INST-027) for when the installer cannot prepare /var/lib/aws-replication-agent/aws-replication-driver-update.env, including steps to inspect the path, remove blocking files/directories/links, check free space and read-only mounts, and clear immutable attributes with chattr -i.

Security assessment

The entry is operational troubleshooting for a file-write failure; while it touches file ownership, read-only mounts, and immutable attributes, it documents no vulnerability, CVE, or security control, so it is only tangentially security-adjacent.

Evidence

+**Cause:** The installer creates and owns this file, and it could not write it. The file could not be written because a directory already occupies the path, the path is not writable, or the file system is full.

Diff

diff --git a/drs/latest/userguide/agent-install-linux-errors.md b/drs/latest/userguide/agent-install-linux-errors.md
index aa09b07..17c2520 100644
--- a//drs/latest/userguide/agent-install-linux-errors.md
+++ b//drs/latest/userguide/agent-install-linux-errors.md
@@ -7 +7 @@
-DRS-INST-002: Kernel headers link is brokenDRS-INST-003: Kernel headers not foundDRS-INST-004: gcc not foundDRS-INST-008: Unsupported Linux kernel versionDRS-INST-012: Oracle ASM Filter Driver requires a restartDRS-INST-013: Agent driver build configuration failedDRS-INST-014: Agent driver compilation failedDRS-INST-015: SUSE kernel headers package not foundDRS-INST-022: Failed to create system userDRS-INST-025: Permission denied when loading kernel driverDRS-INST-914: Invalid driver state locationDRS-INST-915: Invalid disk path formatDRS-INST-916: Multipath disk detection failureDRS-INST-917: PowerPath multipath detectedEnvironment errors
+DRS-INST-002: Kernel headers link is brokenDRS-INST-003: Kernel headers not foundDRS-INST-004: gcc not foundDRS-INST-008: Unsupported Linux kernel versionDRS-INST-012: Oracle ASM Filter Driver requires a restartDRS-INST-013: Agent driver build configuration failedDRS-INST-014: Agent driver compilation failedDRS-INST-015: SUSE kernel headers package not foundDRS-INST-022: Failed to create system userDRS-INST-025: Permission denied when loading kernel driverDRS-INST-027: Driver update environment file could not be preparedDRS-INST-914: Invalid driver state locationDRS-INST-915: Invalid disk path formatDRS-INST-916: Multipath disk detection failureDRS-INST-917: PowerPath multipath detectedEnvironment errors
@@ -34,0 +35,2 @@ This topic covers errors that you might encounter during or after installing the
+  * DRS-INST-027: Driver update environment file could not be prepared
+
@@ -399,0 +402,35 @@ Check your endpoint protection software and add AWS Elastic Disaster Recovery co
+## DRS-INST-027: Driver update environment file could not be prepared
+
+**Error message:** **`Error code: DRS-INST-027 - Driver update environment file could not be prepared`**
+
+The installer prints the following text before the error code:
+
+**`Could not prepare the AWS Replication Agent driver update environment file at /var/lib/aws-replication-agent/aws-replication-driver-update.env. Remove any file, directory, or link at that path that the installer did not create, then run the installer again.`**
+
+**Cause:** The installer creates and owns this file, and it could not write it. The file could not be written because a directory already occupies the path, the path is not writable, or the file system is full.
+
+**Resolution:** Inspect the path named in the error message, then clear whatever is blocking it.
+
+  1. Inspect the path named in the error message:
+    
+        $ ls -ld /var/lib/aws-replication-agent/aws-replication-driver-update.env
+
+  2. If a directory, or an object that the installer did not create, occupies the path, remove it:
+    
+        $ sudo rm -r /var/lib/aws-replication-agent/aws-replication-driver-update.env
+
+  3. If nothing occupies the path, the write failed. Confirm that the file system has free space and is not mounted read-only:
+    
+        $ df -h /var/lib/aws-replication-agent
+    $ findmnt -T /var/lib/aws-replication-agent
+
+If the `OPTIONS` column includes `ro`, remount the file system with write permissions. Check the path for an immutable attribute, and remove it if present:
+    
+        $ lsattr -d /var/lib/aws-replication-agent
+    $ sudo chattr -i /var/lib/aws-replication-agent
+
+  4. Run the AWS Replication Agent installer again.
+
+
+
+