Share via

Distributed Cache not working on a renamed SharePoint SE server

Keith Vollero 101 Reputation points
2026-06-01T14:21:36.6166667+00:00

We renamed our SharePoint SE WFE server. It's a small farm, just a WFE server and SQL server backend. The system is working, but the Distributed Cache service will not start.

It throws the error: 'cacheHostInfo is null'.

User's image

Checking the ClusterConfig.xml file, I see that the old server name is still there in the <hosts> section.

I've tried the 'Remove-SPDistributedCacheServiceInstance' / 'Add-SPDistributedCacheServiceInstance', but No Joy.

How can I correct the Cluster Config file?

Also, in case anyone knows the answer to this: I do not have the AppFabric Caching service available in my Services. Is SharePoint SE supposed to have that service? My installation does not.

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments

3 answers

Sort by: Most helpful
  1. Vergil-V 14,765 Reputation points Microsoft External Staff Moderator
    2026-06-01T15:31:44.0966667+00:00

    Hi Keith Vollero

    Based on my research, the behavior where the AppFabric Caching service is no longer visible is expected by design. 

    image

    Reference: Manage the Distributed Cache service in SharePoint Server - SharePoint Server | Microsoft Learn 

     

    With that in mind, I would not recommend manually editing the ClusterConfig.xml file, as this may lead to further inconsistencies. 

    Additionally, may I clarify one point: did you run the Rename-SPServer command as part of the renaming process? 

    If not, you may consider the following steps to help narrow down and verify the current state: 

    1/ Verify what the farm recognizes as the server name 

    Get-SPServer | Select Name, Role 
    

     Also check the cache host status: 

    Get-SPCacheHost 
    

    2/ Run the Rename-SPServer command 

    Rename-SPServer -Identity "OLDSERVERNAME" -Name "NEWSERVERNAME" 
    

    After running this, execute Get-SPServer again to confirm that the new name is updated correctly. 

    3/ Force remove any stale cache service instance 

    # Find and delete the orphaned/stale instance 
    $instanceName = "SPDistributedCacheService Name=SPCache" 
    $serviceInstance = Get-SPServiceInstance | Where-Object { 
        ($_.service.tostring()) -eq $instanceName -and 
        ($_.server.name) -eq $env:computername 
    } 
      
    # Inspect it first 
    $serviceInstance | Select Server, Status, Id 
      
    # Then delete it 
    $serviceInstance.Unprovision() 
    $serviceInstance.Delete() 
    

     4/ Re-add the cache service 

    Add-SPDistributedCacheServiceInstance
    

    Then verify again:

    Get-SPCacheHost 
    Get-SPServiceInstance | Where-Object { $_.TypeName -eq "Distributed Cache" } 
    

    I hope this provides additional direction. 


    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.

    Was this answer helpful?


  2. Keith Vollero 101 Reputation points
    2026-06-01T14:25:16.7966667+00:00

    No luck following this procedure. The 'Add-SPDistributedCacheServiceInstance' command threw the following error:

    "No such host is known"

    User's image

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-06-01T14:22:02.9566667+00:00

    Renaming the SharePoint server leaves the old cache host registration in the farm, which causes the cacheHostInfo is null error. The ClusterConfig.xml file is generated from the farm configuration; it is not edited directly. The cache host must be removed and re‑added in SharePoint so that the configuration (and ClusterConfig.xml) is rebuilt with the new server name.

    Use the supported repair sequence for a non‑functioning Distributed Cache host:

    1. On the renamed SharePoint SE server, open SharePoint Management Shell as Farm Administrator.
    2. Remove the Distributed Cache service instance:
         Remove-SPDistributedCacheServiceInstance
      
    3. If this fails (common when the host name changed), manually delete the service instance and then re‑add it: For SharePoint Server Subscription Edition
         $instanceName = "SPDistributedCacheService Name=SPCache"
         
         $serviceInstance = Get-SPServiceInstance | ? { ($_.Service.ToString()) -eq $instanceName -and ($_.Server.Name) -eq $env:COMPUTERNAME }
         
         if ($serviceInstance -ne $null)
         {
             $serviceInstance.Delete()
         }
      
      After this manual deletion completes, run again:
         Add-SPDistributedCacheServiceInstance
      
    4. Verify in Central Administration → Application Management → Manage services on server that Distributed Cache is listed and its status is Started.

    This process updates the farm’s cache configuration (including ClusterConfig.xml) to use the new server name; no direct editing of ClusterConfig.xml is required or supported.

    Regarding AppFabric: in SharePoint Subscription Edition, the Distributed Cache implementation is different from SharePoint 2013–2019, so the legacy AppFabric Caching Service entry is not expected in Services. Management is done only through the SharePoint Distributed Cache cmdlets such as Add-SPDistributedCacheServiceInstance and Remove-SPDistributedCacheServiceInstance.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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