Developer forum

Forum » Ecommerce - Standard features » Index build fails : Lock obtain timed out

Index build fails : Lock obtain timed out

Gaetan Di Caro
Reply

Hi,

I am having difficulties building the Ecom index. When I try to do it I get an error :

Lock obtain timed out: NativeFSLock@(my solution)\Files\System\Indexes\Products\Products Index\Products\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)    
   at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)    
   at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl)    
   at Dynamicweb.Indexing.Lucene.LuceneIndexWriter.Open(Boolean openForAppend)    
   at Dynamicweb.eCommerce.Indexing.ProductIndexBuilder.Build(IIndexWriter writer, Tracker tracker)

 

I tried deleting the files but it doesn't work still. The integration jobs are supposed to build the index after running but it doesn't seem like it's happening either. I run on version 8.8.0.5. Any idea where the problem could be ?

 

Thanks !

2016-04-21_08_20_39-KBH_ListeFabrik_-_Dynamicweb_Administration.png

Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Gaetan

This can happen if 2 different threads opens a writer to the index at the same time.

You trigger an update of the index in the end of your integration job. Do you also have a schedule that indexes at the same time maybe?

The lock file will not go away untill the writer releases it. So something seems to keep it a live. IIS reset should release it.

BR Nicolai

Votes for this answer: 1
 
Gaetan Di Caro
Reply

Ok i restarted IIS and it seems ok now (I tried before and after integration, no problem). No clue what it could have been, but since work is still in progress on this project there might have been some stuck or crashed process somewhere.

Thanks !

 

You must be logged in to post in the forum