Forum Discussion
Event ID 6398
Use-CacheCluster
Get-CacheHost
It will report UP, DOWN, or UNKNOWN.
HostName : CachePort Service Name Service Status Version Info
-------------------- ------------ -------------- ------------
SHARE1:22233 AppFabricCachingService UP 3 [3,3][1,3]
SHARE2:22233 AppFabricCachingService DOWN 3 [3,3][1,3]
- May 31, 2018
Ok cool, so you've got something wrong with SHARE2.
On SHARE2, you can remove it as a Dist Cache and re-add it. You should also check the Windows Firewall (or other host-based FW/network FW between SharePoint servers if applicable) to verify the ports are open for AppFabric. Out of the box, SharePoint will add the exception and you'll find it listed under AppFabric.
- James BegentJun 01, 2018Copper Contributor
OK, so https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/remove-spdistributedcacheserviceinstance?view=sharepoint-ps says "Removes an instance of the distributed cache service from a local server" - I go to SHARE2, do the Remove and Add, then run the query again.
But...
I start SharePoint 2013 Management Shell (Run As Administrator). There are lots of error messages, there's a common theme that the thing it's trying to process is 'null' and won't work.
I try the first command anyway to see if I can fix it.
Remove-SPDistributedCacheServiceInstance : Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again.
At line:1 char:1
+ Remove-SPDistributedCacheServiceInstance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:SPCmdletRemoveD...ServiceInstance) [Remove-SPDistributedCacheServiceInstance], SPCmdletException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveDistributedCacheServiceInstanceIn Services, it says that AppFabricCachingService should start automatically but it's stopped. If I start it the service stops after a few minutes with Event ID 7034 "The AppFabric Caching Service service terminated unexpectedly."
The event logs don't have any other errors.