문제

I got the below error

Distributed cache service is not enabled in this deployment.

I did Add-SPDistributedCacheServiceInstance the old error run a way and the below one come :(

Error

Distributed cache service is unexpected configured on server(s The distributed cache service instance should not be configured for the failing servers. Remove the distributed cache service instances from the failing servers.

도움이 되었습니까?

해결책

So, basically DC is not provisioned properly.I would do following steps.

  • Login on the server with Farm administrator account.
  • Run this

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

    $serviceInstance.Unprovision() $serviceInstance.Delete()

  • Run Remove-SPDistributedCacheServiceInstance, Once it completed sucessfully

  • Verfiry the AppFabric Service is stopped...Check from Service console on the server, Also check from the Central admin ? system setting > manage Service on server. Make sure both says Stopped in front of DC.
  • Now Run the Add-SPDistributedCacheServiceInstance

  • Wait for couple of minutes and Now check the Status of the DC. Run these commands. Use-CacheCluster followed by Get-CacheHost.

this is good article for the reference: https://blogs.msdn.microsoft.com/sambetts/2014/03/19/sharepoint-2013-distributed-cache-appfabric-troubleshooting/

Edit:

try this

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

If($seriveInstance -ne $null)
{
$serviceInstance.Delete()
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top