配置appfabric缓存服务时获取“在保存对群集配置文件的更改时拒绝访问”

时间:2013-05-15 07:30:34

标签: appfabric distributed-caching appfabric-cache

我陷入了这个......我正在尝试使用appfabric为缓存集群配置第一个节点。我的架构将是:

  1. 4个群集节点
  2. 所有计算机都在域内
  3. 配置XML文件将位于NAS文件夹中
  4. 我创建了一个域用户并为NAS文件夹添加了读/写权限。在机器内部,我甚至尝试将用户添加到管理员组,并且用户配置为缓存服务帐户但是当“配置AppFabric”应用程序结束时我收到错误,但奇怪的是应用程序开始编写.xml配置文件,但它只是在错误输出之前删除它!

    我得到的错误是:

    System.Management.Automation.CmdletInvocationException: ErrorCode<ERRCMS0002>:SubStatus<ES0001>:Access denied while saving the changes to cluster configuration file. ---> Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCMS0002>:SubStatus<ES0001>:Access denied while saving the changes to cluster configuration file. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
    at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
    at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
    at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
    at System.Configuration.Internal.WriteFileContext.Complete(String filename, Boolean success)
    at System.Configuration.Internal.InternalConfigHost.StaticWriteCompleted(String streamName, Boolean success, Object writeContext, Boolean assertPermissions)
    at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.WriteCompleted(String streamName, Boolean success, Object writeContext)
    at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
    at Microsoft.ApplicationServer.Caching.GlobalConfigReaderWriter.Save()
    --- End of inner exception stack trace ---
    at Microsoft.ApplicationServer.Caching.GlobalConfigReaderWriter.Save()
    at Microsoft.ApplicationServer.Caching.Configuration.Commands.NewCacheClusterCommand.BeginProcessing()
    --- End of inner exception stack trace ---
    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
    at System.Management.Automation.Runspaces.Pipeline.Invoke()
    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
    at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
    at System.Management.Automation.PowerShell.Invoke()
    at Microsoft.ApplicationServer.Configuration.DistributedCacheProxy.NewCacheCluster(String provider, String connectionString, String size)
    at Microsoft.ApplicationServer.Configuration.DistributedCacheNodePage.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e)
    

    有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

确保您的用户实体(运行配置向导的用户实体)具有对NAS文件夹的读/写权限。

相关问题