3

I tried to commit my modified file on SVN (RapidSVN). I got the following error:

Error while performing action: Commit failed (details follow): 
Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied

Can anyone help in solving this? Any suggestions are appreciated.

1
  • Good Question Supravat
    – Amit Bera
    Oct 22, 2014 at 11:11

2 Answers 2

2

I dont think you have this file /var/www/svn/repos/db/txn-current-lock on your machine. Have you checked whether it exists on your system or not. How can you give permission on files which does not belong to your system.

It might be issue which server admin should take care of.He should give proper permission to files.Ask them.

Check this http://www.jamison.org/2011/09/13/fixing-the-svn-txn-current-lock-permission-denied-error-in-subversion/

1
  • point ta gift korchi..Upvote from me
    – Amit Bera
    Oct 22, 2014 at 11:12
-1

You need to run the command(s) as root.

  1. Open the terminal
  2. Run the following command:

sudo su

3 . Then run the commands you want.

The following commands that you execute will get run as root, and hopefully you will get permission access the '/var/www/svn/repos/db/txn-current-lock' file.

4
  • When I try to get permission through terminal, getting the following error root@supravat:/# sudo chmod 777 -R /var/www/svn/repos/* sudo: /etc/sudoers.d is world writable root@supravat:/# Dec 31, 2013 at 11:23
  • Run "sudo su". Then just run the command that you want, without sudo. Just: chmod 777 -R /var/www/svn/repos/*
    – DevRandom
    Dec 31, 2013 at 11:28
  • The above command is run but getting error still. Dec 31, 2013 at 11:45
  • Using sudo for this is not a fix but more of a hammer approach.
    – dibs
    Sep 25, 2014 at 3:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .