Hi
On a newly with AutoSPInstaller created SharePoint Server 2019 farm, the Distributed Cache fails to start unfortunaly.
In Central Administration > Manage services on server the Distributed Cache is listed to be non-compliant with the MinRole Single-Server-farm. When I click "Fix", the following error appears in the ULS log:
SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
However, there is a cache hots presend in the form. He is indeed not running.
HostName : CachePort Service Name Service Status Version Info
--------------------------- ------------------------ -------------- ------------
servername.domain.tld:22233 AppFabricCachingServices DOWN 3 [3,3][1,3]
I can delete the service instance with Remove-SPDistributedCacheServiceInstance. However, if I try to add it again with Add-SPDistributedCacheServiceInstance, the following error appears:
Add-SPDistributedCacheServiceInstance : Cannot start service AppFabricCachingService on computer '.'.
[...]
The Windows service has Startup Type = Automatic and the service account user is the SharePoint Services Account, a domain account. An inbound rule in the Windows Firewall is available and active. However, the Windows Firewall is disabled for the domain profile.
Between submitting the Add-SPDistributedCacheServiceInstance and when the error message (see above) appears, I can see with netstat -ano | findstr -i syn that a powershell process is trying to establish a connection to local IP on port 22233. What else can
I check to figure out what the problem's cause is? I am running out of ideas.
The farm is on October 2020 CU, all databases and servers under CA > Manage servers in this farm have the status "No action required".
So, a lot of posts I found online did unfortunately help me to solve this issue.
https://tishenko.com/sharepoint-2013-distributed-cache-not-starting/
https://sharepoint.stackexchange.com/questions/203621/appfabriccachingservice-status-down
https://collab365.community/distributed-cache-repairing-it-with-powershell/
https://social.technet.microsoft.com/Forums/ie/en-US/13efc79b-ba6d-40d8-bb0d-5ebc4dc151d4/app-fabric-distributedcache-service-not-getting-started-and-is-in-disabled-state?forum=sharepointadmin