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

Unable to Update Service Account for SharePoint Distributed Cache

$
0
0

I am trying to change the account used for distributed cache from the farm account to a less privileged service account. I perform the following.

Stop-SPDistributedCacheServiceInstance -Graceful -Verbose

$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq "AppFabricCachingService"}
$accnt = Get-SPManagedAccount -Identity 'domain\account'
$cacheService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy()

Get-SPServiceInstance | where typename -like "*cach*" | Start-SPServiceInstance

The account name changes and the AppFabric Caching Service starts.

However, afterwards I cannot connect to the cache cluster anymore.

Use-CacheCluster
Get-CacheClusterHealth
Get-CacheClusterHealth : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect to hosts in the cluster
At line:1 char:1+ Get-CacheClusterHealth+ ~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : NotSpecified: (:) [Get-AFCacheClusterHealth], DataCacheException+ FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Cachi
   ng.Commands.GetAFCacheClusterHealthCommand

Changing back to the farm account allows it to function again.

Get-CacheClusterHealth

Cluster health statistics
=========================

HostName = server1
-------------------------

    NamedCache = DistributedBouncerCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.42
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedActivityFeedLMTCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.45
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedServerToAppServerAccessTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.35
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedDefaultCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.35
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedViewStateCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.37
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedLogonTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.35
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedActivityFeedCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.40
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedAccessCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.30
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedSecurityTrimmingCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.30
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedSearchCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.52
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00


HostName = server2
-------------------------

    NamedCache = DistributedActivityFeedLMTCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.47
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedLogonTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.37
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedSearchCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.52
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedBouncerCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.45
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedSecurityTrimmingCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.30
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedAccessCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.30
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedActivityFeedCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.42
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedDefaultCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.35
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedServerToAppServerAccessTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.35
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00

    NamedCache = DistributedViewStateCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Healthy               = 1.40
        UnderReconfiguration  = 0.00
        NotPrimary            = 0.00
        InadequateSecondaries = 0.00
        Throttled             = 0.00


Unallocated named cache fractions
---------------------------------

    NamedCache = DistributedAccessCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.58

    NamedCache = DistributedActivityFeedCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.13

    NamedCache = DistributedActivityFeedLMTCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 6.93

    NamedCache = DistributedBouncerCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.03

    NamedCache = DistributedDefaultCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.38

    NamedCache = DistributedLogonTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.33

    NamedCache = DistributedSearchCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 6.68

    NamedCache = DistributedSecurityTrimmingCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.58

    NamedCache = DistributedServerToAppServerAccessTokenCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.38

    NamedCache = DistributedViewStateCache_c88016fe-e006-4f1a-9efc-1a8e870dacd7
        Unallocated fraction     = 7.23

How do I get the account changed successfully?


Viewing all articles
Browse latest Browse all 21070

Trending Articles



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