Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Unable to rebuild index View modes: 
User avatar
Member
Member
Tillotto - 11/18/2009 3:58:22 PM
   
Unable to rebuild index
Hi,
this could be to do with medium trust but I can't find anything in the manuals referring to indexes under medium trust. I am getting the following error when I try to rebuild an index (without the index I cannot get the search to find anything)

----------------------------------------
EventType: E

EventTime: 11/18/2009 2:38:33 PM

Source: SmartSearch

EventCode: Index

EventDescription: Message: Lock obtain timed out: SimpleFSLock@xxx\App_Data\CMSModules\SmartSearch\slopes\write.lock
Stack Trace:
at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
at Lucene.Net.Index.IndexWriter.Init(String path, Analyzer a, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at CMS.SiteProvider.SearchIndexInfo.GetWriter(Boolean create)
at CMS.SiteProvider.SearchHelper.Optimize(SearchIndexInfo srchInfo)
at CMS.SiteProvider.SearchTaskInfoProvider.TaskIndexer()
at CMS.SiteProvider.SearchTaskInfoProvider.Run()

----------------------------------------
It's quite odd because the index appears to have built once, but won't do it again and another attempt at an index won't build at all.
Does anyone have any suggestions as to how I get an index rebuilt?
Many thanks.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 11/24/2009 1:15:29 PM
   
RE:Unable to rebuild index
Hello,

We've successfully resolved this issue via the support ticket, so I'd like to let know other users who felt into this issue - it is a permissions issue. You need to grant write permission to ~\App_Data\CMSModules\SmartSearch\<index code name>\ folder, so that the search index could be created on the file system.

Best regards
Ondrej vasil

User avatar
Member
Member
polarwarp-gmail - 11/24/2009 8:00:59 PM
   
RE:Unable to rebuild index
Hi,

Which account?

I have checked permissions on this folder and all accounts listed have write access - and its still not working.

I assumed it would have been the account that ASP.NET uses - but that has access and so does the IUSR account!

Will also email support as I've spent an hour trying to troubleshoot this with no success.

User avatar
Member
Member
polarwarp-gmail - 11/24/2009 8:50:20 PM
   
RE:Unable to rebuild index
Found it - turns out there was a WP account that wasn't in the list at all..

For anyone else having this issue - use Process Monitor application to watch the path and see who is accessing it!! :)