Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Distributed Cache service stuck in Starting Provisioning

$
0
0

Hello,

I'm having problem with starting/stopping Distributed Cache service in one of the SharePoint 2013 farm servers. Initially, Distributed Cache was enabled in all the farm servers by default and it was running as a cluster. I wanted to remove it from all hosts but one (APP server) using below PowerShell commands, which worked fine.

Stop-SPDistributedCacheServiceInstance -Graceful
Remove-SPDistributedCacheServiceInstance

But later I attempted to add the service back to two hosts (WFE servers) using below command and unfortunately one of them got stuck in the process. When I look at the Services on Server from Central Admin, the status says "Starting".

Add-SPDistributedCacheServiceInstance

Also, when I execute below script, the status says "Provisioning".

Get-SPServiceInstance | ? {($_.service.tostring()) -eq "SPDistributedCacheService Name=AppFabricCachingService"} | select Server, Status

I get "cacheHostInfo is null" error when I use "Stop-SPDistributedCacheServiceInstance -Graceful".

I tried below script,

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService" 
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Unprovision()
$serviceInstance.Delete()

,but it didn't work either, and I got below error.

"SPDistributedCacheServiceInstance", could not be deleted because other objects depend on it.  Update all of these dependants to point to null or 
different objects and retry this operation.  The dependant objects are as follows: 
SPServiceInstanceJobDefinition Name=job-service-instance-{GUID}

Has anyone come across this issue? I would appreciate any help.

Thanks!


Viewing all articles
Browse latest Browse all 21070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>