1

We have a repository running on subversion 1.6.6 on Ubuntu server. While adding a new file to the working copy and committing it to the repo, we get the error

Can't open file '/var/svn/mobilesync/db/txn-current-lock': Permission denied

What is the issue and what can I do about it ? Is it a matter of a lock created by a previous process instance that didn't get removed because of some error ?

Thank you,

UPDATE Here were the commands that I used to create the repo

1) sudo svnadmin create myrepo
2) sudo chown  www-data:www-data myrepo

2 Answers 2

3

I fixed this problem by changing the second command

sudo chown -R www-data:subversion myrepo

and then I was able to commit my files.

2
  • 1
    which parts are to be customized for my usage? Apr 17, 2011 at 19:55
  • @Maysam www-data should be replaced with the user you want to own the files, subversion should be replaced with the group, and myrepo should be replaced with your SVN repository.
    – Max Nanasy
    Apr 16, 2013 at 22:56
0

I faced this problem when i imported another repository into my own svn server. And the following command solved my issue:

$sudo chown -R www-data:www-data myrepo

fyi, you need to log in your svn server, check the permission of existed repositories, in my case it's www-data etc. and use 'chown' to change the owner and group of your repository in terms of owner setting of your other repositories.

-R is used as recursive option. "myrepo" means the name of your repository.

i think "www-data" is used for apache server which is used inside my svn server.

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.