Cluster computing AppFabric缓存群集-Can';t启动第二台主机

Cluster computing AppFabric缓存群集-Can';t启动第二台主机,cluster-computing,appfabric,Cluster Computing,Appfabric,我一直在使用2台主机运行AppFabric群集时遇到问题。我已经验证了它仅适用于1台主机(即,当我浏览web应用程序时,缓存项计数会增加),但当我尝试将第2台主机加入群集时,我遇到以下异常: Failed to read remote registry key from host 289851-cache2: Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCAdmin026>:SubSta

我一直在使用2台主机运行AppFabric群集时遇到问题。我已经验证了它仅适用于1台主机(即,当我浏览web应用程序时,缓存项计数会增加),但当我尝试将第2台主机加入群集时,我遇到以下异常:

Failed to read remote registry key from host 289851-cache2: 
Microsoft.ApplicationServer.Caching.DataCacheException: 
ErrorCode<ERRCAdmin026>:SubStatus<ES0001>:Remote registry access failed on host 289851-cache2.
Check if the required permissions are available. ---> System.IO.IOException: The network path was not found.

    at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str)

    at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view)

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)

    --- End of inner exception stack trace ---

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)

    at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetServerVersion(String 

hostName),DistributedCache.CacheAdmin,Error
无法从主机289851-cache2读取远程注册表项:
Microsoft.ApplicationServer.Caching.DataCacheException:
错误代码:子状态:主机289851-cache2上的远程注册表访问失败。
检查所需的权限是否可用。-->System.IO.IOException:未找到网络路径。
位于Microsoft.Win32.RegistryKey.Win32 ErrorStatic(Int32 errorCode,字符串str)
位于Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey、字符串machineName、RegistryView视图)
位于Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(字符串主机名,布尔可写)
---内部异常堆栈跟踪的结束---
位于Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(字符串主机名,布尔可写)
位于Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetServerVersion(字符串
主机名),DistributedCache.CacheAdmin,错误
其中289851-cache2是第二台主机的名称

尽管异常显示为“检查权限”,但我已将缓存连接帐户更改为我的域帐户,并授予无处不在的访问权限-该帐户是两台AppFabric主机上的管理员,对网络共享具有完全访问权限,并且我以管理员身份运行AppFabric PowerShell。但是在我运行Start CacheCluster之后,第一台主机的状态将为UP,而第二台主机的状态将为STARTING。我需要重新启动机器来执行任何其他操作,因为它不允许我停止、启动或终止进程,即使是通过任务管理器或控制面板中的服务

我们正在运行Windows Server 2008 64位,安装了WindowsServerAppFabricsetupx64_6.0(不是6.1,因为我认为它需要Windows Server 2008 R2),配置存储在网络共享上

主机1的DistributedCacheAgent.config:

  <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="1739552749" size="1228" leadHost="true" account="<domain account>" name="localhost" cacheHostName="AppFabricCachingService" cachePort="22233" />

主机2的DistributedCacheAgent.config:

  <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234" hostId="1739552749" size="1228" leadHost="false" account="<domain account>" name="localhost" cacheHostName="AppFabricCachingService" cachePort="22233" />


提前感谢。

如何解决此问题:


+1我也看到过这种情况,但我还没有弄清原因……如果您有兴趣关注,我已经设法让Microsoft的人回复了我在AppFabric论坛()上的论坛帖子。请查看@Lester引用的上述论坛条目。它详细说明了我们是如何解决这个问题的。