System.IO.IOException when I index

David Pearson asked on August 7, 2015 19:32

I am getting a event listed below. Is this a security issue on the dev IIS server where I need to grant permissions to the service account for the website?

Thanks David

Message: Lock obtain timed out.......

\cms\App_Data\CMSModules\SmartSearch\Anderson-Pages\write.lock: System.IO.IOException: A device attached to the system is not functioning.

Exception type: Lucene.Net.Store.LockObtainFailedException Stack Trace: 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 CMS.Search.Lucene3.LuceneIndexWriter..ctor(Directory directory, Analyzer a, Boolean create) at CMS.Search.Lucene3.LuceneSearchManager.CreateIndexWriter(String path, ISearchAnalyzer analyzer, Boolean create) at CMS.Search.SearchIndexProvider.GetWriter(Boolean create) at CMS.DocumentEngine.DocumentSearchIndexer.Rebuild(SearchIndexInfo indexInfo, String cultures, IEnumerable1 sites, SafeDictionary2 allowedNodes, SafeDictionary`2 excludedNodes, Boolean fullRebuild) at CMS.DocumentEngine.DocumentSearchIndexer.Rebuild(SearchIndexInfo indexInfo) at CMS.Search.SearchHelper.Rebuild(SearchIndexInfo indexInfo) at CMS.Search.SearchIndexer.ExecuteRebuildTask(SearchTaskInfo taskInfo) at CMS.Search.SearchIndexer.ExecuteTask(SearchTaskInfo sti) at CMS.Search.SearchTaskInfoProvider.TaskIndexer() at CMS.Search.SearchTaskInfoProvider.RunInternal()

Message: A device attached to the system is not functioning.

Recent Answers


Roman Hutnyk answered on August 7, 2015 23:35

David,

Yes, you might need to check write permissions on the file system for app pool account you're running your site under.

The other known reason might be running web farm with shared source code, which seem to be default installation within the company. Please let me know if this is the case.

1 votesVote for this answer Mark as a Correct answer

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