Skip to content

AWS Elastic Disaster Recovery Agent Installation Error

0

ubuntu@ip-172-31-4-230:~$ sudo ./aws-replication-installer-init The installation of the AWS Replication Agent has started. AWS Region Name: us-west-1 AWS Access Key ID: ******************** AWS Secret Access Key: **************************************** Identifying volumes for replication. Choose the disks you want to replicate. Your disks are: /dev/nvme4n1,/dev/nvme3n1,/dev/nvme2n1,/dev/nvme1n1,/dev/nvme0n1 To replicate some of the disks, type the path of the disks, separated with a comma (for example, /dev/sda, /dev/sdb). To replicate all disks, press Enter: Identified volume for replication: /dev/nvme2n1 of size 300 GiB Identified volume for replication: /dev/nvme4n1 of size 100 GiB Identified volume for replication: /dev/nvme1n1 of size 100 GiB Identified volume for replication: /dev/nvme0n1 of size 50 GiB Identified volume for replication: /dev/nvme3n1 of size 30 GiB All volumes for replication were successfully identified. Downloading the AWS Replication Agent onto the source server... Finished. Installing the AWS Replication Agent onto the source server...

Error: Failed Installing the AWS Replication Agent Installation failed. Learn more about installation issues in our documentation at https://docs.aws.amazon.com/drs/latest/userguide/Troubleshooting-Agent-Issues.html

ubuntu@ip-172-31-4-230:~$ sudo tail -100 ~/aws_replication_agent_installer.log 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. retcode: 0 running: 'apt-get -y --fix-missing install libc6-dev' Reading package lists... Building dependency tree... Reading state information... libc6-dev is already the newest version (2.35-0ubuntu3.13). The following packages were automatically installed and are no longer required: linux-aws-6.8-tools-6.8.0-1046 linux-image-6.8.0-1046-aws linux-modules-6.8.0-1046-aws linux-tools-6.8.0-1046-aws Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. retcode: 0 running: 'apt-get -y --fix-missing install libelf-dev' Reading package lists... Building dependency tree... Reading state information... libelf-dev is already the newest version (0.186-1ubuntu0.1). The following packages were automatically installed and are no longer required: linux-aws-6.8-tools-6.8.0-1046 linux-image-6.8.0-1046-aws linux-modules-6.8.0-1046-aws linux-tools-6.8.0-1046-aws Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. retcode: 0 running: 'which gcc' /usr/bin/gcc retcode: 0 Build essentials returned with code <InstallerStatus.SUCCESS: 0> --- Building software running: ['/bin/sh', 'configure', '--with-srcdir=/lib/modules/6.8.0-1050-aws/build'] retcode: 0 running: ['make', 'clean'] with environment set to {'SRCDIR': '/lib/modules/6.8.0-1050-aws/build', 'PWD': '/tmp/tmpuanbg5e5/AgentDriver'} retcode: 0 running: 'which zypper' retcode: 256 running: ['make'] with environment set to {'SRCDIR': '/lib/modules/6.8.0-1050-aws/build', 'PWD': '/tmp/tmpuanbg5e5/AgentDriver'} retcode: 2 --- Make failed. Trying again with CONFIG_CC_STACKPROTECTOR_STRONG disabled StdOut from driver make: make -C /lib/modules/6.8.0-1050-aws/build M=/tmp/tmpuanbg5e5/AgentDriver modules make[1]: Entering directory '/usr/src/linux-headers-6.8.0-1050-aws' CC [M] /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.o make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-1050-aws'

StdErr from driver make: warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04.3) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu122.04.3) 12.3.0 /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.c: In function ‘queue_rqs_hook’: /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.c:1453:13: error: implicit declaration of function ‘rq_list_move’; did you mean ‘list_move’? [-Werror=implicit-function-declaration] 1453 | rq_list_move(rqlist, &requeue_list, req, prev); | ^~~~~~~~~~~~ | list_move cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:243: /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.8.0-1050-aws/Makefile:1936: /tmp/tmpuanbg5e5/AgentDriver] Error 2 make[1]: *** [Makefile:240: __sub-make] Error 2 make: *** [Makefile:69: AgentDriver] Error 2

