Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • claudio morandi 23 posts 91 karma points
    Dec 05, 2018 @ 09:33
    claudio morandi
    0

    Help needed on ExamineIndex

    I'd need to know the best configuration for ExamineIndex to avoid write locks. It's a multiple websites (actually 8 websites) project hosted on a load balancing environment (Azure infrastructure but not as WebApp - just normal virtual servers with load balancer - 2 reverse proxies - 2 web servers). It could be that many iis processes try to access the examineindex files at same time. Can you help me to configure it? The page on our.umbraco shows the configuration for examine index only for Azure WebApps but it's not my case. P.S. I actualy see some types of error in logs:

    ERROR Umbraco.Core.UmbracoApplicationBase - Unhandled exception in AppDomain (terminating)
    System.IO.FileNotFoundException: Could not find file 'D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index_201.fnm'.
    ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
    System.Exception: Error indexing queue items,System.IO.IOException: Cannot overwrite: D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index_21p.tvx
    ERROR Umbraco.Web.Editors.MediaController - Unhandled controller exception occurred
    System.AggregateException: Exceptions were thrown by listed actions. ---> Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index\write.lock
    at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
    
  • MuirisOG 382 posts 1284 karma points
    Dec 05, 2018 @ 11:03
    MuirisOG
    0

    Have you a different entry in the config files for each site?

    With different entries, you can specify the starting page for each site.

  • claudio morandi 23 posts 91 karma points
    Dec 05, 2018 @ 11:05
    claudio morandi
    0

    No different entries in config files, there are just multiple root in content tree and hostname rules of every root content. Umbraco serves the correct page basing on current hostname.

  • MuirisOG 382 posts 1284 karma points
    Dec 05, 2018 @ 11:36
    MuirisOG
    0

    Claudio, I meant in the ExamineIndex.config and the ExamineSettings.config

    e.g. an entry like this for each site in ExamineIndex.config (with a corresponding entry in the Settings config.

      <!-- Site 1 -->
      <IndexSet SetName="Site1IndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Site1/" IndexParentId="1059">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName"/>
          <add Name="updateDate" />
          <add Name="parentID" />
          <add Name="writerName" />
          <add Name="loginName" />
          <add Name="email" />
          <add Name="nodeTypeAlias" />
        </IndexAttributeFields>
        <IndexUserFields>
          <add Name="umbracoNaviHide" />
          <add Name="short_title" />
          <add Name="meta_keywords" />
          <add Name="meta_desc" />
          <add Name="main" />
    </IndexUserFields>
        <IncludeNodeTypes>
          <add Name="Site1DocType" />
        </IncludeNodeTypes>
      </IndexSet>
    
      <!-- Site 2 -->
      <IndexSet SetName="Site2IndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Site2/" IndexParentId="1074">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName"/>
          <add Name="updateDate" />
          <add Name="parentID" />
          <add Name="writerName" />
          <add Name="loginName" />
          <add Name="email" />
          <add Name="nodeTypeAlias" />
        </IndexAttributeFields>
        <IndexUserFields>
          <add Name="umbracoNaviHide" />
          <add Name="short_title" />
          <add Name="meta_keywords" />
          <add Name="meta_desc" />
          <add Name="main" />
    </IndexUserFields>
        <IncludeNodeTypes>
          <add Name="Site2DocType" />
        </IncludeNodeTypes>
      </IndexSet>
    
  • claudio morandi 23 posts 91 karma points
    Dec 05, 2018 @ 13:22
    claudio morandi
    0

    that's a good point, I will try that. Thank you

Please Sign in or register to post replies

Write your reply to:

Draft