Ozgur
2010-Sep-01 10:27 UTC
[Xapian-discuss] DatabaseLockError: REMOTE: unable to get write lock
Hi, I'm using xapian(1.2.2) python interface to connect remote xapian-tcpserv daemon. I'm starting the daemon as given below: xapian-tcpsrv --port 9100 --interface 127.0.0.1 --writable ./xapiandb/ and in script.py: import xapian as xa db = xa.remote_open_writable('localhost', 9100) # other stuff # ... script is a long running program, and when i try to run another instance, i get : xapian.DatabaseLockError: REMOTE:Unable to get write lock on /home/hinoglu/xapiandb/ : already locked Please correct me if i'm wrong, writelock is the xapian-tcpsrv's lock, not the clients'. So why am i getting databaselock error? Isn't xapian-tcpsrv capable of handling multiple clients? Thanks Ozgur -- Ozgur <hinoglu at gmail.com>
Olly Betts
2010-Sep-01 10:49 UTC
[Xapian-discuss] DatabaseLockError: REMOTE: unable to get write lock
On Wed, Sep 01, 2010 at 01:27:33PM +0300, Ozgur wrote:> xapian.DatabaseLockError: REMOTE:Unable to get write lock on /home/hinoglu/xapiandb/ : already locked > > Please correct me if i'm wrong, writelock is the xapian-tcpsrv's lock, not > the clients'. So why am i getting databaselock error? Isn't xapian-tcpsrv > capable of handling multiple clients?It can support one writer and multiple readers, the same as if you were opening the database locally. Cheers, Olly