• Login Error in OpenKM 5.1.8

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #40618  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.
 #40624  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.
 #40637  by pavila
 
This is very old and have a lot of security issues.

Your problem seems to be related to permissions.

Regards.
 #40643  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 ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.