Looking for a supported method to remove orphaned servers from SharePoint 2013 Farm.

Initial process that led to current situation:

  • Removed server from farm by using PSConfigGui

Upon navigation to Production Sites, server is still counted as a front-end for 3rd Party Licensing Purposes.

Still populated in Central Admin with Distributed Cache service still tagged on server.

Attempted to remove by clicking on Remove Server

Received Error: cachehostinfo is null

Checking ULS Viewer revealed the following error A failure occurred SPDistributedCacheServiceInstance::UnprovisionInternal()... isGraceFulShutDown 'False' , isGraceFulShutDown, Exception 'System.InvalidOperationException: cacheHostInfo is null at Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheServiceInstance.UnProvisionInternal(Boolean isGraceFulShutDown)'

  • You may need to clarify what you mean by "orphan". Does the server no longer exist? or The server thinks it is a member of a Farm that does not exist? – dinos.kon Nov 27 '19 at 17:13
  • I actually ended up having to add quite a bit. Thanks dinos.kon. I found a solution. – Keybonesabi Nov 27 '19 at 18:45
$SPFarm = Get-SPFarm
$cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString()
$cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local
$cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName);
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq "ServerName"}

Used search query: sharepoint remove server cachehostinfo is null

Led me to the following Page: Habanero Consulting

StackExchange Reference with similar issue found here.

| improve this answer | |

For SharePoint 2013, Microsoft's article at here describes the process.

| improve this answer | |
  • This is the initial process. My question regards the failure after this process. – Keybonesabi Dec 4 '19 at 17:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.