+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / "Access to the path 'deletable' is denied." in Search

"Access to the path 'deletable' is denied." in Search

7 posts, 1 answered
  1. J.R. Garcia
    J.R. Garcia avatar
    24 posts
    Registered:
    12 Aug 2008
    16 Jul 2009
    Link to this post
    We are getting all sorts of errors in Sitefinity and it appears to be a problem with the Search section. I checked your forums and saw that someone found a solution. They added NETWORK SERVICE to the security for APP_DATA and deleted and recreated the index. I added NETWORK SERVICE as a user and that didn't fix anything, so I thought I would try deleting and recreating the index. Now, I'm getting this error. We are getting all sorts of errors on production. I really need some help with this as soon as possible.

    Thanks,

    J.R. Garcia
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Jul 2009
    Link to this post
    Hello J.R. Garcia,

    Please check the following:

    1. Read/Write permissions are set for C:\WINDOWS\TEMP and App_Data folder of your site.

    Sitefinity uses Lucene search engine. On the other hand Lucine uses temp files in the windows temp folder. Probably when you try to start indexing there are no write permissions over C:\WINDOWS\TEMP folder. After you granted read/write permissions for this folder of ASP.NET service account, there should not be a problem.

    2)Try deleting  the folder located in ~[your web site]/App_Data/Search/AllIndex. Next time you run the
    index, everything should work.

    Let us know if there is anything else that we can do for you.
    If possible send us the stack trace of the error you are getting.

    I look forward to hearing from you at your earliest convenience.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    12 Jan 2010
    Link to this post
    From Twitter:

    jrgarcia: Any Sitefinity gurus know how to change what Sitefinity's search uses as the temp dir? For example, using /tmp instead of C:\Windows\TEMP.

    Sitefinity's Search is based on Lucene and Lucene.Net.  I found the following resource for Lucene:

    http://adotnetdude.blogspot.com/2009/01/lucenenet-unauthorizedaccessexception.html

    Does the following configuration do anything in your web.config?

      <appSettings> 
        <add key="Telerik.Lucene.Net.lockDir" value="C:\SomeFolderOfYourChoice" /> 
      </appSettings> 

    Gabe Sumner
    Evangelist
    Telerik | Sitefinity CMS
    Answered
  4. J.R. Garcia
    J.R. Garcia avatar
    24 posts
    Registered:
    12 Aug 2008
    12 Jan 2010
    Link to this post
    Thanks, Gabe! You're the man!
  5. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    12 Jan 2010
    Link to this post
    :)  We'll see.  In all honesty, I had trouble reproducing the original errors and, as a result, also had trouble confirming that the settings below work. 

    Let me know if you still have issues with these settings. 

    Gabe Sumner
    Evangelist
    Telerik | Sitefinity CMS
  6. J.R. Garcia
    J.R. Garcia avatar
    24 posts
    Registered:
    12 Aug 2008
    12 Jan 2010
    Link to this post
    I had to delete the records in the sf_Search_ClientSettings, sf_Search_IndexignService, and sf_Search_IndexignClient (the tables are actually spelled incorrectly, that is not my doing). After doing that, setting the Lucene.Net lock directory and recreating the index worked just fine.

    Thanks,
    J.R. Garcia
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    13 Jan 2010
    Link to this post
    Hi J.R. Garcia,

    Thank you for sharing your experience with the rest of the Sitefinity Community, I am sure that they will find it handy. Gabe, thank you for the insights too.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
7 posts, 1 answered