How to install on ubuntu linux

Post any questions regarding Installing or Upgrading Ebase, including problems starting up the Ebase Xi Server or Designer

Moderators: Jon, Steve, Ian, Dave

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

How to install on ubuntu linux

#1

Postby barrydocks » Thu Jan 23, 2014 7:25 am

Please can someone kindly point me towards a how to install on a linux platform, ideally ubuntu. I have searched the ebase site and can't find anything.
Thanks
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#2

Postby Hovik » Thu Jan 23, 2014 8:33 am

Installing Ebase Xi 4.5 on Linux

Copy the downloaded tar.gz file, e.g. Ebase_4_5_1_20131115.tar.gz, to the folder you want to install Ebase into.

Run command tar -zxvf Ebase_4_5_1_20131115.tar.gz

You should have a new folder called ebaseXi with the software in it.

The readme.txt in the root of ebase tells you how to start the server and the designer.
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#3

Postby barrydocks » Fri Jan 24, 2014 6:00 pm

Thanks but I get this error:

Code: Select all

./catalina.sh: 1: eval: ../../../jre/bin/java: not found
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#4

Postby Hovik » Mon Jan 27, 2014 9:30 am

This is strange. Your startup can't find java.

We ship a jre within the installation file.
I have checked this and I can start my Ebase server with no errors.

Can you please check if you have folder jre at the root of ebasXi, and that this contains a bin folder which contains file java?

If you don't, then the extraction has not worked.
If you have this file. then please try editing start.sh in UfsServer and change the following 2 lines such that they contain the full paths (as opposed to relative paths):

JAVA_HOME='../../../jre'
JAVA_HOME_BIN='../../../jre/bin'
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#5

Postby barrydocks » Mon Jan 27, 2014 8:43 pm

Thanks for the reply. I can confirm that the jre folder exists and I have changed the file paths as direct but I am still getting a similar error:

Code: Select all

adrian@adrian-VirtualBox:~/Downloads/ebaseXi/UfsServer$ sudo ./start.sh
-Xmx512m -Djava.awt.headless=true -Djava.security.auth.login.config=../../conf/ebaselogin.config -Dmail.mime.charset=ISO-8859-1 -Dderby.system.home=../../DB -Dhttp.nonProxyHosts="localhost|127.0.0.1"
Using CATALINA_BASE:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_HOME:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_TMPDIR: /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/temp
Using JRE_HOME:        /home/adrian/Downloads/ebaseXi/jre
Using CLASSPATH:       /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/bootstrap.jar:/home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/tomcat-juli.jar
# An error report file with more information is saved as:
# /home/ebase/ebase_4.5.1/ebaseXi/UfsServer/tomcat/bin/hs_err_pid3198.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: /home/adrian/Downloads/ebaseXi/jre/bin/java: not found
This file also exists:

Code: Select all

 /home/adrian/Downloads/ebaseXi/jre/bin/java
here:

Code: Select all

adrian@adrian-VirtualBox:~$ ls  /home/adrian/Downloads/ebaseXi/jre/bin
ControlPanel  java_vm  jcontrol  orbd     policytool  rmiregistry  tnameserv
java          javaws   keytool   pack200  rmid        servertool   unpack200
Here's the content of start.sh

Code: Select all

#!/bin/sh
JAVA_HOME='/home/adrian/Downloads/ebaseXi/jre'
JAVA_HOME_BIN='/home/adrian/Downloads/ebaseXi/jre/bin'
JAVA_OPTS='-Xmx512m -Djava.awt.headless=true -Djava.security.auth.login.config=../../conf/ebaselogin.config -Dmail.mime.charset=ISO-8859-1 -Dderby.system.home=../../DB -Dhttp.nonProxyHosts="localhost|127.0.0.1"'
CATALINA_HOME='../tomcat'
DISPLAY=127.0.0.1
export JAVA_HOME JAVA_HOME_BIN JAVA_OPTS JAVA_TRANSPORT JAVA_ADDRESS CATALINAHOME DISPLAY
echo $JAVA_OPTS

cd tomcat/bin
./startup.sh
cd ../logs
tail -f catalina.out
cd ../../UfsServer
Any other suggestions are welcome
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#6

Postby Hovik » Tue Jan 28, 2014 12:53 pm

I can only reproduce this error if I invalidate my JRE_HOME setting in start.sh.

In that case, I get the error
./catalina.sh: 1: eval: ../../xyz/jre/bin/java: not found

I also notice that in that case, having corrected it, next time I start it I get the same message again, then it finds it and starts the server as I expect.

So the 1st 4 of your your following messages are mis-leading and can be ignored.

./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
./catalina.sh: 1: eval: /home/adrian/Downloads/ebaseXi/jre/bin/java: not found


Can you please try the following in a new terminal window:

type cd, then copy and paste /home/adrian/...../jre/bin from your start.sh in front of cd and see if this works.

Also do an ls /home/adrian/...../jre/bin/java

If both these work (I expect they will), is there any way you can give me access to your machine? e.g. Teamviewer to your Pc, then putty or similar tool to connect to the unix box?

If so, you can email any connection details to support@ebasetech.com
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#7

Postby barrydocks » Tue Jan 28, 2014 7:13 pm

Hovik wrote:Also do an ls /home/adrian/...../jre/bin/java
I have already posted this above
Hovik wrote: Can you please try the following in a new terminal window:

type cd, then copy and paste /home/adrian/...../jre/bin from your start.sh in front of cd and see if this works.
so you want me to run start.sh from inside the ../jre/bin directory?

