【问题标题】:Failed to load the AuthzVisualSVNReposRelativeAccessFile: Can't open file 'VisualSVN-WinAuthz.ini': Access is denied无法加载 AuthzVisualSVNReposRelativeAccessFile:无法打开文件“VisualSVN-WinAuthz.ini”:访问被拒绝
【发布时间】:2019-12-16 21:22:42
【问题描述】:

将存储库从旧版本的 VisualSVN 服务器迁移到新机器上的新版本后,我看到以下错误消息:

Failed to load the AuthzVisualSVNReposRelativeAccessFile: Can't open file 'C:\PATH_TO\VisualSVN-WinAuthz.ini': Access is denied

在 SOF 上,我看到了以下错误消息的解决方案:

Failed to load the AuthzVisualSVNReposRelativeAccessFile: Can't open
 file 'C:\Repositories\MyRepo\conf\VisualSVN-WinAuthz.ini': The system
 cannot find the file specified. (OS 2)

链接:VisualSVN - set up repository and set access to use Basic Windows Authentication - login results in 403?

此问题的解决方案指出VisualSVN-WinAuthz.ini 文件丢失。

在我的情况下,两个文件 (VisualSVN-WinAuthz.iniVisualSVN-WinAuthz.ini) 都存在。

上述解决方案不适用于此错误消息。

什么可能导致“访问被拒绝”错误消息?

【问题讨论】:

    标签: svn tortoisesvn visualsvn-server


    【解决方案1】:

    当您将 VisualSVN 服务器从一台计算机移动到另一台计算机时,您需要阅读文章 KB166: Migrating VisualSVN Server to another computer

    Access is denied 错误意味着VisualSVNServer 服务无法访问和读取VisualSVN-WinAuthz.ini 文件(每个存储库的授权文件)。

    这意味着服务器的服务帐户(默认为网络服务)没有读取此文件的权限,并且权限必须固定。阅读文章KB37: Permissions required to run VisualSVN Server

    当您的 VisualSVN 服务器在默认的内置网络服务帐户下运行时,您可以按照以下步骤自动配置权限:

    1. 启动 VisualSVN 服务器管理器控制台。
    2. 导航到操作 |属性 |存储
    3. 取消选中并返回自动调整权限选项。点击应用

    重要提示:当您将 VisualSVN 服务器从一台计算机移动到另一台计算机时,您必须安装在原始服务器计算机上运行的相同版本。不要混合升级和迁移任务。

    【讨论】:

    • 在我的情况下,错误是无法加载 AuthzVisualSVNAccessFile:无法打开文件 '\\authz-windows':访问被拒绝。 (OS 5) 访问被拒绝。 [client xxx] Access denied: 'User' GET Utilities:/ [client xxx] VisualSVN Server 2.5 这发生在 Windows 服务器 hyper-v 升级之后(运行 svn 的主机未更改或移动)。经过大量搜索,我发现了这篇文章并能够解决问题。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-14
    • 2016-04-17
    • 2012-10-16
    • 1970-01-01
    • 2020-11-06
    • 1970-01-01
    相关资源
    最近更新 更多