Search Host Controller Service stuck in ‘Starting’

Symptoms

When you try to create a new search service application in SharePoint 2013, you get an error back from New-SPEnterpriseSearchServiceApplication that indicates that the search services are not running on the computer.

If you look at the “Services on Server” page, you will notice that the “Search Host Controller Service” is stuck in the Starting state.

image 

Looking at the event log, you will see repeated errors from the service:

 

Event 1000

Log Name: Application

Source: Application Error

Level: Error

Description:

Faulting application name: hostcontrollerservice.exe, version: 15.0.4521.1000, time stamp: 0x519e34b6

Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737

Exception code: 0xe0434352

Fault offset: 0x0000000000008b9c

Faulting process id: 0xd8c

Faulting application start time: 0x01d0584c573dbfcd

Faulting application path: D:\Program Files\Microsoft Office Servers\15.0\Search\HostController\hostcontrollerservice.exe

Faulting module path: C:\Windows\system32\KERNELBASE.dll

Report Id: 95d19148-c43f-11e4-80dd-005056851adf

 

Event 1026

Log Name: Application

Source: .NET Runtime

Level: Error

Description:

Application: hostcontrollerservice.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.ServiceModel.CommunicationException

Stack:

at Microsoft.Ceres.HostController.WcfServer.WcfService.StartService()

at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

at System.Threading.ThreadHelper.ThreadStart()

 

Event 8193

Log Name: Application

Source: VSS

Level: Error

Description:

Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,…). hr = 0x80070005, Access is denied.

Operation:

Initializing Writer

Context:

Writer Class Id: {0ff1ce15-0201-0000-0000-000000000000}

Writer Name: OSearch15 VSS Writer

Writer Instance Name: OSearch15 Replication Service

Writer Instance ID: {d3326e3d-2c07-4bab-8019-d0c197d8bc4e}

 

Resolution

Correct the permissions issue in the registry

1. Open RegEdit

2. Edit the permissions on the following key to grant the local group called WSS_WPG full control of the following keys

HKLM\System\CurrentControlSet\Services\VSS\Diag
HKLM\System\CurrentControlSet\Control\ComputerName

This is needed so that SharePoint can create the following key:

image

Stop and then re-provision the service

1. Run the following script to force stop the service that is stuck in starting:

$server = Read-Host “Server Name”

$ServiceInstance = Get-SPServiceInstance -Server:$server | ? {$_.TypeName -eq “Search Host Controller Service”}

$ServiceInstance.Unprovision()

2. Start your process of creating the search service application over again. For example, you can run:

Start-SPEnterpriseSearchServiceInstance $server

Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $server

3. You should then see that the host controller has successfully started

image

Advertisements

One thought on “Search Host Controller Service stuck in ‘Starting’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s