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]