While running SIF
to install 9.0.1 the powershell script stops during the Install-SitecoreConfiguration @xconnectParams
step which deploys the xConnect
instance giving the following exception.
TerminatingError(Start-Service): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to start service 'Sitecore XConnect Search Indexer - sc901.xconnect-IndexWorker (sc901.xconnect-IndexWorker)'."
Install-SitecoreConfiguration : Failed to start service 'Sitecore XConnect Search Indexer - sc901.xconnect-IndexWorker
(sc901.xconnect-IndexWorker)'.
At C:\Sitecore\901\install.ps1:44 char:1
+ Install-SitecoreConfiguration @xconnectParams -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
Install-SitecoreConfiguration : Failed to start service 'Sitecore XConnect Search Indexer - sc901.xconnect-IndexWorker
(sc901.xconnect-IndexWorker)'.
At C:\Sitecore\901\install.ps1:44 char:1
+ Install-SitecoreConfiguration @xconnectParams -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
The problem is the Sitecore XConnect Search Indexer
Windows Service cannot be started.
Looking at the Windows EventLogs
when trying to start that service it appears an Exception
occurs when trying to construct the type LicenseException
preventing it from starting.
Service cannot be started. System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type 'Sitecore.Nexus.Licensing.LicenseException' was not found.
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.CreateAppDomainAndIndexer()
at Sitecore.XConnect.Search.Indexer.IndexerAppDomainHost.Start()
at Sitecore.XConnect.Search.Indexer.Service.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
This exception prevents the Sitecore 9 install from completing.