mojoPortal.SearchIndex.IndexWriterTask - System.UnauthorizedAccessException

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/8/2014 3:42:40 AM
Gravatar
Total Posts 36

mojoPortal.SearchIndex.IndexWriterTask - System.UnauthorizedAccessException

Hi Joe,

 

I have hosted my site on Arvixe. Problem is, every now and then application pool is stopped and so I was doing root cause analysis of the problem. While going through the system logs I found one issue is logged in system logged frequently

"2014-01-08 02:43:26,263 ERROR (null) - (null) - (null) - mojoPortal.SearchIndex.IndexWriterTask - System.UnauthorizedAccessException: Access to the path 'E:\HostingSpaces\ftteam\staging.squiresleep.fasttrackteam.com\wwwroot\Data\Sites\1\index\write.lock' is denied."

 

We have given permission to Data folder and all its subfolders and files. I verified we have "write.lock" this file is present in this path. Could you please let me know why I am getting this error.

1/8/2014 11:43:28 AM
Gravatar
Total Posts 18439

Re: mojoPortal.SearchIndex.IndexWriterTask - System.UnauthorizedAccessException

in a web farm that kind of error can happen if multiple processes try to write to the search index because only one process can get a lock on the file. The Lucene.NET search engine disk file system storage provider supports multi threaded apps but not multiple processes.

That kind of error could also happen after moving a site from one machine to another the permissions and owner of the file from the previous machine can cause such errors on the new machine.

If it isn't a web farm, I would delete the search index files and rebuild the search index. If it is a web farm I don't have a good solution, maybe best to use bing or google for site search in that case./rebuilding-the-search-index.aspx

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.