• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 1.0.1
    • 1.0-rc2
    • None
    • None
    • Fedora Core 4, x86 64-bit

      While attempting to start Bamboo, I get the following error:

      [arohner@zeus Bamboo]$ sudo ./start-bamboo console
      Running Bamboo Continuous Integration Server...
      wrapper  | --> Wrapper Started as Console
      wrapper  | Launching a JVM...
      jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
      jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
      jvm 1    | 
      jvm 1    | 
      jvm 1    | WARNING - Unable to load the Wrapper's native library 'libwrapper.so'.
      jvm 1    |           The file is located on the path at the following location but
      jvm 1    |           could not be loaded:
      jvm 1    |             /mnt/store/bamboo/Bamboo/bin/../lib/libwrapper.so
      jvm 1    |           Please verify that the file is readable by the current user
      jvm 1    |           and that the file has not been corrupted in any way.
      jvm 1    |           One common cause of this problem is running a 32-bit version
      jvm 1    |           of the Wrapper with a 64-bit version of Java, or vica versa.
      jvm 1    |           The bit depth of this JVM could not be determined.
      jvm 1    |           Reported cause:
      jvm 1    |             libwrapper: ../lib/libwrapper.so: wrong ELF class: ELFCLASS32
      jvm 1    |           System signals will not be handled correctly.
      jvm 1    | 
      jvm 1    | 2007-02-12 16:11:58,435 INFO [WrapperSimpleAppMain] [HttpServer] Version Jetty/Mort Bay Consulting, Pty. Ltd.
      jvm 1    | 2007-02-12 16:11:58,492 INFO [WrapperSimpleAppMain] [Credential] Checking Resource aliases
      jvm 1    | 2007-02-12 16:11:59,694 WARN [WrapperSimpleAppMain] [WebApplicationContext] Configuration error on ../webapp
      jvm 1    | javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial
      jvm 1    |    at javax.naming.spi.NamingManager.getInitialContext(java.util.Hashtable) (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at javax.naming.InitialContext.getDefaultInitCtx() (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at javax.naming.InitialContext.getURLOrDefaultInitCtx(java.lang.String) (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at javax.naming.InitialContext.lookup(java.lang.String) (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at org.mortbay.jetty.plus.PlusWebAppContext.initialize() (Unknown Source)
      jvm 1    |    at org.mortbay.jetty.servlet.WebApplicationContext.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.jetty.plus.PlusWebAppContext.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.util.Container.start() (Unknown Source)
      jvm 1    |    at org.mortbay.http.HttpServer.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.jetty.plus.Server.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.util.Container.start() (Unknown Source)
      jvm 1    |    at com.atlassian.bamboo.server.Server.main(java.lang.String[]) (Unknown Source)
      jvm 1    |    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at org.tanukisoftware.wrapper.WrapperSimpleApp.run() (Unknown Source)
      jvm 1    |    at java.lang.Thread.run() (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    | 
      jvm 1    | 2007-02-12 16:11:59,763 INFO [WrapperSimpleAppMain] [SocketListener] Started SocketListener on 0.0.0.0:8085
      jvm 1    | 
      jvm 1    | WrapperSimpleApp: Encountered an error running main: java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
      jvm 1    | java.lang.RuntimeException: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
      jvm 1    |    at com.atlassian.bamboo.server.Server.main(java.lang.String[]) (Unknown Source)
      jvm 1    |    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    |    at org.tanukisoftware.wrapper.WrapperSimpleApp.run() (Unknown Source)
      jvm 1    |    at java.lang.Thread.run() (/usr/lib64/libgcj.so.6.0.0)
      jvm 1    | Caused by: org.mortbay.util.MultiException[javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]
      jvm 1    |    at org.mortbay.http.HttpServer.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.jetty.plus.Server.doStart() (Unknown Source)
      jvm 1    |    at org.mortbay.util.Container.start() (Unknown Source)
      jvm 1    |    at com.atlassian.bamboo.server.Server.main(java.lang.String[]) (Unknown Source)
      jvm 1    |    ...3 more
      wrapper  | <-- Wrapper Stopped
      

      This machine is 64-bit fedora core 4:

      [arohner@zeus Bamboo]$ uname -a
      Linux zeus.commstor.crossroads.com 2.6.15-1.1831_FC4smp #1 SMP Tue Feb 7 13:51:52 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
      

      libwrapper, the library Bamboo attempts to load, is a 32 bit library:

      [arohner@zeus Bamboo]$ file lib/libwrapper.so 
      lib/libwrapper.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
      

      and my java executable:

      [arohner@zeus Bamboo]$ file /usr/bin/java
      /usr/bin/java: symbolic link to `/etc/alternatives/java'
      [arohner@zeus Bamboo]$ file /etc/alternatives/ja
      /etc/alternatives/ja: ERROR: cannot open `/etc/alternatives/ja' (No such file or directory)
      [arohner@zeus Bamboo]$ file /etc/alternatives/java
      /etc/alternatives/java: symbolic link to `/usr/lib/jvm/jre-1.4.2-gcj/bin/java'
      [arohner@zeus Bamboo]$ file /usr/lib/jvm/jre-1.4.2-gcj/bin/java
      /usr/lib/jvm/jre-1.4.2-gcj/bin/java: symbolic link to `/usr/bin/gij'
      [arohner@zeus Bamboo]$ file /usr/bin/gij
      /usr/bin/gij: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
      

          Form Name

            [BAM-851] Bamboo cannot run on 64-bit linux machines

            Here is the path info:

            C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Dell\SysMgt\RAC4;C:\Program Files (x86)\Dell\SysMgt\oma\bin

            java -version

            java version "1.6.0_20"
            Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
            Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

            I am also running Fisheye and Crucible on this server.

            Java home is C:\Java\jdk1.6.0_20

            Baboo Log entries:

            STATUS | wrapper | 2010/10/28 19:09:50 | --> Wrapper Started as Console
            STATUS | wrapper | 2010/10/28 19:09:50 | Launching a JVM...
            FATAL | wrapper | 2010/10/28 19:09:50 | Unable to execute Java command. The system cannot find the file specified. (0x2)
            FATAL | wrapper | 2010/10/28 19:09:50 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="b2hMpKDS9EOPzEzx" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=840 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp /
            FATAL | wrapper | 2010/10/28 19:09:50 | Critical error: wait for JVM process failed
            STATUS | wrapper | 2010/10/28 19:10:01 | --> Wrapper Started as Console
            STATUS | wrapper | 2010/10/28 19:10:01 | Launching a JVM...
            FATAL | wrapper | 2010/10/28 19:10:01 | Unable to execute Java command. The system cannot find the file specified. (0x2)
            FATAL | wrapper | 2010/10/28 19:10:01 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="beTFeWGd2mXmWuzD" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2940 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp /
            FATAL | wrapper | 2010/10/28 19:10:01 | Critical error: wait for JVM process failed
            STATUS | wrapper | 2010/10/28 19:10:32 | --> Wrapper Started as Console
            STATUS | wrapper | 2010/10/28 19:10:32 | Launching a JVM...
            FATAL | wrapper | 2010/10/28 19:10:32 | Unable to execute Java command. The system cannot find the file specified. (0x2)
            FATAL | wrapper | 2010/10/28 19:10:32 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="yFCV2ATRSP6WnMpC" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2676 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp /
            FATAL | wrapper | 2010/10/28 19:10:32 | Critical error: wait for JVM process failed

            Francis Lau added a comment - Here is the path info: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Dell\SysMgt\RAC4;C:\Program Files (x86)\Dell\SysMgt\oma\bin java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode) I am also running Fisheye and Crucible on this server. Java home is C:\Java\jdk1.6.0_20 Baboo Log entries: STATUS | wrapper | 2010/10/28 19:09:50 | --> Wrapper Started as Console STATUS | wrapper | 2010/10/28 19:09:50 | Launching a JVM... FATAL | wrapper | 2010/10/28 19:09:50 | Unable to execute Java command. The system cannot find the file specified. (0x2) FATAL | wrapper | 2010/10/28 19:09:50 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="b2hMpKDS9EOPzEzx" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=840 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp / FATAL | wrapper | 2010/10/28 19:09:50 | Critical error: wait for JVM process failed STATUS | wrapper | 2010/10/28 19:10:01 | --> Wrapper Started as Console STATUS | wrapper | 2010/10/28 19:10:01 | Launching a JVM... FATAL | wrapper | 2010/10/28 19:10:01 | Unable to execute Java command. The system cannot find the file specified. (0x2) FATAL | wrapper | 2010/10/28 19:10:01 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="beTFeWGd2mXmWuzD" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2940 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp / FATAL | wrapper | 2010/10/28 19:10:01 | Critical error: wait for JVM process failed STATUS | wrapper | 2010/10/28 19:10:32 | --> Wrapper Started as Console STATUS | wrapper | 2010/10/28 19:10:32 | Launching a JVM... FATAL | wrapper | 2010/10/28 19:10:32 | Unable to execute Java command. The system cannot find the file specified. (0x2) FATAL | wrapper | 2010/10/28 19:10:32 | "java" -Dorg.mortbay.xml.XmlParser.NotValidating=true -XX:MaxPermSize=256m -Djava.awt.headless=true -Xms256m -Xmx512m -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib;../webapp/WEB-INF/classes;../webapp/WEB-INF/lib/commons-lang-2.4.jar;../webapp/WEB-INF/lib/servlet-api-2.5-20081211.jar;../webapp/WEB-INF/lib/servlet-api-2.5.jar;../webapp/WEB-INF/lib/jetty-6.1.15.jar;../webapp/WEB-INF/lib/jetty-management-6.1.15.jar;../webapp/WEB-INF/lib/jetty-naming-6.1.15.jar;../webapp/WEB-INF/lib/jetty-plus-6.1.15.jar;../webapp/WEB-INF/lib/jetty-util-6.1.15.jar;../webapp/WEB-INF/lib/mail-1.4.1.jar" -Dwrapper.key="yFCV2ATRSP6WnMpC" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2676 -Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp com.atlassian.bamboo.server.Server 8085 ../webapp / FATAL | wrapper | 2010/10/28 19:10:32 | Critical error: wait for JVM process failed

            edwin added a comment -

            Thanks Allen,

            In this case, I'll mark this one as resolved and track the new issue.

            Cheers,
            Edwin

            edwin added a comment - Thanks Allen, In this case, I'll mark this one as resolved and track the new issue. Cheers, Edwin

            Edwin, your patch fixed the wrapper start up issue.

            I'm getting a different issue on startup now, which looks to be the same as Ben Walding's comment above. That seems like a different bug, so I'll file a separate defect for it.

            Thanks,
            Allen

            Allen Rohner added a comment - Edwin, your patch fixed the wrapper start up issue. I'm getting a different issue on startup now, which looks to be the same as Ben Walding's comment above. That seems like a different bug, so I'll file a separate defect for it. Thanks, Allen

            edwin added a comment -

            Patch for 64 bit Linux platform

            edwin added a comment - Patch for 64 bit Linux platform

            edwin added a comment -

            Allen,

            It looks like this issue is caused by a 32 bit of the wrapper executable being shipped with Bamboo rather than the 64bit version.

            I have attached a zip which should patch up the problem for you installation.

            To apply the patch, you need to replace all files under the following folders with the ones found inside the attached patch:

            {your_bamboo_installation}/lib/{your_bamboo_installation}

            /bin/

            Please let me know if this resolves the issue.

            Regards,
            Edwin

            edwin added a comment - Allen, It looks like this issue is caused by a 32 bit of the wrapper executable being shipped with Bamboo rather than the 64bit version. I have attached a zip which should patch up the problem for you installation. To apply the patch, you need to replace all files under the following folders with the ones found inside the attached patch: {your_bamboo_installation}/lib/{your_bamboo_installation} /bin/ Please let me know if this resolves the issue. Regards, Edwin

            I've had the same error - javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial]

            It's "caused" by using that GNU Java thing. Use a Sun Java and the problem might go away.

            Ben Walding added a comment - I've had the same error - javax.naming.NoInitialContextException: Can't find property: java.naming.factory.initial] It's "caused" by using that GNU Java thing. Use a Sun Java and the problem might go away.

              edwin@atlassian.com edwin
              b123315b970f Allen Rohner
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified