locked
AppFabric Issues RRS feed

  • Question

  • I have installed the AppFabric (without hosting, only cache for session sharing) on two servers, since we want to retire our two old servers. I am using XML file for the configuration. On both the servers, i have specified the share location \\ShareName\FolderName for the XML file. This share location is on server #1. The setup is very similar to the old two servers. I have checked both the config files (old and new) and both are same as well, other than the server name difference.

    Now on the old server, i can run the commands just fine but on the new servers these are resulting in an error.

    I have pointed my local development to the two new nodes and the site is erroring out as well.

    Looks like i am missing some thing on these two new servers.

    Here is the new config

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core" />
      </configSections>
      <dataCache size="Small">
        <caches>
          <cache consistency="StrongConsistency" name="default" minSecondaries="0">
            <policy>
              <eviction type="Lru" />
              <expiration defaultTTL="10" isExpirable="true" />
            </policy>
          </cache>
        </caches>
        <hosts>
         <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
            hostId="1388016162" size="2047" leadHost="true" account="company\APPFAB1$"
            cacheHostName="AppFabricCachingService" name="APPFAB1.company.local"
            cachePort="22233" />
          <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
            hostId="1345140655" size="2047" leadHost="true" account="company\APPFAB2$"
            cacheHostName="AppFabricCachingService" name="APPFAB2.company.local"
            cachePort="22233" />
          
        </hosts>
        <advancedProperties>
          <securityProperties mode="None" protectionLevel="None" />
          <transportProperties maxBufferPoolSize="20971520" maxBufferSize="20971520" />
        </advancedProperties>
        <deploymentSettings>
          <deploymentMode value="RoutingClient" />
        </deploymentSettings>
      </dataCache>
    </configuration>


    Here is the config on the old servers

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core" />
      </configSections>
      <dataCache size="Small">
        <caches>
          <cache consistency="StrongConsistency" name="default" minSecondaries="0">
            <policy>
              <eviction type="Lru" />
              <expiration defaultTTL="10" isExpirable="true" />
            </policy>
          </cache>
        </caches>
        <hosts>
          <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
            hostId="972981661" size="2047" leadHost="true" account="company\WEBAPPFEB01VM$"
            cacheHostName="AppFabricCachingService" name="WEBAPPFEB01VM.company.local"
            cachePort="22233" />
          <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
            hostId="1418119184" size="2047" leadHost="true" account="company\WEBAPPFEB02VM$"
            cacheHostName="AppFabricCachingService" name="WEBAPPFEB02VM.company.local"
            cachePort="22233" />      
        </hosts>
        <advancedProperties>
          <securityProperties mode="None" protectionLevel="None" />
          <transportProperties maxBufferPoolSize="20971520" maxBufferSize="20971520" />
        </advancedProperties>
        <deploymentSettings>
          <deploymentMode value="RoutingClient" />
        </deploymentSettings>
      </dataCache>
    </configuration>


    I have checked the new servers and the service is running on both.

    Here is what i am seeing when i run the commands

    PS C:\Windows\system32> Get-CacheStatistics default
    
    
    Size              : 0
    ItemCount         : 0
    RegionCount       : 0
    RequestCount      : 0
    ReadRequestCount  : 0
    WriteRequestCount : 0
    MissCount         : 0
    IncomingBandwidth : 0
    OutgoingBandwidth : 0
    
    
    
    PS C:\Windows\system32> Get-CacheStatistics -HostName APPFAB1 -CachePort 22233
    
    Get-CacheStatistics : ErrorCode<ERRCAdmin003>:SubStatus<ES0001>:Time-out
    occurred on net.tcp://APPFAB1.company.local:22233.
    At line:1 char:1
    + Get-CacheStatistics -HostName APPFAB1 -CachePort 22233
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-CacheStatistics], DataCac
       heException
        + FullyQualifiedErrorId : ERRCAdmin003,Microsoft.ApplicationServer.Caching
       .Commands.GetCacheStatisticsCommand
    
    
    PS C:\Windows\system32> Get-CacheStatistics -HostName APPFAB2 -CachePort 22233
    
    Get-CacheStatistics : ErrorCode<ERRCAdmin003>:SubStatus<ES0001>:Time-out
    occurred on net.tcp://APPFAB2.company.local:22233.
    At line:1 char:1
    + Get-CacheStatistics -HostName APPFAB2 -CachePort 22233
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-CacheStatistics], DataCac
       heException
        + FullyQualifiedErrorId : ERRCAdmin003,Microsoft.ApplicationServer.Caching
       .Commands.GetCacheStatisticsCommand
    
    
    PS C:\Windows\system32> 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-CacheClusterHealth], Data
       CacheException
        + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheExc
       eption,Microsoft.ApplicationServer.Caching.Commands.GetCacheClusterHealthC
      ommand

    and here is the website error

    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    
    Parser Error Message: ErrorCode<ERRCA0018>:SubStatus<ES0001>:The request timed out.
    
    Source Error:
    
    
    Line 58:       <providers>
    Line 59:         <!-- cacheName="SomeSiteCache", ShareId differentiates the applications, this needs to be unique for each site -->
    Line 60:         <add name="AppFabricCacheSessionStoreProvider" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" sharedId="SomeSiteName" />
    Line 61:       </providers>
    Line 62:     </sessionState>


    I have searched around and nothing has helped to fix. So i am turning t the community for help and see if some one can shed any light on this.



    • Edited by Learning123 Thursday, August 6, 2015 5:03 PM
    Thursday, August 6, 2015 4:59 PM

Answers

  • Manually starting the service and then issuing Start-CacheCluster command fixed the issue for me.
    • Marked as answer by Learning123 Thursday, August 6, 2015 6:36 PM
    Thursday, August 6, 2015 6:35 PM