Unlock database
Monday, 30 April 2018 · 2 messages
BE
Ben Engbers30 Apr 2018 15:56 #
Hi,
Somehow, I managed to lock a (test)-database and now I can't get it unlocked.
Is it possible to manually remove the lock? If so, how?
Cheers,
Ben Engbers
AH
Alexander Holupirek30 Apr 2018 16:54 #
Hi Ben,
maybe there is a upd.basex file in your data/ directory?
Citing from
http://docs.basex.org/wiki/Transaction_Management#Update_Operations
Update Operations
During a database update, a locking file upd.basex will reside in that database directory. If the update fails for some unexpected reason, or if the process is killed ungracefully, this file will not be deleted. In this case, the database cannot be opened anymore, and the message "Database ... is being updated, or update was not completed" will be shown instead. If the locking file is manually removed, you may be able to reopen the database, but you should be aware that database may have got corrupt due to the interrupted update process, and you should revert to the most recent database backup.
Cheers,
Alex
Quoted text · Ben Engbers · 11 lines
> On 30. Apr 2018, at 15:56, Ben Engbers <Ben.Engbers at Be-Logical.nl> wrote: > > Hi, > > Somehow, I managed to lock a (test)-database and now I can't get it > unlocked. > > Is it possible to manually remove the lock? If so, how? > > Cheers, > Ben Engbers
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery