【问题标题】:Sitecore Log File Repeated ErrorSitecore 日志文件重复错误
【发布时间】:2015-07-14 09:47:21
【问题描述】:

我有一个 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()

【问题讨论】:

  • 检查您的分析连接字符串 - 尝试使用 SQL Server Management Studio 使用此连接字符串中的凭据连接到数据库
  • 最初解析连接字符串不正确我会更正它并监视以查看错误是否不会出现在日志文件中。谢谢

标签: sitecore sitecore7 sitecore7.2


【解决方案1】:

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

以下是取自 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>

【讨论】:

  • 最初解析连接字符串不正确我会更正它并监视以查看错误是否不会出现在日志文件中。谢谢
【解决方案2】:

Analytics数据库连接字符串不正确时抛出你看到的异常。

尝试使用 SQL Server Management Studio 使用此连接字符串中的凭据连接到数据库。

因为 Retryer 失败后尝试重新执行查询,所以显示多次(有关 retryer 的更详细说明,请参阅Jason Home 答案)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多