Troubleshoot Problems Using the Coveo Diagnostic Page

Coveo for Sitecore provides a tool to quickly diagnose issues. It’s called the Diagnostic Page.

Accessing the Diagnostic Page Manually

Open the following URL in a web browser: http://<INSTANCE_HOSTNAME>/sitecore modules/Web/Coveo/admin/CoveoDiagnosticPage.aspx, where <INSTANCE_HOSTNAME> must be replaced with the name of your Sitecore instance.

Accessing the Diagnostic Page Via the Control Panel

  1. Open the Coveo Search section of the Sitecore Control Panel (see Open the Coveo Search Control Panel Section).

  2. Choose Diagnostic.

    Coveo Search | Coveo for Sitecore 5
  3. The Diagnostic Page will open in your default web browser.

Using the Diagnostic Page

Coveo for Sitecore Diagnostic Package

The diagnostic package wraps all the information present on the Diagnostic Page in a compressed file and lets the user download it.

35454992

Coveo for Sitecore Components State

The Diagnostic Page provides a list of all the major modules that form Coveo for Sitecore, along with a status for each one of them.

Status of the different modules are retrieved automatically after the first page load. If you want to update those statuses, you must hit Refresh in the upper-right corner.

For a fully working Coveo for Sitecore instances, components should all be in the "Up and running" state, as seen below:

37097072

However, if any module is down (if the organization is provisioning, for example) you’ll see an error message similar to this one:

35454993

Diagnostic States Description

Name Description Things to look for if in error

Cloud Service

Tries to get the Coveo status.

Validate that you have access to Coveo from your Sitecore instance.

Cloud Service Organization

Tries to get your Coveo organization status.

Validate in Coveo that your organization is healthy.

Cloud Service Sources Endpoint

Tries to get the sources from your organization

Validate that there are Sources (platform-ca | platform-eu | platform-au) in Coveo and that your organization is healthy.

Coveo Index Crawlers

Validate the crawling root of the Coveo indexes.

In your configuration files, locate your Coveo indexes and validate your crawling root.

Coveo Security Service

Calls Sitecore’s web service used by Coveo for Sitecore to get the security entities in Sitecore

Check the error in the details and fix accordingly.

Sitecore’s Configuration

Tries to create the required configuration for Coveo.

Check the error in the details and fix accordingly.

Coveo for Sitecore Version Information

The Diagnostic Page provides you with a way to check if your Sitecore version is compatible with the current Coveo for Sitecore version.

The following image shows that the two versions are compatible.

35454994

If your version has not been fully tested yet, you’ll see a message similar to this one:

35454995

If your version isn’t compatible at all, you’ll see a message similar to this one:

35454996

Coveo for Sitecore Organization Information

This section provides information about your Coveo organization, its name and ID, and details regarding your field and document usage. The Open Cloud Administration Console link provides access to your organization in the Coveo Administration Console.

The Field Usage section allows you to see how many fields are being indexed for the current Sitecore instance, and across all your Coveo organization.

DiagnosticPageFieldUsage
  • The Instance column presents the number of indexed fields for the current Sitecore instance. It’s the sum of the fields indexed for all the Coveo indexes of the current Sitecore instance. The fields are retrieved using the coveoIndexingGetFields pipeline (see About the coveoIndexingGetFields Pipeline).

  • The Organization column presents the total number of indexed fields, across all sources in your Coveo organization.

  • The Limit column presents the maximum number of fields that can be configured in the Coveo organization.

  • The Usage represents the ratio between the total number of indexed fields in your Coveo organization and the organization limit.

    Note

    Visual indicators are displayed when your usage ratio reaches 80%.

    DiagnosticPageVisualIndicatorsFields

The Document Usage section allows you to see how many documents are currently indexed in your Coveo organization.

DiagnosticPageDocumentUsage
  • The Organization column presents the total number of indexed documents you currently have, across all sources in your Coveo organization.

  • The Limit column presents the maximum number of documents that can be indexed in your Coveo organization.

  • The Usage represents the ratio between the number of indexed documents you currently have and the organization limit.

    Note

    Visual indicators are displayed when your usage ratio reaches 80%.

    DiagnosticPageVisualIndicatorsDocuments

    Exceeding your document limit may cause indexing operations to be blocked.

    DiagnosticPageVisualIndicatorsDocuments2

Coveo for Sitecore Configuration Files

The Diagnostic Page provides a list of all currently loaded Coveo configuration files:

If you want to refresh the list, you must hit Refresh in the upper-right corner.

35455001

When Coveo is unable to find one of the configuration files, the missing file appears in red under Missing Coveo configuration Files.

37094682

Coveo for Sitecore Published Items

The Diagnostic Page gives you a list of the items that need to be published for Coveo to work properly.

If all the needed items are published, you should see a message similar to this one:

35455000

If some items aren’t yet published, the following message should be displayed. You can click Show details to show the list of currently published items, as shown in the following image:

35454998

Coveo for Sitecore Indexing Test

The Diagnostic Page gives you the possibility to refresh a sub-tree of the Coveo index:

32604509

To perform a sub-tree refresh:

  1. Select an index in the dropdown menu on the left.

  2. Enter the path of the sub-tree you would like to refresh.

  3. Click Index.

If the refresh was performed, a success message should be displayed:

32604397

However, if an error occurs (for example, if the path of the item isn’t specified), you should see an error message like this one:

32604516

Coveo for Sitecore Log Viewer

The Diagnostic Page provides a tool to read Sitecore log files:

32604508

To watch a specific log file:

  1. Select the file you want to watch in the dropdown menu. Most recent log files are displayed on top.

  2. Click View Log.

  3. The log file appears on the screen:

32604621

The tool colors each line depending on the severity of the entry. This can be useful to quickly locate errors. The table below shows the color in which each type of entry is displayed:

Entry type Color

INFO, VERBOSE

Dark Green

DEBUG, TRACE

Light grey

WARN

Yellow

ERROR

Red

Indexes List

The Diagnostic Page also shows the complete list of indexes currently configured.

35454999

Directly Accessing the Diagnostic Package

It’s possible to directly access the package by opening the following URL in a web browser: http://<INSTANCE_HOSTNAME>/sitecore modules/Web/Coveo/CoveoDiagnosticPackage.aspx, where <INSTANCE_HOSTNAME> must be replaced with the name of your Sitecore instance.

You need to be authenticated to download the diagnostic package this way. If you try to download the package without having the proper authentication, the following page will be shown :

35455002

You might need to specify the domain (sitecore\USERNAME, for example) for it to correctly log in.

The download should start automatically after being logged in.