Share via


SharePoint 2016 Troubleshooting: Configuration Wizard failed with error ‘CacheHostInfo is null’

Environment

  • SharePoint 2016 Enterprise RTM
  • Windows Server 2012 R2

Scenario

Install SharePoint RTM and run the configuration wizard.

Issue

The installation completed successfully however, the SharePoint Products Configuration Wizard failed by throwing ‘CacheHostInfo is null’ error.

https://lh5.googleusercontent.com/cqq4s_-U3QZFVX0I7Bq9ejnI9kIVZFA4ed7eAB6sCXqWLMowMz2QlrqX79ZVnrMJmApXcAp0NR3OLyRgujB8UjbDNzdXVN2Qnw-30NpKaQAWw0B6K7FMI9kPh1sBun7QGzn4PwLo8BmZV7zLNw

Troubleshooting

1. Repair distributed cache

Tried to repair distributed cache on the server by executing the following line of PowerShell script

Get-SPServiceInstance
 
$s = Get-SPServiceInstance <<Distributed Cache GUID>>
 
$s.delete()
 
Add-SPDistributedCacheServiceInstance

For some reasons, the script throws following error on line Add-SPDistributedCacheServiceInstance:

Add-SPDistributedCacheServiceInstance : Could not load file or assemblly 'Microsoft. ApplicationServer.Caching.Configuration, Version=1.0.0.0, culture=neutral, PublicKeyToken=31bf3856ad364e35'or one of its dependencies. The system cannot find the file specified.

https://lh3.googleusercontent.com/pp3MU2apPyeM5StKwq1QiJf_5RydEDwEpVq5iN_Ik9RG-HQYnH_zrXxGoMl3Kil4UwX0BUBN7yUh2BuieRv4rRrQ81gmmzIfl5-il_Wj5IWR_k0oMlbPzTtjnog48Ff7-LhH4jWb5wCeqnCikA

 

2. Start AppFabric Caching Service

Started AppFabric Caching Service and add the SPDistributedCacheServiceInstance.

  https://lh6.googleusercontent.com/dKb2fkdwx1XGsIJlpTttlHOXXIMRP-yfTmm9F02g01oShgrjwfhNAtCIzOwS36mWS43fQllZ9GXA8c8YO9zhGmB57pTmWyZl4_7gdlfg2RLIf-3Xg3DsJkOyVexSoFzHyuddrHsop7RAWcI0wA

3. Install CU7 for AppFabric 1.1

Since running the configuration wizard again failed, downloaded and Installed Cumulative Update 7 (KB3092423) for Microsoft AppFabric 1.1 for Windows Server

https://support.microsoft.com/en-in/kb/3092423

4. Reboot

Restart the computer after applying this cumulative update package.

5. PS Script

After successfully installing the CU package, execute the following PowerShell script to remove the caching service instance:



            $SPFarm = Get-SPFarm      
                 $cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString()      
                 $cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local      
                 $cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);      
                 $instanceName ="SPDistributedCacheService Name=AppFabricCachingService"      
                 $serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq $env:computername}      
                 $serviceInstance.Delete()      

  https://lh4.googleusercontent.com/o4iOlpZoISGxLcpPFW0Ljc3oBP3Qy85HOLcauuJRmnD2s6sAUETL4X0o39UvBCG1Mbvt9E_95kOJDGuJmxlXK97j5-i8FlsFho8xFgbrYvXkIXN8EoyJ1V_NNO1lSQFPAH-tE9BpSwV5ggY6gw

6. Run the Configuration Wizard again

The configuration should be successful.