Gravatar for gling@houstonmethodist.org

Question by qch1595, Mar 7, 2017 11:23 PM

Coveo rebuilding index exception: inactivity timeout expired.

Recently I got the error below when tried to rebuild indexes in the index manager in Sitecore.

Job started: Index_Update_IndexName=Coveo_master_index|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Coveo.Framework.Exceptions.CoveoSearchProviderException: Inactivity timeout expired. Not all documents were committed in the allotted time (01:00:00). Aborting the rebuild task.
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.AreDocumentsCommitted(UInt32 p_ActualTotalCount, UInt32 p_ExpectedTotalCount, String p_SourceName)
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.<>c__DisplayClass48.<CreateAddedDocumentsPoller>b__47()
   at Coveo.Framework.Synchronization.Poller.WaitUntilComplete()
   at Coveo.AbstractLayer.Communication.CES.CESCommunication.StopRebuild(RebuildContext p_Context)
   at Coveo.SearchProvider.ProviderIndexBase.PerformRebuild(IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndexBase.Rebuild(IndexingOptions p_IndexingOptions, IProviderUpdateContext p_Context, Action`1 p_CrawlerAction)
   at Coveo.SearchProvider.ProviderIndex.TryPerformIndexingOperation(IndexingOptions p_IndexingOptions, Action p_Action)
   at Coveo.SearchProvider.ProviderIndex.Rebuild()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
   at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.Jobs.Job.ThreadEntry(Object state)
Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Mar 8, 2017 8:00 AM

The error in itself can have multiple meanings. It is a check that ensures the documents you push to the index were really indexed.

It is failing at the step "Waiting for documents to be searchable…" in the rebuild process. Which means all the documents were pushed correctly, but the query we are executing at the end cannot find those documents.

Some of the reasons it cannot find those documents are:

  • The user we use to execute the query does not have the rights to see some indexed documents, returning an invalid count to us.
  • Something interferes with the documents returned, like Top Results or Indexing Pipeline (only in older Coveo for Sitecore Cloud versions).

First: Check if the indexed date has been updated for your indexed document in this rebuild. They should be updated, so you don't have to worry that your rebuild failed, the documents are there, up and running.

Then check the logs before that error, there should be some logs there "Waiting for documents to be searchable…" and "Committed documents: 1234 / 2345" that are important to understand the problem.

Gravatar for v.ayer@clerkswell.com

Comment by vivekayer, Oct 4, 2017 8:27 AM

Hi

I'm getting a similar error. How do I find out the user that is used for the query are documents committed?

Gravatar for v.ayer@clerkswell.com

Comment by vivekayer, Oct 4, 2017 12:01 PM

Found the log with the user thanks. How do I check the rights?

FYI, these are the last log entries when its stuck:

Sitecore items crawled.
Finalizing rebuild...
Waiting for documents to be searchable...
Retrieved new search token for key [X];Sitecore Security Provider for [X];User in 600.1173ms
Job started: CoveoSynchronizeTopResults
Job ended: CoveoSynchronizeTopResults (units processed: )
Committed documents: 0 / 4501
Job started: CoveoSynchronizeTopResults
Job ended: CoveoSynchronizeTopResults (units processed: )
Committed documents: 4478 / 4501
Job started: CoveoSynchronizeTopResults
Job ended: CoveoSynchronizeTopResults (units processed: )
Job started: CoveoSynchronizeTopResults
Job ended: CoveoSynchronizeTopResults (units processed: )


0 Reply
Ask a question