Bamboo remote agent - WARNING - Unable to load the Wrapper's native library 'wrapper.dll'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
Remote agent will not start due to 32-bit wrapper running with 64-bit version of Java:
The following appears in the bamboo-agent-home/log/atlassian-bamboo.log
1
2
3
4
5
6
7
8
9
10
11
12
INFO | jvm 1 | 2016/10/27 15:33:45 | WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
INFO | jvm 1 | 2016/10/27 15:33:45 | The file is located on the path at the following location but
INFO | jvm 1 | 2016/10/27 15:33:45 | could not be loaded:
INFO | jvm 1 | 2016/10/27 15:33:45 | E:\bamboo-agent-home\bin\..\lib\wrapper.dll
INFO | jvm 1 | 2016/10/27 15:33:45 | Please verify that the file is readable by the current user
INFO | jvm 1 | 2016/10/27 15:33:45 | and that the file has not been corrupted in any way.
INFO | jvm 1 | 2016/10/27 15:33:45 | One common cause of this problem is running a 32-bit version
INFO | jvm 1 | 2016/10/27 15:33:45 | of the Wrapper with a 64-bit version of Java, or vica versa.
INFO | jvm 1 | 2016/10/27 15:33:45 | This is a 32-bit JVM.
INFO | jvm 1 | 2016/10/27 15:33:45 | Reported cause:
INFO | jvm 1 | 2016/10/27 15:33:45 | wrapper (Not found in java.library.path)
INFO | jvm 1 | 2016/10/27 15:33:45 | System signals will not be handled correctly.
Diagnosis
Environment
Verify current JAVA_HOME environment variable bits set on the remote agent server
Diagnostic Steps
1
2
3
4
5
# Linux
echo $JAVA_HOME
# Windows
echo %JAVA_HOME%
Cause
64-bit Java version installed is not compatible with the 32-bit wrapper.dll
Solution
Resolution
Update the <bamboo-agent-home>/conf/wrapper.conf file's wrapper.java.command to the below settings:
1
wrapper.java.command=$JAVA_HOME\bin\java
Was this helpful?