升级sitcore后,日志会抛出一些异常,如下所示
16644 17:36:50 INFO [Sitecore Mvc]:注册区域:AppCenter ManagedPoolThread#14 17:36:50创建信息缓存: 'ItemCloningRelations'(最大尺寸:50MB,总计:3237MB)8796 17:36:50错误[Index = sitecore_marketingdefinitions_web, Crawler = SitecoreItemCrawler,Database = web]根项不能 发现:{09CF9489-8F71-4A16-B707-4F013D8CDEFB}。 ManagedPoolThread#14 17:36:51错误异常异常: System.Reflection.TargetInvocationException消息:异常有 被调用的目标抛出。来源:mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] 参数,签名sig,布尔构造函数)at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object []参数,Object []参数)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)
在Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo方法, Object []参数,Object obj)at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args)at(Object, Sitecore.Pipelines.CorePipeline.Run中的Object [])(PipelineArgs args)at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName,PipelineArgs args,String pipelineDomain)at Sitecore.Jobs.Job.ThreadEntry(对象状态)嵌套异常
异常:System.AggregateException消息:一个或多个错误 发生了。来源:mscorlib at System.Threading.Tasks.Task.ThrowIfExceptional(布尔 includeTaskCanceledExceptions)at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, 取消语音取消语言) System.Threading.Tasks.Parallel.ForWorker [TLocal](Int32 fromInclusive, Int32 toExclusive,ParallelOptions parallelOptions,Action
1 body, Action
2 bodyWithState,Func4 bodyWithLocal, Func
1 localInit, 行动1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source,ParallelOptions parallelOptions,Action1 body, Action
2 bodyWithState,Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal,Func5 bodyWithEverything, Func
1 localInit, 行动1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1来源, ParallelOptions parallelOptions,Action2 body) at Sitecore.ContentSearch.AbstractSearchIndex.PerformUpdate(IEnumerable
1 indexableInfo,IndexingOptions indexingOptions)嵌套异常
异常:System.InvalidOperationException消息: [Index = sitecore_marketingdefinitions_web,Crawler = SitecoreItemCrawler, 数据库= web]无法找到根项: {09CF9489-8F71-4A16-B707-4F013D8CDEFB}。来源:Sitecore.ContentSearch 在Sitecore.ContentSearch.SitecoreItemCrawler.get_RootItem()at Sitecore.ContentSearch.SitecoreItemCrawler.IsAncestorOf(Item item)
在 Sitecore.ContentSearch.SitecoreItemCrawler.IsExcludedFromIndex(IIndexableUniqueId indexableUniqueId,IndexEntryOperationContext operationContext, 布尔检查位置) Sitecore.ContentSearch.SitecoreItemCrawler.Update(IProviderUpdateContext context,IIndexableUniqueId indexableUniqueId, IndexEntryOperationContext operationContext,IndexingOptions indexingOptions)at Sitecore.ContentSearch.AbstractSearchIndex<> c__DisplayClass16.b__10(IndexableInfo info,ParallelLoopState parallelLoopState)at System.Threading.Tasks.Parallel<> c__DisplayClass17_0`1.b__1() 在System.Threading.Tasks.Task.InnerInvokeWithArg(任务childTask)
在 System.Threading.Tasks.Task<> c__DisplayClass176_0.b__0(对象 )
答案 0 :(得分:1)
检查索引“sitecore_marketingdefinitions_web”的配置,似乎您的索引根项目“{09CF9489-8F71-4A16-B707-4F013D8CDEFB}”在Web数据库中不存在,Sitecore发布可以解决如果此项存在于主数据库中,则会出现此问题。