I am running a 64bit version of ubuntu 12.04 does this make a difference as I have read in another post that java and tomcat bundled with ebase are 32bit? Also the machine is virtual appliance in VirtualBox?

I can probably install teamviewer on the linux box if needed, although I am thinking about giving up.
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#8

Postby barrydocks » Wed Jan 29, 2014 8:20 am

barrydocks wrote:
Hovik wrote:Also do an ls /home/adrian/...../jre/bin/java
I have already posted this above
Hovik wrote: Can you please try the following in a new terminal window:

type cd, then copy and paste /home/adrian/...../jre/bin from your start.sh in front of cd and see if this works.
Yes it works

I am running a 64bit version of ubuntu 12.04 does this make a difference as I have read in another post that java and tomcat bundled with Ebase are 32bit? Also the machine is virtual appliance in VirtualBox?

I can probably install teamviewer on the linux box if needed, although I am thinking about giving up.
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#9

Postby Hovik » Wed Jan 29, 2014 9:48 am

You are probably right. Windows version of Ebase definitely comes with 32-bit Tomcat and Java. I am in the process of checking if this is the case with the Linux version.
I didn't know you were running a 64-bit linux. I tried it on a 32-bit machine and it worked. I am about to install Ebase on 64-bit linux and iron out any issues. Will let you know the outcome as soon as I know.
Last edited by Hovik on Wed Jan 29, 2014 1:15 pm, edited 1 time in total.
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#10

Postby Hovik » Wed Jan 29, 2014 12:13 pm

I confirm that the linux shipment of ebaseXi (Ebase_4_5_1_20131115.tar.gz) comes with a 32-bit jre.
But this works on a 64-bit Ubuntu 10.04 machine. It starts with no errors.

Can you check the size of your Ebase_4_5_1_20131115.tar.gz. It should be 218,683,100 bytes.
Did you extract this using:

Code: Select all

tar -zxvf Ebase_4_5_1_20131115.tar.gz
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#11

Postby barrydocks » Wed Jan 29, 2014 4:04 pm

OK, Vanilla install of ubuntu 12.04 64bit on VirtualBox and the same problem:

Code: Select all

adrian@adrian-VirtualBox:~/Downloads/ebaseXi/UfsServer$ ./start.sh
-Xmx512m -Djava.awt.headless=true -Djava.security.auth.login.config=../../conf/ebaselogin.config -Dmail.mime.charset=ISO-8859-1 -Dderby.system.home=../../DB -Dhttp.nonProxyHosts="localhost|127.0.0.1"
Using CATALINA_BASE:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_HOME:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_TMPDIR: /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/temp
Using JRE_HOME:        ../../../jre
Using CLASSPATH:       /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/bootstrap.jar:/home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/tomcat-juli.jar
# Problematic frame:
# C  [+0x422]  __kernel_vsyscall+0xe
#
# An error report file with more information is saved as:
# /home/ebase/ebase_4.5.1/ebaseXi/UfsServer/tomcat/bin/hs_err_pid3198.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
^C
adrian@adrian-VirtualBox:~/Downloads/ebaseXi/UfsServer$ 
Hovik wrote:Can you check the size of your Ebase_4_5_1_20131115.tar.gz. It should be 218,683,100 bytes.
OK

Code: Select all

adrian@adrian-VirtualBox:~/Downloads$ ls -l Ebase_4_5_1_20131115.tar.gz
-rw------- 1 adrian adrian 218683100 Jan 29 16:40 Ebase_4_5_1_20131115.tar.gz
Did you extract this using:

Code: Select all

tar -zxvf Ebase_4_5_1_20131115.tar.gz
yes
0 x

barrydocks
Ebase User
Posts: 8
Joined: Wed Jan 22, 2014 9:30 am

#12

Postby barrydocks » Wed Jan 29, 2014 6:24 pm

So it doesn't work in ubuntu 10.04 either:

Code: Select all

adrian@adrian-VirtualBox:~/Downloads/ebaseXi/UfsServer$ ./start.sh
-Xmx512m -Djava.awt.headless=true -Djava.security.auth.login.config=../../conf/ebaselogin.config -Dmail.mime.charset=ISO-8859-1 -Dderby.system.home=../../DB -Dhttp.nonProxyHosts="localhost|127.0.0.1"
Using CATALINA_BASE:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_HOME:   /home/adrian/Downloads/ebaseXi/UfsServer/tomcat
Using CATALINA_TMPDIR: /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/temp
Using JRE_HOME:        ../../../jre
Using CLASSPATH:       /home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/bootstrap.jar:/home/adrian/Downloads/ebaseXi/UfsServer/tomcat/bin/tomcat-juli.jar
# Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [+0x422]  __kernel_vsyscall+0xe
#
# An error report file with more information is saved as:
# /home/ebase/ebase_4.5.1/ebaseXi/UfsServer/tomcat/bin/hs_err_pid3198.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
./catalina.sh: 1: eval: ../../../jre/bin/java: not found
I am giving up, please e-mail me when you have fixed this
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#13

Postby Hovik » Thu Jan 30, 2014 8:20 am

Please change JAVA_HOME to the full path again. If get the same error, ie

./catalina.sh: 1: eval: /home/adrian/Downloads/ebaseXi/jre/bin/java: not found

then, is it possible for you download a 64-bit linux jre and install it anywhere on this machine, then change start.sh to point to this new JRE?

(I assume as it's vanilla ubuntu you don't already have JRE installed? type

Code: Select all

java -version
to confirm)
0 x


Who is online

Users browsing this forum: No registered users and 8 guests