Getting Access denied on 'db\txn-current-lock' on commit SVN on Windows

16,607

Solution 1

You need to assign Read / Write permissions on C:\Repositories\Test\ (recursive) for the user account, under which your server runs ('Network Service' by default).

(In the Windows Explorer go to "C:\Repositories" then Right-click on "Test" folder | Properties | Permissions tab).

See the Knowledge Base article "Permissions required to run VisualSVN Server".

Solution 2

I had the same problem on Windows XP SP3. The VisualSVN Server service "Log On As" needs to be Local System, NOT Local Service.

(Right-click My Computer -> Manage -> Services and Applications -> Services -> double click VisualSVN Server -> Log On -> select Local System account, then restart the service)

Share:
16,607
Isaac Levin
Author by

Isaac Levin

.Net Developer by trade, but usually jump into random other environments as needed.

Updated on July 29, 2022

Comments

  • Isaac Levin
    Isaac Levin over 1 year

    I am running VisualSVNServer on a remote server (Server 2007 R2) and Tortoise SVN 1.6.12 x64 on my Windows 7 machine. I have set up a repository on the server and am able to rep-browse to it and checkout. When I add files (which it lets me do) and then commit, I get the following error

    Can't open file 'C:\Repositories\Test\db\txn-current-lock': Access is denied

    I have set up read/write permissions from within VisualSVNServer and gave my user id Full Control over the repositories directory. I have read on how to fix this in Linux, but I am running Windows 7. Any help would be really appreciated. Thanks