Page 1 of 1
INstallation on Ubuntu Server and java issue
PostPosted:Thu Apr 14, 2016 11:14 am
by malcmail
I installed and tested openKM on a Linux desktop box but now want to run it on a fresh Ubuntu Server box. I started with the installation instructions....
Code: Select allsudo aptitude install sun-java6-bin sun-java6-jdk sun-java6-jre
But this returns no installation candidate. What did I miss?
Thanks in advance.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Thu Apr 14, 2016 1:49 pm
by malcmail
So I found openjdk_7_jre_headless and installed it. Started Catalina and all seemed OK - Tomcat says it started, but when I go to the login page it cannot find it (and yes I used 8080 and OpenKM) Bit confused about what I might have done here.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Sat Apr 16, 2016 10:24 am
by jllort
Which OpenKM version did you installed ? Did you used the openkm linux installer which comes with embeded java or the openkm tomcat bundle what comes into zip ?
We suggest install Oracle Java rather than OopenJDK:
Code: Select allsudo add-apt-repository ppa:webupd7team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Also for understanding whats happening I suggest start openkm from command line
./$TOMCAT_HOME/bin/catalina.sh run ( not close the terminal, you are not starting as service, closing terminal you are closing the application, read with care the log, looking for some error ).
Re: INstallation on Ubuntu Server and java issue
PostPosted:Sun Apr 17, 2016 10:35 am
by malcmail
Thanks. Got past step 1 by changing webupd7 for webupd8.
On starting in the terminal it actually did a lot more this time around. That's one long set of messages to read! First problems look like "The APR based Apache Tomcat Native library which allows optimal performance.....was not found on the java.library.path.
The next one was Failed to initialise end point associated with Protocol Handler.
ANy ideas?
By the way it is the Tomcat bundle running on Ubuntu 14.04 server (headless). If I run "java --version" I get could not create the Java Virtual Machine.
Thanks again for your help.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Tue Apr 19, 2016 8:33 pm
by jllort
"The APR based Apache Tomcat Native library which allows optimal performance" It's only a warning, not the reason why openkm is not starting.
Delete $TOMCAT_HOME/logs/catalina.log file.
Then start application and post here the catalina.log file ( into zip ) and we'll take a look to understanding which is your problem.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Tue Apr 19, 2016 10:06 pm
by malcmail
Thanks for your reply. Attached is the log file. Whatever happens at the end of that output on screen I get back to a prompt, so I am presuming something has not started.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Thu Apr 21, 2016 6:48 am
by jllort
The error is clear:
Code: Select alljava.net.BindException: Address already in use /0.0.0.0:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
You have another tomcat or application what is already using port 8080, that why openkm can not start binding on this port. You have two option, stop the application which is binding 8080 or change tomcat default ports, take a look here
http://wiki.openkm.com/index.php/Severa ... ame_server
Re: INstallation on Ubuntu Server and java issue
PostPosted:Thu Apr 21, 2016 7:05 am
by malcmail
I spotted that too, but no idea what it could be running. It's a fresh install and if I run in nmap I get http-proxy showing on that port. I had presumed it was tomcat. Especially since if I just log to myhost.com:8080 I get the tomcat screen. It only appears to be the OpenKM that causes the issue. Any ideas?
Re: INstallation on Ubuntu Server and java issue
PostPosted:Thu Apr 21, 2016 7:11 am
by malcmail
Went ahead and changed the ports as suggested in your link and I at least have a log in page now. Thanks very much. Now just to get everything up and running

Re: INstallation on Ubuntu Server and java issue
PostPosted:Sat Apr 23, 2016 10:40 am
by jllort
Sure you have some application running in these ports, otherwise you will not getting that error on start up.
Re: INstallation on Ubuntu Server and java issue
PostPosted:Mon Apr 25, 2016 4:29 pm
by malcmail
It's a clean Ubuntu server set up with the LAMP stack. That was all. I changed the ports though for Tomcat and we are all good. Thanks again.