Page 1 of 1

missing users after restart

PostPosted:Wed Feb 29, 2012 9:51 am
by padideh2
Hello,
I've installed openkm 5.1.7 on ubuntu 10.04 and has no problem as long as the server is on but after I restart the server it misses all users but permissions and directories are still working.
so I have to create all users again.
this is startup in init.d :
Code: Select all
ECHO=/bin/echo
TEST=/usr/bin/test
JBOSS_START_SCRIPT=/opt/jboss/bin/run.sh
JBOSS_STOP_SCRIPT=/opt/jboss/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 )
            sleep 60
            start
            ;;
      stop )
            stop
            sleep 40
            ;;
      restart )
            stop
            start
           ;;
      * )
            $ECHO "Usage: jbossokm {start|stop|restart}"
            exit 1
esac

Re: missing users after restart

PostPosted:Wed Feb 29, 2012 10:57 pm
by pavila

Re: missing users after restart

PostPosted:Thu Mar 01, 2012 4:52 pm
by jllort
As says pavila in the wiki page is commented

Once the tables are created, change the hibernate.hbm2ddl property from create to none. Do this after running the application for the first time. If you don't, the repository will be deleted and re-created the next time OpenKM starts.