Rank: Newbie
Groups: Registered
Joined: 11/1/2017 Posts: 2
|
We are having an issue with reindexing our website. Both the nightly and programmatic reindexing methods fail giving the same result. The stack trace from KEYOTI_WINDOWS_SERVICE.txt is listed below. Quote:11/06/2017 09:12 Exception caught in the import process: The process cannot access the file 'C:\KCEWS_Projects\KCEWSPUBLIC_MVC\KCEWS\KCEWS\Keyoti_Search_Index\validIndex' because it is being used by another process. StackTrace: at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) at Keyoti.SearchEngine.Index.DocumentIndex.a(Object A_0, AddDocumentEventArgs A_1) at Keyoti.SearchEngine.Index.IndexableSources.IndexableSource.OnAddedDocument(AddDocumentEventArgs e) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(IndexableSourceRecord A_0, ArrayList A_1, String A_2) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.Import(Boolean isRecursive, ArrayList targetMatches, ArrayList noRecurseMatches, String loginURL, IndexableSourceRecord record) at Keyoti.SearchEngine.Index.IndexableSources.FileSystemFolderBasedSource.Import() at Keyoti.SearchEngine.Index.DocumentIndex.Import(IndexableSourceRecord indexableSourceRecord, IIndexableSource dataSource) at Keyoti.SearchEngine.WindowsService.Task.a(ConfigurationManager A_0, Boolean A_1) 11/06/2017 09:12 Caused by reader threshold: False 11/06/2017 10:00 Reimport started 11/06/2017 10:08 Exception caught in the import process: The process cannot access the file 'C:\KCEWS_Projects\KCEWSPUBLIC_MVC\KCEWS\KCEWS\Keyoti_Search_Index\validIndex' because it is being used by another process. StackTrace: at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) at Keyoti.SearchEngine.Index.DocumentIndex.a(Object A_0, AddDocumentEventArgs A_1) at Keyoti.SearchEngine.Index.IndexableSources.IndexableSource.OnAddedDocument(AddDocumentEventArgs e) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(IndexableSourceRecord A_0, ArrayList A_1, String A_2) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.Import(Boolean isRecursive, ArrayList targetMatches, ArrayList noRecurseMatches, String loginURL, IndexableSourceRecord record) at Keyoti.SearchEngine.Index.IndexableSources.FileSystemFolderBasedSource.Import() at Keyoti.SearchEngine.Index.DocumentIndex.Import(IndexableSourceRecord indexableSourceRecord, IIndexableSource dataSource) at Keyoti.SearchEngine.WindowsService.Task.a(ConfigurationManager A_0, Boolean A_1) 11/06/2017 10:08 Caused by reader threshold: False 11/06/2017 11:00 Reimport started 11/06/2017 11:04 Exception caught in the import process: The process cannot access the file 'C:\KCEWS_Projects\KCEWSPUBLIC_MVC\KCEWS\KCEWS\Keyoti_Search_Index\validIndex' because it is being used by another process. StackTrace: at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) at Keyoti.SearchEngine.Index.DocumentIndex.a(Object A_0, AddDocumentEventArgs A_1) at Keyoti.SearchEngine.Index.IndexableSources.IndexableSource.OnAddedDocument(AddDocumentEventArgs e) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(IndexableSourceRecord A_0, ArrayList A_1, String A_2) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.a(Boolean A_0, ArrayList A_1, ArrayList A_2, String A_3, ArrayList A_4, ArrayList A_5, String A_6, Boolean A_7, IndexableSourceRecord A_8, ArrayList A_9) at Keyoti.SearchEngine.Index.IndexableSources.FileSysDocumentStore.Import(Boolean isRecursive, ArrayList targetMatches, ArrayList noRecurseMatches, String loginURL, IndexableSourceRecord record) at Keyoti.SearchEngine.Index.IndexableSources.FileSystemFolderBasedSource.Import() at Keyoti.SearchEngine.Index.DocumentIndex.Import(IndexableSourceRecord indexableSourceRecord, IIndexableSource dataSource) at Keyoti.SearchEngine.WindowsService.Task.a(ConfigurationManager A_0, Boolean A_1) 11/06/2017 11:04 Caused by reader threshold: False Also, the error in DocumentIndex.txt shows a similar message. Quote:11/06/2017 11:04 AddDocument() on https://kcews.ky.gov/Con.../CPG_201415_Bourbon.pdf caught a fatal reader exception The process cannot access the file 'C:\KCEWS_Projects\KCEWSPUBLIC_MVC\KCEWS\KCEWS\Keyoti_Search_Index\validIndex' because it is being used by another process. at Keyoti.SearchEngine.DataAccess.XmlDataAccess.MarkIndexValid(Boolean valid) at Keyoti.SearchEngine.Index.q.a(Document A_0, Boolean A_1, a A_2, Boolean A_3) at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) We have both a website source and a file system source. The website source seems to index fine, however, when it gets to the file system reindexing it fails consistently.
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Is it possible that the filesystem import is trying to index the index directory itself? In other words if you have a structure like this /app /app/docs /app/indexdirectory and you do an import on /app then it's going to try to index the indexdirectory, which could cause problems like this. -your feedback is helpful to other users, thank you!
|
Rank: Newbie
Groups: Registered
Joined: 11/1/2017 Posts: 2
|
No the folder structure is ~\Content\Reports\ for our documents and the index directory is ~\Keyoti_Search_Index\.
Thanks!
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
It sounds like something has gone wrong on the OS and a handle to the file is still open. You can investigate which process is 'using' the file according to https://www.techsupporta...process-using-file.htm, they also mention a program called Unlocker which might help. I'm not recommending Unlocker as such, I don't know anything about it - but will leave it to your discretion. -your feedback is helpful to other users, thank you!
|