Fix svn Can ' t open file '/xxx/xxx/db/txn-current-lock ' Error

Source: Internet
Author: User
Tags chmod

Today with a non-root account, add two accounts with the sudo command, and then restart the service ...

Can normally take out things, but not to submit ...

The error of the report is: cannot open the file "/var/svn/svnrepos/db/txn-current-lock": Insufficient permissions

I found the solution, the original link: http://blog.sina.com.cn/s/blog_7139569d0100woar.html

After installing the SVN server in the Linux environment, it can be checked out and submitted normally in Linux environment, after checking out the existing repository on the Windows PC, the result is the following error when submitting:
Svn:can ' t open file '/home/svn/db/txn-current-lock ': Permission denied

The cause of this problem is to build the SVN server, including the creation of repository directory/HOME/SVN directory of all subdirectories and files are under the root user, so under the root user check out, submit no problem. It is problematic to access from the client on a Windows PC, because only those with manager permissions can have full control of the repository directory, and when Windows is accessed from the client, because it is the users user group, the repository does not have permission to modify it. So cannot be submitted.

Workaround: Add users ' Full Control permissions to repository on the server, and execute the following command for all files and subdirectories under the/HOME/SVN directory to have read and write access to the users

Execute the following command:

    chmod -R o+rw /home/svn   

   #这里的路径是你项目库的根目录




You can now check out and submit normally from under the Windows client.


I also tried other methods, but failed:

Direct $:cd/home/svn/ishare/ishare for your project name

sudo chmod-r 777 db But it is not possible to find the 777 Linux distribution version is different ...

Resolving svn Can ' t open file '/xxx/xxx/db/txn-current-lock ' ERROR

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.