管理日志中的2sxc常规异常错误

时间:2017-03-05 05:01:48

标签: dotnetnuke 2sxc

我们遇到了很多"一般例外"与DNN搜索和2sxc相关的错误,有时网站甚至会停止加载。

我从管理日志中附加了一个错误,但有很多人可以帮忙吗?

我们正在使用Evoq 8.5,2sxc 8.5.4。

<log LogGUID="e8a0d5ca-12f6-4865-a184-f440611ad3d5" LogFileID="" LogTypeKey="GENERAL_EXCEPTION" LogUserID="-1" LogEventID="212842" LogUserName="" LogPortalID="-1" LogPortalName="" LogCreateDate="3/5/2017 2:02:57 AM" LogCreateDateNum="0" BypassBuffering="False" LogServerName="RD0003FF6E964E" LogConfigID="4">
    <LogProperties>
      <LogProperty>
        <PropertyName>AbsoluteURL</PropertyName>
        <PropertyValue />
      </LogProperty>
      <LogProperty>
        <PropertyName>DefaultDataProvider</PropertyName>
        <PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke</PropertyValue>
      </LogProperty>
      <LogProperty>
        <PropertyName>ExceptionGUID</PropertyName>
        <PropertyValue>d5db1b63-65bb-424e-9284-d6bdeb597078</PropertyValue>
      </LogProperty>
    </LogProperties>
    <Exception>
      <AssemblyVersion />
      <PortalId>-1</PortalId>
      <UserId>-1</UserId>
      <TabId>-1</TabId>
      <RawUrl />
      <Referrer />
      <UserAgent />
      <ExceptionHash>h7DfzrR5N2NZPGujVU3A9A==</ExceptionHash>
      <Message>Search: Error while indexing module 3429 on tab 1311, portal 14</Message>
      <StackTrace>   at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\Environment\Dnn7\DnnBusinessController.cs:line 32
   at DotNetNuke.Services.Search.ModuleIndexer.IndexSearchDocuments(Int32 portalId, ScheduleHistoryItem schedule, DateTime startDateLocal, Action`1 indexer)</StackTrace>
      <InnerMessage>The underlying provider failed on Open.</InnerMessage>
      <InnerStackTrace>   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean&amp; closeStoreConnectionOnFailure)
   at System.Data.EntityClient.EntityConnection.Open()
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at ToSic.Eav.BLL.EavDataController.InitZoneApp(Nullable`1 zoneId, Nullable`1 appId) in C:\Projects\eav-server\ToSic.Eav\BLL\EavDataController.cs:line 145
   at ToSic.SexyContent.Internal.AppManagement.EnsureAppIsConfigured(Int32 zoneId, Int32 appId, String appName) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\Internal\AppManagement.cs:line 106
   at ToSic.SexyContent.App.InitializeResourcesSettingsAndMetadata(Boolean allowSideEffects) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\App.cs:line 110
   at ToSic.SexyContent.App..ctor(Int32 zoneId, Int32 appId, PortalSettings ownerPortalSettings, Boolean allowSideEffects) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\App.cs:line 103
   at ToSic.SexyContent.ContentBlock.ModuleContentBlock..ctor(ModuleInfo moduleInfo, IEnumerable`1 overrideParams) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\ContentBlock\ModuleContentBlock.cs:line 55
   at ToSic.SexyContent.Search.SearchController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\Search\SearchController.cs:line 48
   at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\Environment\Dnn7\DnnBusinessController.cs:line 28</InnerStackTrace>
      <Source>ToSic.SexyContent</Source>
      <FileName />
      <FileLineNumber>0</FileLineNumber>
      <FileColumnNumber>0</FileColumnNumber>
      <Method />
    </Exception>
  </log>

2 个答案:

答案 0 :(得分:1)

这听起来像是一个DB错误,可能与2sxc无关。我建议做一些数据库维护,看看它是否能解决所有问题。

所以这不是已知问题ATM

答案 1 :(得分:1)

Denis更新了2sxc,我调查了日志文件并发现了这个错误,可能有助于缩小范围:

2017-11-14 12:35:46,608 [H10] [Thread:76] [ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Exception:[Indexing:Behavior SiteSearch(#1)]读取内容源时出错DNN模块索引器---&gt; ToSic.SexyContent.Search.SearchIndexException:搜索:在选项卡1901上标记模块5242时出错,门户网站0 ---&gt; System.Collections.Generic.KeyNotFoundException:给定的键不在字典中。    在System.ThrowHelper.ThrowKeyNotFoundException()    在System.Collections.Generic.Dictionary 2.get_Item(TKey key) at ASP._Page_Portals_0_2sxc_Documents__Environment_Filter_App_cshtml.CustomizeData() in \Portals\0\2sxc\Documents\_Environment Filter App.cshtml:line 11 at ToSic.SexyContent.Engines.RazorEngine.CustomizeData() in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\2Sexy Content Razor\RazorEngine.cs:line 109 at ToSic.SexyContent.Engines.EngineBase.Init(Template template, App app, ModuleInfo hostingModule, IDataSource dataSource, InstancePurposes instancePurposes, SxcInstance sxcInstance, Log parentLog) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\Engines\EngineBase.cs:line 64 at ToSic.SexyContent.Search.SearchController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\SexyContent\Search\SearchController.cs:line 143 at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\Environment\Dnn7\DnnBusinessController.cs:line 85 --- End of inner exception stack trace --- at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2SexyContent\Web\DesktopModules\ToSIC_SexyContent\Environment\Dnn7\DnnBusinessController.cs:line 89 at DnnSharp.Common2.Services.Dnn.ModuleService.<GetSearchItems>d__4.MoveNext() at DnnSharp.SearchBoost.Core.ContentSource.DnnModules.<GetIndexingJobsForTabModules>d__26.MoveNext() at DnnSharp.SearchBoost.Core.ContentSource.DnnModules.<GetIndexingJobs>d__25.MoveNext() at DnnSharp.SearchBoost.Core.ContentSource.DnnModules.<Query>d__20.MoveNext() at DnnSharp.SearchBoost.Core.Services.QueryContentSourcesService.QueryAllContentSourcesToCache(SearchBehavior behavior, List 1缓存,CancellationTokenSource cancellationToken)    ---内部异常堆栈跟踪结束---