running: ['make', 'CONFIG_CC_STACKPROTECTOR_REGULAR=1'] with environment set to {'SRCDIR': '/lib/modules/6.8.0-1050-aws/build', 'PWD': '/tmp/tmpuanbg5e5/AgentDriver'} retcode: 2 Unexpected error while making agent driver! Are kernel linux headers installed correctly? StdOut from driver make second run: make -C /lib/modules/6.8.0-1050-aws/build M=/tmp/tmpuanbg5e5/AgentDriver modules make[1]: Entering directory '/usr/src/linux-headers-6.8.0-1050-aws' CC [M] /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.o make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-1050-aws'

StdErr from driver make second run: warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04.3) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu122.04.3) 12.3.0 /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.c: In function ‘queue_rqs_hook’: /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.c:1453:13: error: implicit declaration of function ‘rq_list_move’; did you mean ‘list_move’? [-Werror=implicit-function-declaration] 1453 | rq_list_move(rqlist, &requeue_list, req, prev); | ^~~~~~~~~~~~ | list_move cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:243: /tmp/tmpuanbg5e5/AgentDriver/src/linux/KernelTracer.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.8.0-1050-aws/Makefile:1936: /tmp/tmpuanbg5e5/AgentDriver] Error 2 make[1]: *** [Makefile:240: __sub-make] Error 2 make: *** [Makefile:69: AgentDriver] Error 2

Installation returned with code <InstallerStatus.COMPILE_DRIVER_ERROR: 14>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dirrus/installer_shared/installer_main.py", line 358, in run_agent_installer File "dirrus/installer_shared/installer_main.py", line 283, in run_agent_installer_command_linux File "dirrus/installer_shared/installer_main.py", line 315, in send_agent_installation_metric_and_handle_error File "shared/installer_utils/installer_main_agent_utils.py", line 125, in handle_install_agent_error Exception: Unhandled return code: COMPILE_DRIVER_ERROR

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dirrus/installer_shared/installer_main.py", line 1361, in _main File "dirrus/installer_shared/installer_main.py", line 1262, in run_main File "dirrus/installer_shared/installer_main.py", line 960, in install File "dirrus/installer_shared/installer_main.py", line 941, in install File "dirrus/installer_shared/installer_main.py", line 367, in run_agent_installer shared.installer_utils.cloud_utils.Error: Failed Installing the AWS Replication Agent [installation_id: a20d7333-c2ce-48a5-88a7-8db9e9258886, agent_version: 6.42.15.2026.037.1918, aws_instance_id: i-0288c3065a632147a, mac_addresses: 1, _origin_client_type: installer]

asked 2 months ago53 views
1 Answer
3

The error in your log identifies a specific compilation failure:

error: implicit declaration of function ‘rq_list_move’; did you mean ‘list_move’?

The AWS Replication Agent (version 6.42) is currently incompatible with Linux Kernel 6.8.

The Agent works by compiling a custom kernel module (the "Agent Driver") on your source machine. Kernel 6.8 introduced changes to internal APIs (specifically renaming/removing rq_list_move) that the Agent’s driver installer does not yet support. Even though you are running Ubuntu 22.04, your system has likely been updated to a newer HWE (Hardware Enablement) kernel.

AWS DRS typically trails behind the latest "bleeding edge" kernels by a few weeks or months.

1. Verify Supported Operating Systems Check the official AWS DRS Supported Operating Systems list -> https://docs.aws.amazon.com/drs/latest/userguide/Supported-Operating-Systems-Linux.html#General-Notes . If specific HWE kernels are used, they often break driver compilation until a specific Agent patch is released by AWS.

2. Check for an Updated Installer AWS updates the installer frequently to catch up with kernel changes. Ensure you are downloading the absolute latest version to see if a fix for Kernel 6.8 has been released:

wget -O aws-replication-installer-init https://aws-elastic-disaster-recovery-us-west-1.s3.us-west-1.amazonaws.com/latest/linux/aws-replication-installer-init
chmod +x aws-replication-installer-init
sudo ./aws-replication-installer-init

3. Workaround: Use a Stable Kernel If the latest installer still fails, the most reliable fix is to boot your server using the standard Ubuntu 22.04 LTS kernel (5.15) or a stable 6.2 version, which are fully supported.

Please note: I am NOT an AWS employee and this is a community forum, NOT the official AWS support. Therefore, I would in any case also create a ticket in the AWS account where the error occurs. Perhaps there is a possibility that support can help even with an unsupported kernel version.

EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.