Yes, my variant of DSIndexer will attempt to attain a lock on the directory when you use "-u". If that lock is stale it won't be able to open the the Index for writing. Think of the lock like a "pid" file, stopping separate indexing services that are in different thread or JVM instances from writing to the index at the same time. If, for instance, you killed your JVM instance (be†careful sometimes stopping tomcat in linux using the default /etc/init.d/tomcat start|stop script will do this as a last resort) there could be a stale lock file left for the index.††We try not to stop/start tomcat unless its mission critical. Instead try to use the Manager application to start/stop the dspace web-application directly. This allows cleanup work to be done before the thread terminates.

Reindexing with "-c" on failures like this is an ok solution.†


On Dec 19, 2006, at 10:53 AM, Jose Blanco wrote:

Problem resolved by running :

./dsrun org.dspace.search.DSIndexer -c


From: dspace-tech-bounces@lists.sourceforge.net [mailto:dspace-tech-bounces@lists.sourceforge.net] On Behalf Of Jose Blanco
Sent: Monday, December 18, 2006 4:32 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] error loading

I seem to be getting this error when I try to use the importer, and Iím also not able to deposit using the interface.

It appears there is no handle file -- generating one

java.io.IOException: Lock obtain timed out: Lock@/tmp/lucene-c1bdaa1948aabecbb07102f49d1b4242-write.lock

†at org.apache.lucene.store.Lock.obtain(Lock.java:58)

†at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:223)

†at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:193)

†at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:421)

†at org.dspace.search.DSIndexer.openIndex(DSIndexer.java:406)

†at org.dspace.search.DSIndexer.indexContent(DSIndexer.java:95)

†at org.dspace.content.InstallItem.installItem(InstallItem.java:185)

†at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:655)

†at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:498)

†at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:407)

java.io.IOException: Lock obtain timed out: Lock@/tmp/lucene-c1bdaa1948aabecbb07102f49d1b4242-write.lock

Any ideas?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Mark R. Diggory
~~~~~~~~~~~~~
DSpace Systems Manager
MIT Libraries, Systems and Technology Services
Massachusetts Institute of Technology