From last few days, my analytics tracker was not working. So I thought to fix this issue today.
Issue/Problem Detail:
When I start “Sitecore Marketing Automation Engine –
When I checked the log file, below issue was writting:
2020-06-01 10:01:12.623 +05:30 [Error] Failed to start the Marketing Automation Engine service. System.InvalidOperationException: This configuration has not been initialized. Please call the initialize method before using it.
2020-06-01 10:44:06.196 +05:30 [Error] Error initializing XConnect client. System.AggregateException: One or more errors occurred. —> Sitecore.XConnect.XdbCollectionUnavailableException: An error occurred while sending the request. —> System.Net.Http.HttpRequestException: An error occurred while sending the request.
When I checked my xConnect instance, it was working fine.
After searching a lot, I found the source of the issue. The culprit was non-signed certificates.
So, I moved these un signed certificate to the Intermediate Certification Authorities.
Executed below powershell command to check the un-signed certificates:
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject}
Execute the below command to move your un-signed certificate to Intermediate Certificate Authorities:
Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Move-Item -Destination Cert:\LocalMachine\CA
Started the Sitecore Marketing Automation Engine. This time it got start.
It fixed my issue.
Thanks for your time.
References:
SITECORE CLI LOGIN ERROR - /.well-known/openid-configuration: Bad Gateway
WALKTHROUGH OF ASP.NET RENDERING SDK
SETTING UP ASP.NET RENDERING SDK
DISABLE SITECORE PUBLISHING SERVICE
SETUP SITECORE PUBLISHING SERVICE
SITECORE CONNECT CONNECTOR - CONTENT HUB