Page 1 of 1

Login Error in OpenKM 5.1.8

PostPosted:Fri Sep 25, 2015 1:36 pm
by hariharan.gopal
Hi,

I first installed Ubuntu server 15.04 and the created a new user named openkm without sudo permission.

Then I installed OpenKM 5.1.8 in /home/openkm with own and group as openkm. It worked fine.

Now I created a new user named as "test".
I stoped OpenKM using sudo /etc/init.t/jboss stop
Then I moved jboss-4.2.3.GA to /home/test and also chown and chgrp to test. I also edited jboss.sh which is in /etc/init.d/
Then I restarted the machine. I am able to get the Login page. After entering the basic username and password okmAdmin ..... admin I got the below error.
Code: Select all
"com.openkm.core.RepositoryException: Configuration file could not be read.: /home/openkm/jboss-4.2.3.GA/repository.xml"
So could you please help me to solve the issue.

Below is the $ cat /etc/init.d/jboss
Code: Select all
#! /bin/sh
# /etc/init.d/jbossokm: Start and stop JBoss Application Service

ECHO=/bin/echo
TEST=/usr/bin/test
JBOSS_START_SCRIPT=/home/test/jboss-4.2.3.GA/bin/run.sh
JBOSS_STOP_SCRIPT=/home/test/jboss-4.2.3.GA/bin/shutdown.sh

$TEST -x $JBOSS_START_SCRIPT || exit 0
$TEST -x $JBOSS_STOP_SCRIPT || exit 0

start() (
   $ECHO -n "Starting JBoss"
   su -c "$JBOSS_START_SCRIPT -b 0.0.0.0 > /dev/null 2> /dev/null &"
   $ECHO "."
   )

stop () (
   $ECHO -n "Stopping JBoss"
   su -c "$JBOSS_STOP_SCRIPT -S > /dev/null &"
   $ECHO "."
   )

case "$1" in
      start )
            start
            ;;
      stop )
            stop
            ;;
      restart )
            stop
            sleep 30
            start
            ;;
      * )
            $ECHO "Usage: jbossokm {start|stop|restart}"
            exit 1
esac

exit 0

Thanks in Advance.

Re: Login Error in OpenKM 5.1.8

PostPosted:Sun Sep 27, 2015 4:53 pm
by jllort
Why are you installing this old version, and you're not installing the lastest 6.3.0 ?
You can download from here http://openkm.com/en/download-english.html

Re: Login Error in OpenKM 5.1.8

PostPosted:Mon Sep 28, 2015 4:33 am
by hariharan.gopal
Hi,

Thanks for the reply.

We have an original server which is running in OpenKM 5.1.8. in root mode. That is in /opt/jboss-4.2.3-G. So for moving that to user folder (/home/openkm/) I am trying to do this. I am in a situation of using that version only. So please help me on this.

Re: Login Error in OpenKM 5.1.8

PostPosted:Tue Sep 29, 2015 2:35 pm
by pavila
This is very old and have a lot of security issues.

Your problem seems to be related to permissions.

Regards.

Re: Login Error in OpenKM 5.1.8

PostPosted:Wed Sep 30, 2015 10:17 am
by jllort
As pavila said, check your OS grants on this folder ( chown -R openkm:openkm /opt/jboss- etc. if you are executing with this user ).