Tagged: FindByThumbprint

Cannot start analytics Tracker Exception – The Certificate was not found – Sitecore Azure Webapps

ERROR Cannot start analytics Tracker Exception: System.InvalidOperationException Message: The certificate was not found. Store: My, Location: CurrentUser, FindType: FindByThumbprint, FindValue: 23ACB78F3CDA99BA00646EA867C77466EBE8C718, InvalidAllowed: False. Source: Sitecore.Xdb.Common.Web at Sitecore.Xdb.Common.Web.Synchronous.SynchronousExtensions.SuspendContextLock[TResult](Func`1 taskFactory) at Sitecore.Analytics.DataAccess.Dictionaries.DataStorage.ReferenceDataClientDictionary.EnsureDefinitionType(String definitionTypeName) at Sitecore.Analytics.DataAccess.Dictionaries.DataStorage.ReferenceDataClientDictionary.LoadAs[T](Object key) at Sitecore.Analytics.DataAccess.Dictionaries.AverageCounterExtensions.MeasureMilliseconds[T](AverageCounter counter, Func`1 func) at Sitecore.Analytics.DataAccess.Dictionaries.ReferenceDataDictionary`2.Get(TKey key, LookupStrategy strategy) at Sitecore.Analytics.DataAccess.Dictionaries.UserAgentsDictionary.Register(String userAgentName) at Sitecore.Analytics.Tracking.CurrentVisitContext.set_UserAgent(String value) at Sitecore.Analytics.Pipelines.CreateVisits.InitializeWithRequestData.Process(CreateVisitArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Analytics.Pipelines.CreateVisits.CreateVisitPipeline.Run(CreateVisitArgs args) at Sitecore.Analytics.Tracking.StandardSession.CreateInteraction(HttpContextBase httpContext) at Sitecore.Analytics.Pipelines.InitializeTracker.CreateVisit.Process(InitializeTrackerArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Analytics.Pipelines.InitializeTracker.InitializeTrackerPipeline.Run(InitializeTrackerArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Analytics.Pipelines.StartTracking.StartTrackingPipeline.Run(StartTrackingArgs args) at Sitecore.Analytics.DefaultTracker.StartTracking()

 

This error came up after we upgrade the certificate or I would say after we removed the Expired Certificate and add the new valid Certificate on Webapp (Sitecore on Azure).

This causes analytics to stop working.

To solve this error, Certificate Thumbprint has to be updated at various locations:

  1. Configuration files:
    On different web-apps of scaled environments, this Thumbprint needs to be updated.1.1 In App_Config/ConnectionStrings.config file of the following web-apps one might need to update any/all of xconnect.collection.certificate, xdb.marketingautomation.operations.client.certificate, xdb.referencedata.client.certificate (if exist):
    – CM
    – CD (all CD web-apps)
    – MA-Ops
    – PRC (processing)

    1.2 One needs to update the value of key validateCertificateThumbprint in App_Config/AppSettings.config file in following WebApps.
    – XC-Collect
    – XC-RefData
    – XC- Search
    – MA-Rep
    – MA-Ops

    1.3 <CertificateThumbprint> Tag’s value of Config/production/Sitecore.IdentityServer.Host.xml in following WebApp:
    – Si (Sitecore Identity)Once these configuration files of various Web-Apps has been updated, restart these Web-Apps.

  2. ┬áIf the above doesn’t solve the issue, following Web-App configurations also needs to be changed like below. Open the Configuration tab, and check for “Certificate” – all the Thumbprint needs to be updated where it is referring to old/incorrect Thumbprint:2.1 CM:
    Open the CM web-app in Azure –>Go to Configuration Tab –> And edit the certificates’ configuration.
    Make sure you update the Thumbprint value to valid/correct Thumbprint.
    – Cortex Reporting Client Certificate
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Collection Certificate
    – XDB MA Ops Client Certificate
    – XDB MA Reporting Client Certificate
    – XDB Reference Data Client Certificate
    2.2 SI:
    Update the valid/correct Thumbprint for Certificate Configuration in Sitecore-Identity WebApp as well.
    Replace the expired/incorrect thumbprint for “Certificate Thumbprint” & “WEBSITE_LOAD_CERTIFCATES”

    2.3 CDs:
    Go to the configuration tab for each CD server and update the thumbprint value for the following configuration:
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Collection Certificate
    – XDB MA Ops Client Certificate
    – XDB Reference Data Client Certificate

    2.4 Cortex Processing:
    From the configuration node, update the following Certificate configuration with valid/correct Thumbprint for Cortex Processing Web-App:
    – Processing Engine Xconnect Collection Client Certificate Thumbprint
    – Processing Engine Xconnect Search Client Certificate Thumbprint
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Server Certificate Validation Thumbprint

    2.5 Cortext Reporting:
    Update the below two certificate configuration for Cortext Reporting:
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Server Certificate Validation Thumbprint

    2.6 Ma-Ops
    Update the WEBSITE_LOAD_CERTIFICATES thumbprint for Ma-ops

    2.7 Ma-Rep
    Update below two configurations with the correct/valid thumbprint value:
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Server Certificate Validation Thumbprint

    2.8 Prc (Processing)

    Update the below two Certificate configuration with appropriate certificate thumbprint value:
    – WEBSITE_LOAD_CERTIFICATES
    – XConnect Collection Certificate

    2.9 XC-Collect
    Update the configuration for XC-Collect as well:
    – XConnect Server Certificate Validation Thumbprint

    2.10 XC-RefData
    Update the “XConnect Server Certificate Validation Thumbprint” configuration for XC-RefData Web-App as well.

 

Once you update these configurations, restart these Web-Apps and then try again. The analytics tracker error due to the Certificate was no longer in your log files.

 

Happy Sitecoring…