Markus Wörle
2007-Oct-11 16:22 UTC
[Xapian-discuss] "Failed to update flint version file" while reading from index
Hello, after upgrading xapian from 1.0.2 to 1.0.3 i get exceptions errors while searching, such as: Exception: Failed to update flint version file: /var/lib/wtf/dev/db/ profile/iamflint and recently Exception: Flint version file /var/lib/wtf/dev/db/profile/iamflint should be ((sizeof("IAmFlint""")-1) + 4) bytes both of these exceptions appear in the same line of my code where i reopen the Database before searching: $db->reopen(); I run a single-writer-multiple-readers setup, and the exceptions only appear in the reader-processes. Could there be some kind of competition between these processes writing the iamflint file? Do you have any ideas? Additionaly I discovered that the "delve" tool in the xapian 1.0.3 Distribution newly needs write-access to the index. Otherwise it dies with: Error opening database `/var/lib/wtf/dev/db/profile': DatabaseOpeningError: Failed to create flint version file: /var/lib/ wtf/dev/db/profile/iamflint.tmp (Permission denied) Perhaps this might also be in any way concerned with the problem? Regards, mrks
James Aylett
2007-Oct-11 16:38 UTC
[Xapian-discuss] "Failed to update flint version file" while reading from index
On Thu, Oct 11, 2007 at 05:21:44PM +0200, Markus W?rle wrote:> Additionaly I discovered that the "delve" tool in the xapian 1.0.3 > Distribution newly needs write-access to the index. Otherwise it dies > with: > > Error opening database `/var/lib/wtf/dev/db/profile': > DatabaseOpeningError: Failed to create flint version file: /var/lib/ > wtf/dev/db/profile/iamflint.tmp (Permission denied) > > Perhaps this might also be in any way concerned with the problem?Olly (I think) has recently committed changes that make it lazier at upgrading flint databases. This will certainly fix your second problem, and may help with the first. J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
Olly Betts
2007-Oct-11 16:44 UTC
[Xapian-discuss] "Failed to update flint version file" while reading from index
On Thu, Oct 11, 2007 at 04:38:06PM +0100, James Aylett wrote:> Olly (I think) has recently committed changes that make it lazier at > upgrading flint databases. This will certainly fix your second > problem, and may help with the first.It should - this is the patch: http://oligarchy.co.uk/flint-1.0.3-readonly-db.patch Cheers, Olly
Markus Wörle
2007-Oct-11 17:48 UTC
[Xapian-discuss] "Failed to update flint version file" while reading from index
Am 11.10.2007 um 17:44 schrieb Olly Betts:> On Thu, Oct 11, 2007 at 04:38:06PM +0100, James Aylett wrote: >> Olly (I think) has recently committed changes that make it lazier at >> upgrading flint databases. This will certainly fix your second >> problem, and may help with the first. > > It should - this is the patch: > > http://oligarchy.co.uk/flint-1.0.3-readonly-db.patchWow, that was fast! It seems that it solved both problems. Thank you! mrks