Wednesday, September 28, 2016

Sitecore Authentication on CES Discovery service failed

Any good Sitecore developer periodically checks their production logs for any error messages or worrying warnings. Whilst doing this on an 8.2 implementation, I noticed the following warning:
ManagedPoolThread #3 09:15:45 WARN Authentication on CES Discovery service failed.
Exception: System.Net.WebException
Message: The remote server returned an error: (403) Forbidden.
Source: System
at System.Net.HttpWebRequest.GetResponse()
at Sitecore.CES.Client.WebClient.ExecuteRequest(String requestUri)
at Sitecore.CES.Client.ResourceConnector`1.Request(String endpoint, Object[] parameters)
at Sitecore.CES.Discovery.EndpointSource.GetEndpoint(String serviceName)
The line before this in the logs states:
INFO  Job started: Update device detection DB
Which  traces back to device detection in Sitecore which is a paid service (since Sitecore 8.1). This can be disabled by using the following patch file:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <settings>
      <setting name="DeviceDetection.Enabled">
        <patch:attribute name="value">false</patch:attribute>
      </setting>
    </settings>
  </sitecore>
</configuration>
It will then begin to insert the following (more graceful) warning :)
WARN  Device detection component is disabled
For those users who want to use this service, remember to enable the connections to discovery-ces.cloud.sitecore.net and devicedetection-ces.cloud.sitecore.net on the firewall.

4 comments:

  1. Hi Ryan,

    We are getting the same issue. Could you please suggest the location of this patch file or where to add this.

    ReplyDelete
    Replies
    1. You would add this file (create it yourself) under Website/App_Config/Include.

      Delete
  2. how the end user impact could be for this issue??

    ReplyDelete
    Replies
    1. No end user impact. This error will only appear if you haven't enabled the paid device detection service. This fix is simply stopping many warning messages from appearing in logs.

      Alternatively if you require device detection, this can be enabled (and paid for) via the control panel.

      Delete