In some rare cases, right after the creation of a SharePoint 2019 farm, the Distributed Cache service could crash producing:
- .NET Runtime Error with Event Id 1026
- Application Error with Event Id 1000
And none of the other solutions are able to fix the service. In this case try to:
- stop the cache cluster
- export the cache cluster settings
- edit the settings by changing the partition count
- import the settings
- start and stop the service again
- revert back the configuration and start the cluster
with following scripts:
Use-CacheCluster
# Stop the Caching Services on all cache hosts in the cluster.
Stop-CacheCluster
# Export existing cache cluster configuration
Export-CacheClusterConfig -File c:\temp\appfabconfig.txt
# make a copy of "appfabconfig.txt" and name it "appfabconfig2.txt"
# Edit appfabconfig2.txt
# Change <caches partitionCount="256" to "128"
# Import the changes.
Import-CacheClusterConfig c:\temp\appfabconfig2.txt
# Start the Caching Services on all cache hosts in the cluster.
Start-CacheCluster
# Stop the Caching Services on all cache hosts in the cluster.
Stop-CacheCluster
# Import the original settings
Import-CacheClusterConfig c:\temp\appfabconfig.txt
# Start the Caching Services on all cache hosts in the cluster.
Start-CacheCluster
This should fix it. Reference Distributed Cache crashing under SharePoint 2019 running on WS2019