1

我刚刚使用一台主机(本地计算机)安装并配置了 AppFabric 缓存集群。我使用 SQL 作为提供者。

当我使用管理员权限启动缓存管理 Windows PowerShell 时,出现以下错误,

Use-CacheCluster : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect
to hosts in the cluster
At line:1 char:62
+ Import-Module DistributedCacheAdministration;Use-CacheCluster <<<<
    + CategoryInfo          : NotSpecified: (:) [Use-CacheCluster], DataCacheE
   xception
    + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheExc
   eption,Microsoft.ApplicationServer.Caching.Commands.UseCacheClusterCommand

当我打开 DCacheAdministration.log 时,它显示如下,

Host XXX is Reachable.,DistributedCache.CacheAdmin,Verbose,2013-5-2 13:54:06.042
Failed to read remote registry key from host XXX: Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCAdmin026>:SubStatus<ES0001>:Remote registry access failed on host XXX. Check if the required permissions are available and the host is not down. ---> System.ComponentModel.Win32Exception: The network path was not found at Microsoft.ApplicationServer.Caching.AdminApi.RemoteRegistry64.OpenRemoteConnection(String hostName) at Microsoft.ApplicationServer.Caching.AdminApi.RemoteRegistry64.OpenConnection(String hostName, String registryPath)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,2013-5-2 13:54:08.053

远程注册服务已启动。哪些帐户需要 regedit.exe 中的读取权限?我已经为 LOCAL SERVICE(因为远程注册服务使用它作为登录)和 NETWORK SERVICE(我用作缓存服务帐户)提供了权限。我是否必须授予任何其他权限才能使注册表项可访问?或者我需要检查的其他事项是什么?

请帮忙

4

3 回答 3

2

我通过启用远程注册表服务并运行它解决了同样的问题。我认为 AppFabric 尝试使用域名连接到远程服务器(本地计算机)来操作注册表。

于 2015-01-27T00:31:43.100 回答
1

您在错误消息“无法从主机 XXX 读取远程注册表项”中报告的 HOSTNAME 中究竟看到了什么。XXX是本地机器的机器名还是机器的 FQDN 还是指向完全不同的机器???

如果它指向本地机器名称或本地机器的 FQDN,则尝试在 HOSTS 文件中为指向 127.0.0.1 的主机名添加一个条目,看看是否有帮助。如果没有,请尝试重新启动远程注册表服务,然后从同一 PowerShell 缓存管理窗口运行Restart-CacheCluster并查看是否有帮助。

于 2013-05-02T19:54:58.357 回答
0

它是 FQDN。我也尝试编辑主机文件,并且 alos 重新启动了服务和缓存集群,但导致了同样的问题。

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.

    127.0.0.1   <My FQDN>
于 2013-05-03T05:19:19.750 回答