Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Dedicated Server

Dedicated Server Discuss technical issues related to hosting your own servers.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2013, 07:34 AM
umo umo is offline
Junior Member
 
Join Date: Dec 2013
Posts: 5
Default Linux installation woes

Hi everybody. I recently tried installing the linux server on my VPS account (tried Debian 7.1 and Ubuntu 12.04) and I am getting the same error message:

root@cloud:~/altitude# ./altitude.sh -c
Unpacking JRE ...
Starting Installer ...
./altitude.sh: 431: ./altitude.sh: /root/altitude/altitude.sh.3324.dir/jre/bin/java: not found

Just to confirm, I've downloaded the latest linux server (MD5sum show: b76c07a6a36aaaeb58531d2c4f6e1a07 altitude.sh)

When I watched the file system while it was attempting to install, I did see some temporary directories get created.

I'll post the output of sh -x altitude.sh -c in the next thread.
Reply With Quote
  #2  
Old 12-08-2013, 07:35 AM
umo umo is offline
Junior Member
 
Join Date: Dec 2013
Posts: 5
Default

Code:
root@cloud:~/altitude# sh -x altitude.sh -c
+ pwd
+ old_pwd=/root/altitude
+ basename altitude.sh
+ progname=altitude.sh
+ dirname altitude.sh
+ linkdir=.
+ cd .
+ prg=altitude.sh
+ [ -h altitude.sh ]
+ dirname altitude.sh
+ prg_dir=.
+ basename altitude.sh
+ progname=altitude.sh
+ cd .
+ pwd
+ prg_dir=/root/altitude
+ app_home=.
+ cd .
+ pwd
+ app_home=/root/altitude
+ bundled_jre_home=/root/altitude/jre
+ [ __i4j_lang_restart = -c ]
+ cd /root/altitude/.
+ gunzip -V
+ [ 0 -ne 0 ]
+ [ -d  ]
+ sfx_dir_name=altitude.sh.3445.dir
+ mkdir altitude.sh.3445.dir
+ [ ! -d altitude.sh.3445.dir ]
+ cd altitude.sh.3445.dir
+ pwd
+ sfx_dir_name=/root/altitude/altitude.sh.3445.dir
+ trap cd "$old_pwd"; rm -R -f "$sfx_dir_name"; exit 1 HUP INT QUIT TERM
+ tail -c 53709211 /root/altitude/altitude.sh
+ [ 0 -ne 0 ]
+ gunzip sfx_archive.tar.gz
+ [ 0 -ne 0 ]
+ tar xf sfx_archive.tar
+ [ 0 -ne 0 ]
+ [ ! __i4j_lang_restart = -c ]
+ [ -f /root/altitude/jre.tar.gz ]
+ [ -f jre.tar.gz ]
+ echo Unpacking JRE ...
Unpacking JRE ...
+ gunzip jre.tar.gz
+ mkdir jre
+ cd jre
+ tar xf ../jre.tar
+ pwd
+ app_java_home=/root/altitude/altitude.sh.3445.dir/jre
+ bundled_jre_home=/root/altitude/altitude.sh.3445.dir/jre
+ cd ..
+ run_unpack200 /root/altitude/altitude.sh.3445.dir/jre
+ [ -f /root/altitude/altitude.sh.3445.dir/jre/lib/rt.jar.pack ]
+ run_unpack200 /root/altitude/altitude.sh.3445.dir/jre/jre
+ [ -f /root/altitude/altitude.sh.3445.dir/jre/jre/lib/rt.jar.pack ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ [ -z /root/altitude/altitude.sh.3445.dir/jre ]
+ compiz_workaround
+ [  != 0 ]
+ return
+ i4j_classpath=i4jruntime.jar:user.jar
+ local_classpath=i4jruntime.jar:user.jar
+ vmoptions_val=
+ read_vmoptions /root/altitude/altitude.sh.vmoptions
+ eval echo /root/altitude/altitude.sh.vmoptions
+ echo /root/altitude/altitude.sh.vmoptions
+ vmoptions_file=/root/altitude/altitude.sh.vmoptions
+ [ ! -r /root/altitude/altitude.sh.vmoptions ]
+ vmoptions_file=/root/altitude//root/altitude/altitude.sh.vmoptions
+ [ -r /root/altitude//root/altitude/altitude.sh.vmoptions ]
+ INSTALL4J_ADD_VM_PARAMS=
+ [ W = W ]
+ vmov_1=-Di4j.vmov=true
+ [ W = W ]
+ vmov_2=-Di4j.vmov=true
+ [ W = W ]
+ vmov_3=-Di4j.vmov=true
+ [ W = W ]
+ vmov_4=-Di4j.vmov=true
+ [ W = W ]
+ vmov_5=-Di4j.vmov=true
+ echo Starting Installer ...
Starting Installer ...
+ /root/altitude/altitude.sh.3445.dir/jre/bin/java -Dinstall4j.jvmDir=/root/altitude/altitude.sh.3445.dir/jre -Dexe4j.moduleName=/root/altitude/altitude.sh -Dexe4j.totalDataLength=78423419 -Dinstall4j.cwd=/root/altitude -Djava.ext.dirs=/root/altitude/altitude.sh.3445.dir/jre/lib/ext -Dsun.java2d.noddraw=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -classpath i4jruntime.jar:user.jar com.install4j.runtime.Launcher launch com.install4j.runtime.installer.Installer false false   false true false  true true 0 0  20 20 Arial 0,0,0 8 500 version 1.1 20 40 Arial 0,0,0 8 500 -1 -c
altitude.sh: 431: altitude.sh: /root/altitude/altitude.sh.3445.dir/jre/bin/java: not found
+ returnCode=127
+ cd /root/altitude
+ [ ! W  = W yes ]
+ rm -R -f /root/altitude/altitude.sh.3445.dir
+ exit 127
Reply With Quote
  #3  
Old 12-09-2013, 06:32 PM
Karl Karl is offline
Administrator
 
Join Date: May 2008
Posts: 1,206
Default

Altitude ships with a 64-bit JVM from Oracle. If you are running a 32-bit linux version you need to edit the altitude.sh file and tell it where a JVM is located. At the top of the altitude.sh file you will find:

# Uncomment the following line to override the JVM search sequence
# INSTALL4J_JAVA_HOME_OVERRIDE=
# Uncomment the following line to add additional VM parameters
# INSTALL4J_ADD_VM_PARAMS=

On ubuntu you can install the open jdk by doing:
Code:
sudo apt-get install openjdk-6-jdk
You then set INSTALL4J_JAVA_HOME_OVERRIDE to something like the following:

/usr/lib/jvm/java-6-openjdk-amd64/jre/
or
/usr/lib/jvm/java-6-openjdk-i386/jre/

To see what JVMs you have installed and switch to the default, execute the command:
Code:
sudo update-alternatives --config java
(hit ctrl+c to cancel out if you dont want to change or just select what is already selected).
Reply With Quote
  #4  
Old 12-09-2013, 10:49 PM
umo umo is offline
Junior Member
 
Join Date: Dec 2013
Posts: 5
Default

Thanks Karl-- For what it's worth, I'm running 64 bit version of Debian as well as 64bit Ubuntu.

I can try the 32bit open JDK and report back, but I'm surprised I that the current error is not indicative of it being a 32/64 bit jvm issue. The error message almost looks like a script issue where it is starting the server with wrong paths or something.
Reply With Quote
  #5  
Old 12-09-2013, 11:22 PM
umo umo is offline
Junior Member
 
Join Date: Dec 2013
Posts: 5
Default

I tried installing openJDK and made the config changes to the altitude.sh-- when I execute the altitude.sh, it gives me this error:

Code:
gzip: sfx_archive.tar.gz: not in gzip format

I am sorry, but the installer file seems to be corrupted.
If you downloaded that file please try it again. If you
transfer that file with ftp please make sure that you are
using binary mode.
I don't *think* vi or pico add any extra characters (CR/LF)... I tried both editors on the original altitude.sh file and received the same error.
Reply With Quote
  #6  
Old 12-10-2013, 01:41 AM
VAN1SH1NG VAN1SH1NG is offline
Senior Member
 
Join Date: May 2011
Posts: 929
Default

I have never had any issues installing on 64bit Ubuntu 12.04. Have done it at least 10-15 times on different VPSs

Idk what might be wrong but here is what I do every time I set up a fresh VPS for Altitude server:

connect ssh (root)
apt-get update
apt-get upgrade
sftp transfer altitude.sh to /usr/local/
apt-get install ia32-libs (gets the required 32bit libraries, only needed if 64bit OS)
chmod +x altitude.sh
./altitude.sh -c (defaults, except no desktop icon)
install complete, transfer map files and launcher_config.xml
cd /usr/local/altitude
nohup ./server_launcher > /dev/null 2>&1 &
Altitude server up
Reply With Quote
  #7  
Old 12-10-2013, 05:05 AM
umo umo is offline
Junior Member
 
Join Date: Dec 2013
Posts: 5
Default

Wow, got it to install -- it needed the ia32-libs !!!

Note, I was not able to install the ia32-libs on debian, but it worked fine on ubuntu 12.04.

Thanks so much! Hopefully the documentation or installer gets updated to check for this dependency.
Reply With Quote
  #8  
Old 03-12-2014, 03:58 PM
LewisH LewisH is offline
Senior Member
 
Join Date: Mar 2012
Location: Earth
Posts: 215
Default

Quick note:

Since this post, ia32-libs has been obsoleted, lib32bz2-1.0 is the package you need now ^^
Reply With Quote
  #9  
Old 04-29-2014, 05:44 PM
runeh runeh is offline
Junior Member
 
Join Date: Apr 2014
Posts: 1
Default

Thanks for that! On a headless ubuntu 14.04 I also had to install lib32gcc1. Without it the installer would complain about requiring an X11 server.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with headless linux installation blarg Dedicated Server 9 12-04-2013 07:55 AM
Map making in Linux 19 cm Map Making 0 05-19-2013 05:53 PM
New Installation problem WhiteVandal Tech Support 1 01-18-2010 07:35 PM
How about some Linux commands? Triped Suggestions 2 12-30-2009 03:31 PM
installation problems goldenkrnboi Tech Support 7 04-10-2009 08:47 PM


All times are GMT. The time now is 04:58 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC