Distributed cache service is not configured on server(s). SharePoint 2019

Amanda Berry 0 Reputation points
2024-09-11T15:43:35.98+00:00

I have been trying to resolve this issue for awhile now and keep running into issues.

I have tried everyone from Stefan's blog post including the May 2023 CU: https://blog.stefan-gossner.com/2023/02/16/trending-issue-distributed-cache-problems-after-applying-january-2023-cu/

Get-CacheClusterHealth
Get-CacheClusterHealth : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect to hosts in the cluster
At line:1 char:1
+ Get-CacheClusterHealth
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-CacheClusterHealth], DataCacheException
    + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Cachi
   ng.Commands.GetCacheClusterHealthCommand

Here is ClusterConfig.xml

-<advancedProperties>
<partitionStoreConnectionSettings leadHostManagement="false"/>
-<securityProperties>
-<authorization>
<allow users="WSS_ADMIN_WPG"/>
<allow users="WSS_WPG"/>
</authorization>
</securityProperties>
</advancedProperties>

AppFabric Caching Service stays down and disables itself no matter if I set it to Automatic or not.
If I try to start it on Central Admin I get this error:
Dynamic operations can only be performed in homogenous AppDomain.

Get-Cachehost gives me this

PS C:\Users\ab041222> Get-CacheHost
HostName : CachePort              Service Name            Service Status Version Info
--------------------              ------------            -------------- ------------
SHAREPT.mydomain.org:22233 AppFabricCachingService DOWN           3 [3,3][1,3]

Any help would be greatly appreciated. Thank you!!

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2024-09-12T02:02:48.2933333+00:00

    Hi @Amanda Berry ,

    You need to remove the instance and re-add it. Try following commands:

    Remove-SPDistributedCacheServiceInstance
    
    Add-SPDistributedCacheServiceInstance
    

    You could follow the instruction from below technet to repair the Distributed Cache host.

    http://technet.microsoft.com/en-us/library/jj219613.aspx#repair


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.