[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] error on indexer

Hi Ernesto and John,

Xapian index is a flat file (well a set of flat files) so it cannot be 
updated by two things at once.? There is a good chance if the EPrints 
indexer was trying to index at the same time as you ran "epadmin 
reindex".? There will then be two separate processes trying to modify 
the Xapian index at the same time, so it will stop one of those process 
from gaining access.? Therefore, if you are doing a mass reindex of all 
your eprint records, I would advise stopping and then making sure the 
EPrints indexer is no longer running.? If you still see the same error 
message when the indexer is not running then you can probably delete the 
lock file for the Xapian index.? However, there is always an inherent 
risk to doing this if somehow some other process is modifying the index 
(e.g. another reindex command running elsewhere).? On RHEL-based linux 
this lock file will be called flintlock in the xapian directory (e.g. 
/opt/eprints3/archives/melt/var/xapian/flintlock).? If you are running 
Debian-based Linux (e.g. Ubuntu)? I have a recollection that the lock 
file name is different.


David Newman

On 05/07/2023 16:30, John Salter via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi Ernesto,
> I'm not sure about this - we don't use the Xapian indexing.
> I've copied your email to the EPrints tech list - hopefully someone 
> there will be able to assist.
> Cheers,
> John
> *From:*Ernesto Giovany Correa Vasquez [mailto:ecorrea at ci.una.edu.ni]
> *Sent:* 05 July 2023 14:07
> *To:* John Salter <J.Salter at leeds.ac.uk>
> *Subject:* error on indexer
> Good morning dear, I hope you are well. i used the command
> ./epadmin reindex melt eprint
> to regenerate the indexer, but it shows me the following message
> Exception: Unable to get write lock on 
> /usr/share/eprints3/archives/funde/var/xapian: already locked
> can you help me?
> Thank you
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0d9bffc2268149e966ed08db7d72e7e6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638241704680594521%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iAE4YAlwNzR8TsXbB4n07eJeJzBYMqrLKfs%2B32CyLoY%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0d9bffc2268149e966ed08db7d72e7e6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638241704680594521%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eW3gMhUkelaklT5ABxFjRolKTyJDenOTA10Ys9eziks%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230705/e6b743b2/attachment-0001.html