Reputation: 667
After migrating a repository from an older version of VisualSVN server to a newer version on a fresh machine I see this error message:
Failed to load the AuthzVisualSVNReposRelativeAccessFile: Can't open file 'C:\PATH_TO\VisualSVN-WinAuthz.ini': Access is denied
On SOF I have seen solutions to the following error message:
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)
The solution to this question states that the VisualSVN-WinAuthz.ini
file is missing.
In my case both files (VisualSVN-WinAuthz.ini
VisualSVN-WinAuthz.ini
) are present.
The above solution does not work for this error message.
What could cause the "Access is denied" error message?
Upvotes: 0
Views: 781
Reputation: 30662
When you move VisualSVN Server from one computer to another you need to read the article KB166: Migrating VisualSVN Server to another computer.
This Access is denied
error means that the VisualSVNServer
service cannot access and read the VisualSVN-WinAuthz.ini
file (per-repository authz file).
This means that the server's service account (it is Network Service, by default) does not have permissions to read this file, and the permissions have to be fixed. Read the article KB37: Permissions required to run VisualSVN Server.
When your VisualSVN Server runs under the default built-in Network Service account, you can follow these steps to configure permissions automatically:
IMPORTANT: When you move VisualSVN Server from one computer to another, you have to install the same version that runs on the original server computer. Do not mix upgrade and migration tasks.
Upvotes: 1