【问题标题】:Errors after upgrading sitecore from 8.1 to 8.2将 sitecore 从 8.1 升级到 8.2 后的错误
【发布时间】:2017-03-23 01:57:17
【问题描述】:

升级sitcore后,日志抛出一些异常,如下所示

16644 17:36:50 INFO [Sitecore Mvc]:注册区域:AppCenter ManagedPoolThread #14 17:36:50 创建了信息缓存: 'ItemCloningRelations'(最大大小:50MB,运行总量:3237MB)8796 17:36:50 错误 [索引=sitecore_marketingdefinitions_web, Crawler=SitecoreItemCrawler, Database=web] 根项目不能 找到:{09CF9489-8F71-4A16-B707-4F013D8CDEFB}。托管池线程 #14 17:36:51 错误异常异常: System.Reflection.TargetInvocationException 消息:异常有 被调用的目标抛出。资料来源:mscorlib 在 System.RuntimeMethodHandle.InvokeMethod(对象目标,对象 [] 参数,签名 sig,布尔构造函数)在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(对象 obj, Object[] 参数,Object[] 参数)在 System.Reflection.RuntimeMethodInfo.Invoke(对象 obj,BindingFlags invokeAttr、Binder binder、Object[] 参数、CultureInfo 文化)
在 Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo 方法, Object[] 参数,Object obj) 在 Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) 在 (Object , 对象 [] ) 在 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) 在 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.ThreadEntry(对象状态)

嵌套异常

异常:System.AggregateException 消息:一个或多个错误 发生了。资料来源:mscorlib 在 System.Threading.Tasks.Task.ThrowIfExceptional(布尔 includeTaskCanceledExceptions) 在 System.Threading.Tasks.Task.Wait(Int32 毫秒超时, CancellationToken 取消令牌)在 System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, 行动1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 来源,ParallelOptions 并行选项,Action1 body, Action2 bodyWithState, 动作3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 来源, ParallelOptions 并行选项,Action2 body) at Sitecore.ContentSearch.AbstractSearchIndex.PerformUpdate(IEnumerable1 indexableInfo, IndexingOptions indexingOptions)

嵌套异常

异常:System.InvalidOperationException 消息: [索引=sitecore_marketingdefinitions_web,爬虫=SitecoreItemCrawler, Database=web] 找不到根项目: {09CF9489-8F71-4A16-B707-4F013D8CDEFB}。来源:Sitecore.ContentSearch 在 Sitecore.ContentSearch.SitecoreItemCrawler.get_RootItem() 在 Sitecore.ContentSearch.SitecoreItemCrawler.IsAncestorOf(Item item)
在 Sitecore.ContentSearch.SitecoreItemCrawler.IsExcludedFromIndex(IIndexableUniqueId indexableUniqueId, IndexEntryOperationContext operationContext, 布尔检查位置)在 Sitecore.ContentSearch.SitecoreItemCrawler.Update(IProviderUpdateContext 上下文,IIndexableUniqueId indexableUniqueId, IndexEntryOperationContext operationContext, IndexingOptions 索引选项)在 Sitecore.ContentSearch.Abs​​tractSearchIndex.c__DisplayClass16.b__10(IndexableInfo 信息,ParallelLoopState 并行循环状态)在 System.Threading.Tasks.Parallel.c__DisplayClass17_0`1.b__1() 在 System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
在 System.Threading.Tasks.Task.c__DisplayClass176_0.b__0(对象 )

【问题讨论】:

    标签: c# asp.net-mvc sitecore sitecore8


    【解决方案1】:

    检查您的索引“sitecore_marketingdefinitions_web”的配置,您的索引根项目“{09CF9489-8F71-4A16-B707-4F013D8CDEFB}”似乎在网络数据库中不存在,Sitecore 发布可以解决如果此项目存在于您的主数据库中,则会出现此问题。

    【讨论】:

    • 那你需要去相关的配置文件,把这个改成已有的项。您可以到 /sitecore/admin/showconfig.aspx 页面查找“sitecore_marketingdefinitions_web”,您可以在其中找到相关文件。
    • 文件名应该是“Sitecore.Marketing.Solr.Index.Web.config”,在我的 8.2 clean 实例中根项目的值是 {09CF9489-8F71-4A16-B707-4F013D8CDEFB} .
    猜你喜欢
    • 2023-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多