【问题标题】:Sitecore 8.1 : Could not compute value for ComputedIndexFieldSitecore 8.1:无法计算 ComputedIndexField 的值
【发布时间】:2015-12-19 00:55:00
【问题描述】:

我们刚刚从 7.2 升级到 Sitecore 8.1。搜索引擎已禁用 Lucene 和 xDB。该解决方案托管在 ms azure 云服务 Web 应用程序中。

我们注意到 CMS CA 非常缓慢。在查看日志时注意到下面记录了一些错误:

13876 2015:12:18 05:21:44 ERROR Could not compute value for ComputedIndexField: _content for indexable: sitecore://web/{2E25F9D3-BBBF-4160-BAE1-1EE4E701BD9B}?lang=en&ver=1
Exception: System.UnauthorizedAccessException
Message: Access to the path 'D:\App_Data\data\mediaIndexing\b3cd2fa1-9671-498f-9534-a94ad5a21923-Mypolicy.pdf' is denied.
Source: mscorlib
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Sitecore.ContentSearch.ComputedFields.MediaItemIFilterTextExtractor.ComputeFieldValue(IIndexable indexable)
   at Sitecore.ContentSearch.ComputedFields.MediaItemContentExtractor.ComputeFieldValue(IIndexable indexable)
   at Sitecore.ContentSearch.LuceneProvider.LuceneDocumentBuilder.AddComputedIndexFields()

有人可以建议为什么 sitecore 正在寻找我们不需要的营销索引的 Web 表单吗?

谢谢

【问题讨论】:

    标签: azure lucene sitecore sitecore-azure sitecore8.1


    【解决方案1】:

    您的错误中没有任何关于 WFFM 索引的内容 - 它只是说它无法计算 {2E25F9D3-BBBF-4160-BAE1-1EE4E701BD9B} 项目的 _content 字段的值。

    它甚至会告诉您原因 - 无法访问驱动器上的路径。您应该检查D:\App_Data\data\mediaIndexing 目录的访问权限,并确保您的应用程序用户可以访问它。

    【讨论】:

    • 啊,缺少 mediaIndexing 目录。该目录是 Sitecore 的一部分吗?换句话说,这应该作为安装的一部分创建吗?
    • 如果您为数据文件夹设置了正确的权限,那么应该已经创建了它。检查网络服务权限。这里有用的博客 - jermdavis.wordpress.com/2015/03/30/…
    • @Marek Musielak 不幸的是,问题仍然存在,因为 sitecore 在 D:\app_data 而不是 D:\wwroot|app_data 下寻找媒体索引文件夹。想知道 mediaIndexingFolder 的这条路径在哪里
    【解决方案2】:

    使用 Azure Web Apps,您应该在文件系统中拥有对 webroot 及其后代的完全访问权限。确保 MediaIndexingFolder 设置未设置为绝对路径,并且未指向应用程序所在的 webroot 之外。

    默认情况下,如果不指定MediaIndexingFolder设置,则指向$(dataFolder)/mediaIndexing路径,其中$(dataFolder)必须指向webroot下的\App_Data

    【讨论】:

    • 我们使用的是 SC8.1,我在任何地方都看不到任何 MediaIndexingFolder 文件夹。此外,我们确实将数据文件夹更新为 /app_data
    • 而且,这里有趣的部分是,如果我指定了 /app_data ,那么我希望它看起来像 wwwroot/app_data/mediaindexing
    【解决方案3】:

    我们最近遇到了同样的问题。本质上,确保在 Azure WebApp 上使用标准 zzDataFolder.config 文件,其中包含:

    <sc.variable name="dataFolder">
      <patch:attribute name="value">D:\home\site\wwwroot\App_Data</patch:attribute>
    </sc.variable>
    

    使用包含的其他配置(DataFolder.config,将其设置为“/data”)或您自己的配置文件(指向除完整驱动器路径之外的任何内容)将破坏 mediaIndexing 文件夹路径(即使所有使用 App_Data 的 Sitecore 的其他部分(如“诊断”或“媒体缓存”)与“/数据”设置完美配合)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-20
      • 1970-01-01
      相关资源
      最近更新 更多