2011-09-07 1 views
5

appfabric을 사용하고 서버에 사용할 수없는 오류가 발생하는 일부 코드가 있습니다. http://msdn.microsoft.com/en-us/library/ff921031.aspx의 지침에 따라 캐시 클러스터가 다운 된 것으로 나타났습니다. 관리자로 powershell을 열고 Start-CacheCluster를 실행했습니다. 몇 분 후 나는 오류 메시지가 나타납니다powershell에서 appfabric 캐시 클러스터를 시작하려는 액세스가 거부되었습니다.

Service cannot be started. System.TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.ConfigManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Fabric.Common.ConsoleSink' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\System32\AppFabric\DistributedCacheService.exe.config' is denied. (C:\Windows\System32\AppFabric\DistributedCacheService.exe.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\System32\AppFabric\DistributedCacheService.exe.config' is denied. 
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBU... 

더 AppFabric 경험이있는 사람이 전에 본 적이 :

Start-CacheCluster : Could not start cluster: ErrorCode<ERRCAdmin025>:SubStatus 
<ES0001>:Time-out occurred in starting the cluster. 
At line:1 char:19 
+ Start-CacheCluster <<<< 
    + CategoryInfo   : NotSpecified: (:) [Start-CacheCluster], DataCach 
    eException 
    + FullyQualifiedErrorId : ERRCAdmin025,Microsoft.ApplicationServer.Caching 
    .Commands.StartCacheClusterCommand 

이벤트 로그를 확인이 보여?

고마워요

답변

7

Microsoft, Windows, Application Server-System ServicesAdmin 로그를보십시오. 때때로이 로그는 일반 이벤트 로그에없는 정보를 더 제공합니다. 캐시 클러스터 모니터링에 대한 자세한 내용은 Health Monitoring Tools을 참조하십시오.

문제와 관련하여. 내가 말할 수있는 유일한 생각은 캐시 클러스터를 시작한 후 구성을로드하고 실패하기 때문에 결국 AppFabric 캐싱 서비스가 충돌합니다 (위에서 언급 한 이벤트 로그에 해당 정보가 표시됨).

구성 파일 DistributedCacheService.exe.config뿐 아니라 구성 저장소 (Velocity 구성 DB 또는 구성 XML)에 액세스 할 수있는 계정으로 실행되도록 AppFabric Caching Service가 구성되어 있는지 확인하십시오.

+3

Windows Server 용 \ Program Files \ AppFabric 1.1에있는 DistributedCacheService.exe.config 파일에 서비스 계정 권한 부여 나를위한 속임수. 감사 데이브! –

4

관리자로 "캐싱 관리 Windows PowerShell"을 실행해야합니다.

+0

작동합니다. 감사합니다. –

2

당신은 AppFabricCachingService 로그온 DistributedCacheService.exe.config에 읽기 액세스 권한이 있음을 확인 했습니까?

제 경우 XML 공급자를 사용하고 "CacheConfig"라는 구성 공유가 있습니다. 내 서버가 도메인에 가입되어 있지 않아 캐시 호스트에 대해 로컬 "AppFabric"사용자를 구성했습니다. 나는 스크립트에 설정을 PowerShell을 사용하고 있습니다 :

나는 Start-CacheCluster 문이 동일한 액세스에 실패 스크립트가 귀하의 질문에 같은 오류를 거부 실행
Register-CacheHost -Provider XML -ConnectionString "\\MY-HOST\CacheConfig" -Account "AppFabric" -CachePort 22233 -ClusterPort 22234 -ArbitrationPort 22235 -ReplicationPort 22236 -HostName MY-HOST 
Add-CacheHost -Provider XML -ConnectionString "\\MY-HOST\CacheConfig" -Account "AppFabric" 
#... 
Start-CacheCluster 
#... 

. 그런 다음 AppFabricCachingService 로그온을 확인하여 네트워크 서비스으로 설정되었음을 확인했습니다. C : \ Windows \ System32 \ AppFabric \ DistributedCacheService.exe.config에서 파일 사용 권한을 검사했을 때 AppFabric 사용자에 대한 읽기 권한이 있지만 네트워크 서비스에 대한 사용 권한이 없음을 발견했습니다. 이는 내게는 Register-CacheHost 또는 Add-CacheHost 애플릿은 캐시 호스트 계정과 서비스 계정이 같다고 가정합니다.

내 경우에 네트워크 서비스에 대한 읽기 권한을 추가하여 문제가 해결되었습니다.

0

내 AppFabric 서버에서 알 수없는 문제가 발생하여 문제가 발생했습니다. 나는 해결책을 찾기 위해 많은 시간을 보냈다. 마지막으로 내가 성공적으로 시도한 유일한 방법은 AppFabric을 제거/다시 설치하는 것입니다. 다시 한 번 설정을 구성하십시오. 희망이 도움이!

0

appfabric 캐시 서비스를 두 번 이상 설치했기 때문에 같은 문제가 발생했습니다. hostId가 변경 될 때마다 ClusterConfig.xml 및 DistributedCacheService.exe.config 파일과 동일한 hostId 여야합니다.