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

Search Issue

14 posts, 0 answered
  1. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    16 Nov 2010
    Link to this post
    We are using the sitefinity search functionality and it works good in my local machine but when we promote to the dev machine its giving below error,

    Access to the path 'E:\Inetpub\wwwroot\mylittonloan\App_Data\Search\SiteIndex\Index\segments_19x' is denied

    I gave everyone permission in the Admin section to search but still getting this error when displaying the result.

    Please help.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Nov 2010
    Link to this post
    Hello VIJAIANAND,

    The account that you use to run the application pool of your website does not have permissions to the specified directory and the temp files or the file has been locked and the access for the current request is denied.  These are Lucene's segment files which are generated when an item/page is created, updated or deleted. The account under which the worker process runs and which is used by  Lucene does not have permissions and therefore Lucene cannot update its files.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    16 Nov 2010
    Link to this post
    I tried giving permission to ASPNET and IUSR_XXX to the directory and still didn't work.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Nov 2010
    Link to this post
    Hi VIJAIANAND,

    Then none of these accounts is used by the application pool.  This is a general ASP.NET error and I am sure that the issue is thrown form ASP.NET class that checks directory and file permissions.

    Try restarting the server and check your permissions again.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    16 Nov 2010
    Link to this post
    I have seen it before and usually goes aways after giving permission to IUSR_XXX because thats the user which usually used by worker process. In this case it didn't go away even after IIS restart.

    Vijai
  6. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    We are still stuck with this issue. Search is not working in the servers and keeps giving the permission issue even after giving all sorts of full control. It keeps getting lock errors as well.

    Help us to resolve it.
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hi VIJAIANAND,

    Do you use web farm/garden or similar configuration?

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    We use web farm.
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hi VIJAIANAND,

    This is an issue cased by the sync tool you use and Lucene Search engine. We have logged a task for investigating this case. The issue appears when you frequently update the index files. This happens when you update, create and delete pages/content items

    You can avoid file locking by

    Trigger the index on a certain period of time 

    - page index - there is an option (Sitefinity  >> Administration >> Search) to set "Auto Index" to false

    - for content types - this require to create a custom index and disable the auto index . You should create a custom class that inherits from ContentIndexProvider and override ContentProvider_Executed and you should not call the base, just leave the method empty. You can register the index in <indexClients> section of the web.config

    - if possible remove App_Data/Search form sync and do this manually once or several times per day.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    Ok, we thought of using the search form and avoid all the trouble. Now you are recommending to do some coding and other stuff to get it working. Thats not really good..

    I tried disabling the auto index and gave proper permission. We get the below error,

    A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.Control" and must have ID "ResultsStats".



  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Dec 2010
    Link to this post
    Hi VIJAIANAND,

    The error you are getting is because in the template

    Sitefinity\ControlTemplates\Search\SearchResult.ascxthe control below does not exist.

    <h2><asp:Literal ID="ResultsStats" runat="server">Found {0} pages for "{1}" </asp:Literal></h2>

    Please make sure that you have this control  in the template.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    The thing is it works fine without any problem in the local machine without these control but why only in the server?
  13. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    Also we didn't touch any of the sitefinity controls or templates.
  14. Vijaianand
    Vijaianand avatar
    94 posts
    Registered:
    09 Jul 2012
    15 Dec 2010
    Link to this post
    I also checked and SearchResults.ascx has those required literals since we didn't do any changes. We are accessing the same CMS database from my local machine, it works but when accessed from dev server the search fails.

Register for webinar
14 posts, 0 answered