[Xapian-discuss] Flint Database 'Can't acquire write lock'?

Olly Betts olly at survex.com
Fri Apr 20 13:54:08 BST 2007


On Fri, Apr 20, 2007 at 06:37:47PM +0900, Josef Novak wrote:
> I'm using xapian-core-0.9.9, built on a 64bit linux machine
> (Linux 2.4.21-143-smp x86_64 unknown ), employing a bash shell.

Flint relies on fcntl() for locking, so perhaps the filing system
you have the database on doesn't support this.  What is the filing
system?  If it's NFS, make sure you're running 'lockd'.

Quartz uses completely different locking technique which works on
NFS without lockd, but it leaves a stale lock behind if the process
exits unexpectedly, which is annoying.

If it's not obviously the FS, can you try a snapshot tarball of SVN
HEAD?  There are have been some minor tweaks to the locking code:

http://www.oligarchy.co.uk/xapian/trunk/

Cheers,
    Olly



More information about the Xapian-discuss mailing list