EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09872


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] i got error like this


Hi joko,

It sounds like your Xapian database has either become corrupted or access to it is being blocked because it is already in use.  Xapian is a secondary index for EPrints that allows for quicker and potentially more complex searches.

I would advise first making sure you have stopped your indexer before running a complete re-index, as having the indexer and you command line competing for access to the Xapian database will likely lead to an error like you describe.  If you started the indexer through the Admin section of your EPrints web interface, then you can stop it that way.  If you started it some other way, be sure to use the same method to stop it, as otherwise it is liable to restart unexpected;y.

To be sure this is a competing access issue, I would wait for a few minutes after stopping the indexer before running your command for a full re-index.  If you still see the same error message, then it is likely your Xapian database has become corrupted.  As this is only a secondary cache and you doing a full re-index anyway, you can just move this out of the way or even delete it.  However, your searches that use Xapian will return incomplete sets of results until your full re-index is complete and with 50,000+ records the full re-index is liable to take several hours.  The Xapian database for your archive will be under the following path (substituting EPRINTS_PATH and ARCHIVE_ID as appropriate):

EPRINTS_PATH/archives/ARCHIVE_ID/var/xapian/

I would just move it as follows:

mv EPRINTS_PATH/archives/ARCHIVE_ID/var/xapian/ EPRINTS_PATH/archives/ARCHIVE_ID/var/xapian.old/

Once moved, you can start your re-index.  One of the first messages you are liable to see from running this re-index is that as new Xapian database has been created.  Hopefully, then the re-index will be able to run without any further issues.  Once complete you can restart the indexer.

Regards

David Newman


On 07/11/2024 4:03 am, jokoe soesilo wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
When i running command : epadmin reindex *repository_id* *dataset_id*[*eprint_id*]

i got an error like this
Number of records in set: 54385
Exception: Expected block 61191 to be level 1, not 0eprints@perpus:~/bin$
eprints@perpus:~/bin$ ./epadmin reindex repository eprint --force --verbose

Starting EPrints Repository.
Connecting to DB ... done.

You are about to reindex "eprint" in the repository repository.
This can take some time.

Number of records in set: 54401
Exception: Expected block 61191 to be level 1, not 0eprints@perpus:~/bin$

is there any solution for this problem ?
thank you

regard ,
joko

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/