Bamboo remote agent - WARNING - Unable to load the Wrapper's native library 'wrapper.dll'

Still need help?

The Atlassian Community is here for you.

Ask the community

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

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

# Linux
echo $JAVA_HOME
 
# Windows
echo %JAVA_HOME%

Cause

64-bit Java version installed is not compatible with the 32-bit wrapper.dll

Resolution

Update the <bamboo-agent-home>/conf/wrapper.conf file's wrapper.java.command to the below settings:

wrapper.java.command=$JAVA_HOME\bin\java

 

 

Last modified on Nov 30, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.