Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-10133

Bamboo cannot run on 64-bit linux machines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Medium
    • None
    • None
    • None
    • None
    • Fedora Core 4, x86 64-bit

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              edwin@atlassian.com edwin
              06ef8487e673 Martin Barrs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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