v5.0.1 stalled startup on ubuntu 14.04.3 x64

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

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

v5.0.1 stalled startup on ubuntu 14.04.3 x64

#1

Postby kotinkarwak » Tue Dec 22, 2015 1:11 pm

Running server on digitalocean and getting intermittent start problems.
More often than not, the startup fails. spec of machine is 1GB Ram

Starting up using "service ebase-ufs start" only shows this portion of log

Code: Select all

S T A R T I N G   T H E   E B A S E   S E R V E R


Using CATALINA_BASE:   /home/ebaseXi64/UfsServer/tomcat
Using CATALINA_HOME:   /home/ebaseXi64/UfsServer/tomcat
Using CATALINA_TMPDIR: /home/ebaseXi64/UfsServer/tomcat/temp
Using JRE_HOME:        /home/ebaseXi64/UfsServer/../jre
Using CLASSPATH:       /home/ebaseXi64/UfsServer/tomcat/bin/bootstrap.jar:/home/ebaseXi64/UfsServer/tomcat/bin/tomcat-juli.jar
Tomcat started.
Listening for transport dt_socket at address: 8000
Doesn't proceed to start the server. How to troubleshoot this.
I have looked at the processes running and see the following. Ihave checked to confirm each path mentioned exists and apart from
/home/ebaseXi64/UfsServer/tomcat/endorsed
the rest are ok.

Code: Select all

root      1437     1 17 13:08 pts/1    00:00:10 /home/ebaseXi64/UfsServer/../jre/bin/java -Djava.util.logging.config.file=/home/ebaseXi64/UfsServer/tomcat/co
nf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dxr.util-logging.loggingEnabled=true -Duser.timezone=UCT -Djava.awt.
headless=true -Djava.security.auth.login.config=/home/ebaseXi64/UfsServer/conf/ebaselogin.config -Dmail.mime.charset=ISO-8859-1 -Dderby.system.home=/home/eba
seXi64/UfsServer/DB -Dhttp.nonProxyHosts=localhost|127.0.0.1 -Djava.server=ufs -Dfile.encoding=UTF-8 -server -XX:+CMSClassUnloadingEnabled -Xms1024m -Xmx1024
m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:+DisableExplicitGC -Xdebug -Dnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8000,susp
end=n -Djava.endorsed.dirs=/home/ebaseXi64/UfsServer/tomcat/endorsed -classpath /home/ebaseXi64/UfsServer/tomcat/bin/bootstrap.jar:/home/ebaseXi64/UfsServer/
tomcat/bin/tomcat-juli.jar -Dcatalina.base=/home/ebaseXi64/UfsServer/tomcat -Dcatalina.home=/home/ebaseXi64/UfsServer/tomcat -Djava.io.tmpdir=/home/ebaseXi64
/UfsServer/tomcat/temp org.apache.catalina.startup.Bootstrap start
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Dec 22, 2015 1:35 pm

Check the log files for errors. Your post doesn't actually contain any errors. It could be that the server is starting, but that it's extremely slow. My initial reaction is that 1GB is not that much to contain the operating system, Ebase + database. You may need more memory. You want to avoid swapping at all costs i.e. where the virtual memory exceeds the physical memory. If I'm right, then your server will eventually start, it might just take a long time.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#3

Postby kotinkarwak » Tue Dec 22, 2015 2:06 pm

My luck! Have another machine 1GB, ebase, oracle, VNC running happily, this one only ebase and throws a tantrum :?. Have upped the memory for server and now starts fine.



Spoke too soon. A reboot of box returns us to no start position. oops: :oops:
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#4

Postby kotinkarwak » Tue Dec 22, 2015 4:31 pm

Jon,
When you have time to spare please try the install on DO, I think something is amiss since I have done this on several boxed today and appears the server starts ok only at the initial time during the install process and after that, it becomes unpredictable. 2GB boxes and experiencing similar scenario

File used: EbaseXi_5_0_1-x64.tar.gz
Linux: Ubuntu 14.04.3 x64
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Ian
Ebase Staff
Posts: 26
Joined: Wed Oct 10, 2007 9:40 am
Location: Ebase HQ
Contact:

#5

Postby Ian » Wed Dec 23, 2015 1:40 pm

OK I have been able to reproduce (and fix) this.
I created a new DigitalOcean server with 2GB ram.
Installed Ebase V5 and was able to start and stop it twice before it hung.

After that even rebooting it would not allow me to start the server.


For me the issue was to do with a setting in the <b>java.security file</b>.
This file is located in the shipped <b>jre/security</b> directory.

There is a section that looks like this:

Code: Select all

# In addition, if "file&#58;/dev/random" or "file&#58;/dev/urandom" is
# specified, the "NativePRNG" implementation will be more preferred than
# SHA1PRNG in the Sun provider.
#
securerandom.source=file&#58;/dev/./random
This is what is should look like

Code: Select all

# In addition, if "file&#58;/dev/random" or "file&#58;/dev/urandom" is
# specified, the "NativePRNG" implementation will be more preferred than
# SHA1PRNG in the Sun provider.
#
securerandom.source=file&#58;/dev/./urandom
Notice that the word should have been urandom and not random

Having made this change I can now start and stop the server as many times as I like.

Please let me know if this fixes the issue for you as well.


ian
[/code]
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#6

Postby kotinkarwak » Wed Dec 23, 2015 3:11 pm

Thanks Ian,
Can confirm that my server is now behaving after making the suggested change.
Testing spec is 1GB.

Suggest that the document currently available for install on digitalocean be updated to take into account the versions being deployed as well as a portion for MySQL install alongside oracle.

Let me dash off and try n' break something else :roll:.
Thanks again Ian and Jon.
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Ian
Ebase Staff
Posts: 26
Joined: Wed Oct 10, 2007 9:40 am
Location: Ebase HQ
Contact:

#7

Postby Ian » Wed Dec 23, 2015 4:35 pm

I have already started to update the DigitalOcean document to take into account what we have found today.
I will also add in a section regarding Ebase versions and on how to install MySql and get it working with Ebase.

Email me your details (ian.bramford@ebasetech.com) and I will send you a copy once it is complete.


Ian
0 x


Who is online

Users browsing this forum: No registered users and 57 guests