Page 1 of 1

6.3 community install issues on OMV nas

PostPosted:Wed Sep 03, 2014 2:13 pm
by gwaitsi
hi all, i'm a beginner here with both openkm and linux.

i'm trying to install openkm 6.3 community on my OpenMediaVault box.
Java seems to have been successfully installed as i am returned Java Version 1.7.0_67 when using java -version

I downloaded the bundled and executed the following commands;
unzip openkm-6.3.0-community-tomcat-bundle.zip
mv tomcat /usr/local/openkm

if i execute /usr/local/openkm/bin/catalina.sh or /usr/local/openkm/bin/startup.sh i get the following error;
Cannot find /usr/local/apache-tomcat-7.0.55/bin/bin/setclasspath.sh

how/why is it looking in the wrong location?

what else do i have to do, to get it to use the MySQL install i have on the box? i have created the db and user already

Re: 6.3 community install issues on OMV nas

PostPosted:Wed Sep 03, 2014 3:01 pm
by gwaitsi
ok, i made some progress by resetting the CATALINA_HOME and modified the tomcat files for mysql.

when i run catalina.sh it populated the mysql database with the structure.

but i now get a blank screen when i try to connect to the http://nas:8080

when i start with "catalina.sh run" i get the following error

http-bio-0.0.0.0-8080-exec-2 INFO org.apache.coyote.http11.http11Processor - Error parsing HTTP request header

any help please....

Re: 6.3 community install issues on OMV nas

PostPosted:Fri Sep 05, 2014 6:44 am
by jllort
You should not change anything, revert file changes.
Ensure if you execute "java -version" goes right
To execute start openkm should use "./catalina.sh run" or "catalina.sh start" not the command you've used. I suggest take a look here if you want to configure as service http://wiki.openkm.com/index.php/Config ... at_service

Re: 6.3 community install issues on OMV nas

PostPosted:Fri Sep 05, 2014 4:07 pm
by gwaitsi
you took it too literal jilort. Of course the command i ran was "./catalina.sh run"

I have managed to get to the root of the problem.
OpenMediaVault 5.x has the tomcat APR libtcnative-1 version 1.1.20.

When i try to run, i am recieving the error that the dependency for tomcat APR is version 1.1.29
It seems that i am not able to upgrade this in OMV distribution of debian because of the other dependencies in the short term.

I installed OpenKM on my Ubuntu 14.04 client, which meets dependency requirements however, i would like to switch the database to using mysql on the OMV box.

Can you please tell me, how i can change to a remove mysql, rather than the local db.

Thanks

Re: 6.3 community install issues on OMV nas

PostPosted:Sat Sep 06, 2014 9:00 am
by jllort
Take a look here about MySQL configuration http://wiki.openkm.com/index.php/MySQL_-_OpenKM_6.2

About remote server, it's easy. Where it says localhost you must set your MySQL server IP. Take in mind is not enought create the user ( in our documentation is shown how to set grants for localhost connection but you'll want remote connection be able to connect MySQL server. That means this command GRANT ALL ON okmdb.* TO openkm@localhost WITH GRANT OPTION; should be change to get access from external ip to database. I can give you some ideas about it http://stackoverflow.com/questions/8348 ... ip-address

Re: 6.3 community install issues on OMV nas

PostPosted:Mon Sep 08, 2014 8:17 pm
by gwaitsi
just a quick gracias jllort for the help.
I've got mysql working on the nas, and openkm on the ubuntu desktop.

now i just have to figure out the best way to structure for my intended purpose.......

Re: 6.3 community install issues on OMV nas

PostPosted:Wed Sep 10, 2014 6:39 pm
by jllort
Take in mind, the most important thing is the backup, ensure you're doing it right. I suggest the bottom of this page http://wiki.openkm.com/index.php/Backup_scripts for example rdiff-backup