You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2025/04/03 15:21:00 UTC
[jira] [Updated] (ARTEMIS-5190) AIO not detected on Ubuntu
[ https://issues.apache.org/jira/browse/ARTEMIS-5190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram updated ARTEMIS-5190:
------------------------------------
Description:
Ubuntu changed their libaio package name as was addressed [here|https://github.com/apache/activemq-artemis/commit/86f36e95b09c709fb7e4af33f4a535f9a80d7221].
But the native {{LibaioContext}} link is still referencing {{libaio.so.1}}, as seen in startup logs with debug enabled:
{noformat}
2024-09-18 15:40:43,807 DEBUG [org.apache.activemq.artemis.nativo.jlibaio.LibaioContext] artemis-native-64 -> not possible to load native library
java.lang.UnsatisfiedLinkError: /opt/activemq-artemis/bin/lib/linux-x86_64/libartemis-native-64.so: libaio.so.1: cannot open shared object file: No such file or directory{noformat}
I think the link created [here|https://github.com/apache/activemq-artemis-native/blob/02ad87f08395993ae417ce75bf8ce78a3bc23e0a/src/main/c/CMakeLists.txt#L80C1-L80C22] is stale, and a rebuild of {{artemis-native}} is needed.
It's possible to work around this issue by creating a symlink, e.g.:
{noformat}
ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/libaio.so.1{noformat}
was:
Ubuntu changed their libaio package name as was addressed [here|https://github.com/apache/activemq-artemis/commit/86f36e95b09c709fb7e4af33f4a535f9a80d7221].
But the native {{LibaioContext}} link is still referencing {{libaio.so.1}}, as seen in startup logs with debug enabled:
{noformat}
2024-09-18 15:40:43,807 DEBUG [org.apache.activemq.artemis.nativo.jlibaio.LibaioContext] artemis-native-64 -> not possible to load native library
java.lang.UnsatisfiedLinkError: /opt/activemq-artemis/bin/lib/linux-x86_64/libartemis-native-64.so: libaio.so.1: cannot open shared object file: No such file or directory{noformat}
I think the link created [here|https://github.com/apache/activemq-artemis-native/blob/02ad87f08395993ae417ce75bf8ce78a3bc23e0a/src/main/c/CMakeLists.txt#L80C1-L80C22] is stale, and a rebuild of {{artemis-native}} is needed.
> AIO not detected on Ubuntu
> --------------------------
>
> Key: ARTEMIS-5190
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5190
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: ActiveMQ-Artemis-Native
> Affects Versions: native-1.0.2
> Reporter: Justin Bertram
> Assignee: Clebert Suconic
> Priority: Major
>
> Ubuntu changed their libaio package name as was addressed [here|https://github.com/apache/activemq-artemis/commit/86f36e95b09c709fb7e4af33f4a535f9a80d7221].
> But the native {{LibaioContext}} link is still referencing {{libaio.so.1}}, as seen in startup logs with debug enabled:
> {noformat}
> 2024-09-18 15:40:43,807 DEBUG [org.apache.activemq.artemis.nativo.jlibaio.LibaioContext] artemis-native-64 -> not possible to load native library
> java.lang.UnsatisfiedLinkError: /opt/activemq-artemis/bin/lib/linux-x86_64/libartemis-native-64.so: libaio.so.1: cannot open shared object file: No such file or directory{noformat}
> I think the link created [here|https://github.com/apache/activemq-artemis-native/blob/02ad87f08395993ae417ce75bf8ce78a3bc23e0a/src/main/c/CMakeLists.txt#L80C1-L80C22] is stale, and a rebuild of {{artemis-native}} is needed.
> It's possible to work around this issue by creating a symlink, e.g.:
> {noformat}
> ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/libaio.so.1{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact