Share via


SharePoint 2013: Event ID 6398

Event ID 6398 Error:

  • Unexpected exception in FeedCacheService.IsRepopulationNeeded: Unable to create a DataCache. SPDistributedCache is probably down.

Checks:

Open up an elevated SharePoint Management Shell and run the following command:

  • Get-CacheHost 

See if it is showing the correct information.

If you try and start the Service on SharePoint Central Admin it gives you this error:  “CacheHostInfo is null”.

Check the DistributedCacheService.exe.config file and make sure it has all the information in. Check the registry key for AppFabric. If it has no info in then copy the info from the config file.

Export the Distributed Cache Config file:

Export the config file by running the following PowerShell commands:

  • Use-CacheCluster (if it gives you a "CacheHostInfo is Null error" then continue)
  • Export-CacheClusterConfig [C:\Name of File>.xml]

Edit the file with Notepad and make any changes and then save the file.

Import the Distributed Cache Config file:

Import the config file by running the following PowerShell commands:

  • Use-CacheCluster
  • Import-CacheClusterConfig [C:\Name of File>.xml] -Confirm:$false

Run the following commands:

$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 “Server Name”}
$serviceInstance.Delete()
Add-SPDistributedCacheServiceInstance
$cacheClusterInfo.CacheHostsInfoCollection

This takes a few minutes to run.
Start the AppFabric service in services.msc and go to Services under SharePoint Central Management and it should show started as well.