Smart Search

Wei Wang asked on October 15, 2021 19:56


We keep getting errors about Smart search every morning from 4am.(message detail showing below. Our DBS is out, is it something needs to be done in the database? Kentico 9 Portal Engine.

Message: Index locked for write: CMS.Search.Lucene3.SearchLock

Exception type: Lucene.Net.Store.LockObtainFailedException Stack Trace: 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 CMS.Search.Lucene3.LuceneSearchManager.CreateIndexWriter(String path, ISearchAnalyzer analyzer, Boolean create) at CMS.Search.SearchIndexProvider.GetWriter(Boolean create) at CMS.Search.SearchHelper.Update(ISearchDocument iDoc, SearchIndexInfo indexInfo) at CMS.Membership.UserSearchIndexer.ExecuteProcessTask(SearchTaskInfo sti) at CMS.Search.SearchIndexer.ExecuteTask(SearchTaskInfo sti) at CMS.Search.SearchTaskInfoProvider.TaskIndexer() at CMS.Search.SearchTaskInfoProvider.RunInternal()

Thanks Wei Wang

Recent Answers

Juraj Ondrus answered on October 18, 2021 05:49

What version of Kentico are you using? There is also a search troubleshooting documentation page on this error - have you tried the tips there? Just search for "Index locked for write", for example latest docs. What is your environment setup?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.