I patched my Test farm (SP2016 On premise, custom server role/single server farm) with the January 2023 SharePoint 2016 update and ran psconfig. Psconfig failed on first go with distributed cache and a “path” issue. Two timer jobs consistently started failing every 5 minutes since the update/psconfig:
User Profile Service Application Proxy – Feed Cache Full Repopulation Job
User Profile Service Application Proxy – Feed Cache Repopulation Job
In running commands on the farm, Use-CacheCluster failed stating no cache host was found. Checked the DC and the service was running and the service instance up and operational. So these 2 timer jobs consistently fail.
I removed/rebuilt the distributed cache and same issues. Use-CacheCluster fails to find a host. But if you run get-cachehost, it comes back as UP. Checked permissions on the cachehost and the registry key. Remote Registry is running. Have added entry in HOSTS file and that didn't help.
In the ULS logs, the correlation ID brings up several unexpected errors but they all point to the cache is "probably down" but it is not.
The Execute method of job definition Microsoft.Office.Server.UserProfiles.FeedCacheRepopulationJob (ID 30b5c6b9-ad9d-4f6a-a4ac-2b3340d73989) threw an exception. More information is included below. Unexpected exception in FeedCacheService.IsRepopulationNeeded: Unable to create a DataCache. SPDistributedCache is probably down... (Correlation=7e928ba0-8ffa-c0c7-b936-cd8408c9fc20)
The ULS log shows this and it's the same error that PSCONFIG threw:
Unexpected error while executing ExportCacheClusterConfig with parameters provider: 'SPDistributedCacheClusterProvider' , connectionString: ' (String points to the SQL server).
Unexpected Exception in getting cache cluster security config - Exception 'System.Management.Automation.ParameterBindingException: A parameter cannot be found that matches parameter name 'Path'.
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at Microsoft.SharePoint.DistributedCaching.Utilities.SPVelocityPowerShellWrapper.ExportCacheClusterConfig(String provider, String connectionString, String path)
at Microsoft.Office.Server.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
Retrieving all the caches:
PS C:\AdminTools\Powershell\scripts> Use-CacheCluster
$caches = Get-Cache | select cachename
foreach ($cache in $caches)
{$cache.CacheName}
Use-CacheCluster : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect to hosts in the cluster
At line:1 char:1
default
DistributedAccessCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedActivityFeedCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedActivityFeedLMTCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedBouncerCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedClientSideAppUpdateTimeCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedDefaultCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedFileLockThrottlerCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedHealthScoreCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedLogonTokenCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedResourceTallyCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedSearchCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedSecurityTrimmingCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedServerToAppServerAccessTokenCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedSharedWithUserCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedUnifiedGroupsCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
DistributedViewStateCache_43be6e76-508e-4fde-b6a3-9bb78468fc7c
Use-CacheCluster : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect to hosts in the cluster
At line:1 char:1
- Use-CacheCluster
- CategoryInfo : NotSpecified: (:) [Use-CacheCluster], DataCacheException
-
- FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Caching.Commands.UseCacheClusterCommand
PS C:\AdminTools\Powershell\scripts> Get-CacheHost
HostName : CachePort Service Name Service Status Version Info
SERVER.DOMAIN.COM:22233 AppFabricCachingService UP 0 [0,0][0,0]
I am unable to resolve this error. At one time in the many rebuilds Use-CacheCluster did come back but the cache host was not built. I checked two other farms (dev and prod) and both have the same DC behavior. They do not have the timer job issues since I rolled back the patch on Dev and will not patch Prod until I resolve my Test farm (clean vanilla farm). These were clean and no issues with the December 2022 or any other updates back 1 year. The issue with the CacheHost came about after the last month's updates, though I don't think that caused it. All 3 farms have the same cache host issue, but the DC/AppFabric service is operational and no obvious issues or errors in the dev/prod farms.