Sitecore 日志文件重复错误

标签 sitecore sitecore7 sitecore7.2

我有一个 sitecore 7.2 站点,它是从 6.6 升级而来的,任何导致以下错误在日志文件中多次出现的想法:

ManagedPoolThread #3 2015:07:14 10:03:48 ERROR Exception occurred in retryer scope :
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at Sitecore.Data.DataProviders.Retryer.ExecuteNoResult(Action action, Action recover)
   at Sitecore.Analytics.Automation.Data.Sql.SqlAutomationProvider.GetDueStates(AutomationStatesDataTable dataTable, Int32 maxEntries)
   at Sitecore.Analytics.Automation.AutomationWorker.GetDueStates(AutomationStatesDataTable dataTable)
   at Sitecore.Analytics.Automation.AutomationWorker.Process()
   at Sitecore.Analytics.Automation.AutomationWorker.<Wakeup>b__4(Object state)
   at Sitecore.Threading.ManagedThreadPool.ProcessQueuedItems()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

最佳答案

您多次看到相同错误的原因是因为重试器将重试失败的数据库请求的次数等于尝试次数参数中设置的次数。

下面是取自 web.config v7.2 的重试器部分:

<!-- RETRYER
         When enabled, the Retryer resends failed database requests a specified number of times.
         For example, this is useful if you configure a Sitecore instance to support hot failover for database calls.
         Default value: disabled="true"
    -->
    <retryer disabled="true" type="Sitecore.Data.DataProviders.Retryer, Sitecore.Kernel">
      <param desc="Number of tries">6</param>
      <param desc="Interval between tries">00:00:00.500</param>
      <param desc="Log each exception (should be used for debug only)">true</param>
    </retryer>

关于Sitecore 日志文件重复错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31403207/

相关文章:

c# - 在 sitecore 中通过管道分隔的 GUID 获取项目集合

validation - 停止发布验证错误项

linq - 转义空值 LINQ

sitecore - 在 Sitecore 8.0 中安装 WFFM 模块时出现无法识别的 Guid 格式错误

url-rewriting - 如何重写或缩短 Sitecore URL

c# - 在 Sitecore 7 中按名称获取项目的最有效方法?

asp.net-mvc - Sitecore 7.5 MVC 和 HttpContext.Session.Timeout 设置为 1 分钟

sitecore - 当入口页面是别名时,我应该如何启动 Sitecore 营销事件?

asp.net - 在集成模式下运行的 IIS 7 经典 ASP 应用程序

xml - 元素的 XSLT 切换顺序