Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am experiencing an issue in production that I cannot replicate in development or QA environments. Occasionally (three times in the past couple months), I will get a rash of errors from AppFabric. The error is:

Type : Microsoft.ApplicationServer.Caching.DataCacheException, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Message : ErrorCode<ERRCA0017>:SubStatus<ES0002>:There is a temporary failure. Please retry later. (The request did not find the primary.)
Source : Microsoft.ApplicationServer.Caching.Client
Help link : http://go.microsoft.com/fwlink/?LinkId=164049
ErrorCode : 17
SubStatus : 1
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowException(Microsoft.ApplicationServer.Caching.ResponseBody)
Stack Trace :    at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody)
   at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion& version, String region)
   at Microsoft.ApplicationServer.Caching.DataCache.Get(String key, String region)

The only reference to the error that I could find was from 2011, and the asker had a setup where his servers had two network cards pointing to different networks. This is not our setup.

The error only occurs when the cache refreshes. It has happened more frequently of late, but still rarely.

Does anyone have any idea what this error could mean or how I can fix it?

Edit:

We are running in High Availability mode. Here's our config (scrubbed).

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=" />
    </configSections>
    <dataCache size="Small">
        <caches>
            <cache consistency="StrongConsistency" name="default">
                <policy>
                    <eviction type="Lru" />
                    <expiration defaultTTL="10" isExpirable="true" />
                </policy>
            </cache>
            <cache consistency="StrongConsistency" name="SOMETHING_FlagCache"
                secondaries="1">
                <policy>
                    <eviction type="Lru" />
                    <expiration defaultTTL="10" isExpirable="true" />
                </policy>
            </cache>
            <cache consistency="StrongConsistency" name="SOMETHING_Cache"
                secondaries="1">
                <policy>
                    <eviction type="Lru" />
                    <expiration defaultTTL="10" isExpirable="true" />
                </policy>
            </cache>
            <cache consistency="StrongConsistency" name="SOMETHING_RewardsCache"
                secondaries="1">
                <policy>
                    <eviction type="Lru" />
                    <expiration defaultTTL="10" isExpirable="true" />
                </policy>
            </cache>
            <cache consistency="StrongConsistency" name="SOMETHING_SessionCache"
                secondaries="1">
                <policy>
                    <eviction type="Lru" />
                    <expiration defaultTTL="10" isExpirable="true" />
                </policy>
            </cache>
        </caches>
        <hosts>
            <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
                hostId="1764693834" size="2048" leadHost="true" account="AF01$"
                cacheHostName="AppFabricCachingService" name="AF01"
                cachePort="22233" />
            <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
                hostId="587354742" size="2048" leadHost="false" account="AF02$"
                cacheHostName="AppFabricCachingService" name="AF02"
                cachePort="22233" />
            <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
                hostId="1842114464" size="2048" leadHost="false" account="AF03$"
                cacheHostName="AppFabricCachingService" name="AF03"
                cachePort="22233" />
            <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
                hostId="84878562" size="2048" leadHost="false" account="AF04$"
                cacheHostName="AppFabricCachingService" name="AF04"
                cachePort="22233" />
        </hosts>
        <advancedProperties>
            <partitionStoreConnectionSettings leadHostManagement="false" />
            <securityProperties>
                <authorization>
                    <allow users="Production" />
                    <allow users="service" />
                    <allow users="service2" />
                </authorization>
            </securityProperties>
        </advancedProperties>
    </dataCache>
</configuration>
share|improve this question
    
Can you provide more information than this? Like how you have the cache cluster setup, is it in HA mode, etc? –  Brent Pabst Nov 14 '12 at 19:22
    
@BrentPabst, please see my edits. –  gregsdennis Nov 14 '12 at 21:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.