Page 1 of 1

Jboss shutdown before user locked out!

PostPosted:Wed Jan 30, 2008 10:35 am
by peter
hi,

the jboss server shutdown before i loged a user out (system user). when i started jboss up again i got the following login error:
The repository home C:\\OpenKM-1.2_JBoss-4.0.3SP1\\repository appears to be in use since the file named .lock is locked by another process
i have tried logging on with other users but this results in the same error. how can this be reset? and the lock removed?

thanx

Re:Jboss shutdown before user locked out!

PostPosted:Wed Jan 30, 2008 11:14 am
by jllort
I think you\'ve killed server, not shutdown ... ?

We\'ll there\'s a file on %Jboss_home/respository/ called .lock ( hidden file ) , only delete it before running jboss and all turn to normally.

Re:Jboss shutdown before user locked out!

PostPosted:Wed Jan 30, 2008 12:14 pm
by peter
thanks for the help but your solution does not work.

after shuttingdown the server i do as you said and deleted the .lock file (whitch is 0kb).

i then restarted the server as instructed. after the server was started the .lock file was replaced in the repository.

have you had problems with this before? why is the .lock file placed in the repository dir?

Peter

Re:Jboss shutdown before user locked out!

PostPosted:Thu Jan 31, 2008 9:53 am
by pavila
The .lock file is placed in the repository dir to ensure there is only read/write access to the repository form only one OpenKM instance. This file is created when you starts JBoss and should be remove automatically when you performs a shutdown. You should\'n kill the server, you must shutdown it properly.