Project

General

Profile

Bug #486

Adito Does not start on a 64 bit system

Added by anzenketh over 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/23/2010
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Adito Does not start on a 64 bit system.

Get a The connection has timed out

History

#1 Updated by cpg over 11 years ago

  • Assignee set to bigfoot65

shucks - i think i had run into this in the past!

#2 Updated by bigfoot65 over 11 years ago

There are 2 potential things to examine. One, did the user give the app enough time to start. Since it's a java app using Tomcat, it takes a little longer to run. Secondly, it could be the file issue we had in the past. The wiki (http://wiki.amahi.org/index.php/Adito) lists a depend to install that could fix it. This seems to only occur on select 64-bit systems.

Once those steps are done, follow the wiki to restart Adito. That should clear up any issues. If not, then I will have to examine closer. I need more info, i.e. log file, etc to help find the culprit.

#3 Updated by gboudreau over 11 years ago

[gb@hda adito]$ pwd /var/hda/web-apps/adito [gb@hda adito]$ ls -la html/ server/ html/: total 8 drwxr-xr-x 2 apache users 4096 2010-03-24 07:04 . drwxr-xr-x 5 apache users 4096 2010-03-24 07:04 .. server/: total 64 drwxrwxrwx 11 apache users 4096 2010-03-24 07:04 . drwxr-xr-x 5 apache users 4096 2010-03-24 07:04 .. -rwxr-xr-x 1 apache users 125 2010-03-24 07:04 adito.sh -rwxrwxrwx 1 apache users 12514 2008-12-19 12:03 build.xml drwxrwxrwx 7 apache users 4096 2010-03-24 07:04 conf drwxrwxrwx 2 apache users 4096 2009-06-22 22:06 db drwxrwxrwx 4 apache users 4096 2008-12-19 12:03 install drwxrwxrwx 2 apache users 4096 2010-03-24 07:04 lib drwxrwxrwx 2 apache users 4096 2008-12-19 12:03 logs drwxrwxrwx 2 apache users 4096 2008-12-19 12:03 notes drwxrwxrwx 2 apache users 4096 2008-12-19 12:03 serverlib drwxrwxrwx 2 apache users 4096 2008-12-19 12:03 tmp drwxrwxrwx 8 apache users 4096 2008-12-19 12:03 webapp

Something seems to be missing. I think the install script didn't do all it needed to do.

Looking in amahi-app-installer.log:

[exec] /var/hda/web-apps/adito/server/install/platforms/linux/adito: /var/hda/web-apps/adito/server/install/platforms/linux/x86/wrapper: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[exec] /var/hda/web-apps/adito/server/install/platforms/linux/adito: line 213: /var/hda/web-apps/adito/server/install/platforms/linux/x86/wrapper: Success

That file (x86/wrapper) is indeed a x86 execute that won't work on 64-bit. x86-64/wrapper is what it should use:

[gb@hda adito]$ file /var/hda/web-apps/adito/server/install/platforms/linux/x86/wrapper
/var/hda/web-apps/adito/server/install/platforms/linux/x86/wrapper: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.0.30, not stripped

[gb@hda adito]$ file /var/hda/web-apps/adito/server/install/platforms/linux/x86-64/wrapper
/var/hda/web-apps/adito/server/install/platforms/linux/x86-64/wrapper: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped

Looking in the adito shell script...

...
WRAPPER_CONF="conf/wrapper.conf"
...
WRAPPER_LIBS=$(grep "^wrapper.java.library.path.1=" "${WRAPPER_CONF}"|awk -F= '{ print $2 }')
...
WRAPPER_CMD="${WRAPPER_LIBS}/wrapper"
...
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE
...

And indeed, the conf uses x86:

[gb@hda server]$ grep "^wrapper.java.library.path.1=" conf/wrapper.conf
wrapper.java.library.path.1=install/platforms/linux/x86

That line would need to be replaced before the adito shell script is launched.
I can do it if you give me access to the web-app.

#4 Updated by gboudreau over 11 years ago

conf/wrapper.conf is generated by ant (build.xml) on start.
I now sed the build.xml script on install, to replace x86 with x86-64 in the generated wrapper.conf
I also had to hard-code the full path to the wrapper.conf file in the build.xml file, since adito complained about not finding conf/wrapper.conf on start.

#5 Updated by gboudreau over 11 years ago

  • Assignee changed from bigfoot65 to gboudreau
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

#6 Updated by cpg over 11 years ago

  • Status changed from New to Closed

#7 Updated by gbraad over 10 years ago

  • Status changed from Closed to Resolved

This occurs on platforms that do not have glibc.i686 installed.

There seems to be something wrong with the wrapper executable for x86-64.
Using glibc.i686 you can bootstrap using the x86 wrapper.

Tried on Fedora and CentOS 5.5

#8 Updated by bigfoot65 over 7 years ago

  • Status changed from Resolved to Closed
  • Assignee deleted (gboudreau)

Resolved.

Also available in: Atom