# Raspberry Pi 5 default page size results in uninstall and integration errors due to jemalloc unsupported page size

**URL:** <https://discuss.elastic.co/t/raspberry-pi-5-default-page-size-results-in-uninstall-and-integration-errors-due-to-jemalloc-unsupported-page-size/379781>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [July 3, 2025, 4:12pm UTC](https://discuss.elastic.co/t/raspberry-pi-5-default-page-size-results-in-uninstall-and-integration-errors-due-to-jemalloc-unsupported-page-size/379781 "2025-07-03T16:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorhack](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gorhack/32/142011_2.png) [@gorhack](https://discuss.elastic.co/u/gorhack)\
**Post date:** [July 3, 2025, 4:12pm UTC](https://discuss.elastic.co/t/raspberry-pi-5-default-page-size-results-in-uninstall-and-integration-errors-due-to-jemalloc-unsupported-page-size/379781/1 "2025-07-03T16:12:20Z")

</div>

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:

```auto
Binary: 9.0.3 (build: 5f147906dab8702d8738a71f6 27a07a0725b5abc
Daemon: 9.0.3 (build: 5f147906dab8702d8738a71f6 27a07a0725b5abc

```

Elastic Defend integration error:

```auto
(FAILED) failed install end point service: terminate called without an active exception: signal: aborted

```

Uninstall error:

```auto
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](https://github.com/fluent/fluent-bit/issues/9730)
