Due to the default page size in the Raspberry Pi 5's kernel (16kb) the elastic agent cannot initialize the Elastic Defend integration nor uninstall successfully.
Elastic Agent Version information:
Binary: 9.0.3 (build: 5f147906dab8702d8738a71f6 27a07a0725b5abc
Daemon: 9.0.3 (build: 5f147906dab8702d8738a71f6 27a07a0725b5abc
Elastic Defend integration error:
(FAILED) failed install end point service: terminate called without an active exception: signal: aborted
Uninstall error:
Failed to uninstall agent [1s] Error un installing. Printing logs
2025-07-03T15:17:47.228Z DEBUG [uninstall-state_migration] not attempting to migrate from action store: state store already exists
2025-07-03T15:17:48.551Z DEBUG [uninstall-state_migration] not attempting to migrate from action store: state store already exists
2025-07-03T15:17:48.588Z DEBUG [uninstall.composable] Starting controller for composable inputs
2025-07-03T15:17:48.588Z DEBUG [uninstall-composable] Started controller for composable inputs
2025-07-03T15:17:48.588Z DEBUG [uninstall.composable] Computing new variable state for composable inputs
2025-07-03T15:17:48.588Z DEBUG [uninstall.composable] Stopping controller for composable inputs
2025-07-03T15:17:48.588Z DEBUG [uninstall.composable] Stopped controller for composable inputs
2025-07-03T15:17:48.600Z INFO [uninstall] Capabilities file not found in /opt/Elastic/Agent/capabilities.yml
2025-07-03T15:17:48.601Z DEBUG [uninstall] uninstall endpoint-security service
2025-07-03T15:17:48.602Z ERROR [uninstall] <jemalloc>: Unsupported system page size {"context": "command output"}
2025-07-03T15:17:48.602Z ERROR [uninstall] <jemalloc>: Unsupported system page size {"context": "command output"}
2025-07-03T15:17:48.602Z ERROR [uninstall] terminate called without an active exception {"context": "command output"} Error: error uninstalling agent: error uninstalling components: error uninstalling component: error uninstalling service: terminate called without an active exception: signal: aborted For help, please see our troubleshooting guide
Temporary remediation to fix both issues:
Appended kernel=kernel8.img
to /boot/firmware/config.txt
and reboot to change the kernel page size to 4k.
Similar issue