Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Smart Search Error Lock Out View modes: 
User avatar
Member
Member
kmiday-cuyahogalibrary - 4/25/2013 7:49:18 AM
   
Smart Search Error Lock Out
Hello,

I've recently installed the Kentico 7 Intranet, so far everything is running pretty smoothly, except some problems with the smart search. It appears that the smart search is attempting to delete a file and failing, and in doing so locking itself out.

If I manually tell an index to rebuilt, it appears to be able to. But it seems to get stuck on specific tasks for single files and repeats them over and over until they're locked, then still continues to run.

So far I've double checked the permissions on the smart search folder to allow all actions for network service, as well as renaming some of the smart search indexes to cause them to recreate the folders, then the problem just occurred with the new indexes.

The delete denied error:
EventDescription: Message: Access to the path 'E:\inetpub\wwwroot\intranet\App_Data\CMSModules\SmartSearch\default_department_dc154155-8a31-438e-8650-fbc03acbffd5\segments_n' is denied.
Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at Lucene.Net.Store.FSDirectory.DeleteFile(String name)
at Lucene.Net.Index.IndexFileDeleter.DeleteFile(String file)
at Lucene.Net.Index.IndexFileDeleter.DeleteFiles(ArrayList files)

The lock-out error:
EventDescription: Message: Lock obtain timed out: SimpleFSLock@E:\inetpub\wwwroot\intranet\App_Data\CMSModules\SmartSearch\default_department_dc154155-8a31-438e-8650-fbc03acbffd5\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)

Please let me know if you need any additional information.

Thank you.

User avatar
Member
Member
kentico_sandroj - 4/27/2013 6:57:16 PM
   
RE:Smart Search Error Lock Out
Hi,

It appears that another customer had a similar issue and it was resolved by configuring permissions for the index.
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.

Apparently there is another process that could be accessing the 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!!

Click here to view the source post.

Let me know if this solution doesn't work for you.

Thanks,
Sandro

User avatar
Member
Member
kmiday-cuyahogalibrary - 5/1/2013 7:13:24 AM
   
RE:Smart Search Error Lock Out
Hi Sandro,

I've been configuring the permissions as the issue arises, but we have many smart search indexes (30+ departments and about 14 workgroups, in an intranet installation) so I was making sure there wasn't an easier way to resolve the issue.

So far adjusting the permissions as problems arise is working. I'll update if it doesn't work in the future.

Thanks!