Reputation: 545
I'm having an application that access orbeon many times concurrently. I found that sometimes when I stop/start the orbeon WAR this message appears:
The database directory seems to be locked by another instance. Found valid lock file: /"path"/orbeon.war/WEB-INF/exist-data/dbx_dir.lck
I stop and start Orbeon and it start working again.
Do you have any idea why this could be happening?
Regards,
Upvotes: 1
Views: 351
Reputation: 31753
This is a lock file created by the eXist database, which comes bundled with Orbeon Forms. The purpose of this lock file it to prevent two instances of eXist from accessing the same data files on disk, as this would eventually lead to data corruption.
The lock file should be removed when you shut down your application server, e.g. Tomcat. But depending on how you do it, eXist may not have a chance to remove its lock file, and hence will complain the next time you start it.
However, there is nothing there you should worry about. If you are sure you never have another instance of eXist accessing the same files, you can even remove that lock file as part of the script you use to start Tomcat.
Upvotes: 1