How to Fix “/svnserver/svn/testrepo/db/txn-current-lock’: Permission denied”

Question :
When using TortoiseSVN and ssh command line to access svn server, i still can’t commit the file, can’t create the folder, can’t write the source code and always returned me this error message :

'/svnserver/svn/testrepo/db/txn-current-lock': Permission denied

Solution :
This is a common problem on subversion. A lot or developers and programmers who use subversion facing this kind or error. This is about the permissions issues. To solve it, make sure that the apache user has read/write access to your entire “testrepo” repository. To do that, chown -R apache:apache as below :

[root@svnserver ~]# chown -R apache:apache testrepo
2 comments
  1. Thyago Weber
    Thyago Weber
    January 8, 2013 at 12:56 am

    That was the only fix that actually worked to me. Thanks a lot.

    Reply
  2. Tambakoly
    Tambakoly
    August 6, 2018 at 12:36 pm

    Hi,
    This issue may be linked with SELinux.
    The SELINUX boolean value to make SVN write through webdav work is:
    setsebool -P httpd_unified=1

    Reply
Leave a Reply

Your email address will not be published. Required fields are marked *

SiteGround.com

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.

TRY FREE

* up to 30 days money back guarantee