[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Newbie: txn-current-lock': Permission denied Problem

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Sat, 31 Jan 2009 16:53:26 -0800

On Sat, Jan 31, 2009 at 2:54 PM, Mikhail Berlioz Alexandrovich <
MikhailBerlioz55_at_gmail.com> wrote:

> Dear all,
>
> I'm trying to use svn for collaboration in school. The repository is on my
> personal workstation, is connected to the Internet via DSL, and accessible
> by my classmates via a domain name.
>
> I managed to get something right last semester. I successfully made a
> repository in /svn/mfe (I'm using Linux). The contents and permissions of
> /svn/mfe is:
>
>
> drwxr-xr-x 2 root root 4.0K 2009-01-31 16:30 conf/
> drwxr-sr-x 6 root root 4.0K 2009-01-31 16:31 db/
> -r--r--r-- 1 root root 2 2008-09-09 13:40 format
> drwxr-xr-x 2 root root 4.0K 2008-09-09 13:40 hooks/
> drwxr-xr-x 2 root root 4.0K 2008-09-09 13:40 locks/
> -rw-r--r-- 1 root root 229 2008-09-09 13:40 README.txt
>

Note that with this permission, only root has write access to these
directories.
Ideally you should not be setting root ownership to these directories.
Create an owner/group called svn/svn. Then add you and your freinds to the
svn group. Give write access to both owner and group. This should pretty
solve your problem.

>
>
> The name of the directory that me and my classmates used is "200809" (I was
> surprised there's no "/svn/mfe/200809" directory). We were able to use this
> repository with no problems - it was really useful. I created passwords for
> everybody in /svn/mfe/conf/passwd, and I think they used TortoiseSVN to
> access the repository.
>
> Now it's the new semester, and I want to make a new directory called
> "200901", and I'm having a lot of trouble. Here's what I'm doing from my
> home directory:
>
> $ mkdir 200901
> $ cd 200901
> $ svn import -m "Initial Import" . file:///svn/mfe/200901
>
> which results in:
>
> svn: Can't open file '/svn/mfe/db/txn-current-lock': Permission denied
>
> Then I tried:
>
> $ cd ..
> $ svn import -m "Initial Import" 200901 file:///svn/mfe/200901
>
> which results in the exact same error message. Trying to skin a cat in
> another manner, I went to my Windows machine, right-clicked and chose
> "TortoiseSVN | RepoBrowser". For the URL I chose "svn://192.168.55.2/mfe"
> (the IP address of my Linux box on my local home network) and pressed OK.
> In the right hand pane I saw exactly what I expected to see:
>
> * svn://192.168.55.2/mfe
> * 200809

This succeeded only because you likely used root as the user when connecting
from your tortoisesvn to the repository, while you likely used your own
user/passwd from linux.

>
>
> And all the files I expected to see were in the 200809 directory. Next I
> right-clicked in the left hand pane and chose "Create Folder" (I noticed an
> option "Add Folder", but I don't know what the difference between the two
> are) and successfully created a folder called 200901. TortoiseSVN now
> showed:
>
> * svn://192.168.55.2/mfe
> * 200809
> * 200901
>
> I was even able to add a test file to 200901 using TortoiseSVN. I went
> back to my Linux box, and checked out the project using:
>
> $ svn checkout file:///svn/mfe/200901
> A 200901-StructuredFinance/testfile.txt
> Checked out revision 314.
>
> I modified this file, and did an "svn commit", but got an error message:
>
> $ svn commit
> svn: Commit failed (details follow):
> svn: Can't open file '/svn/mfe/db/txn-current-lock': Permission denied
> svn: Your commit message was left in a temporary file:
> svn: '/home/mikhail/academia/200901/svn-commit.tmp'
>
> I can't commit anything, in fact. I tried:
>
> $ touch foo
> $ svn add foo
> A foo
> $ commit foo
>
> and I get the same error message:
>
> $ svn commit
> svn: Commit failed (details follow):
> svn: Can't open file '/svn/mfe/db/txn-current-lock': Permission denied
> svn: Your commit message was left in a temporary file:
> svn: '/home/mikhail/academia/200901/svn-commit.tmp'
>
> I really dislike programming on my Windows box, so I definitely want to get
> svn access to my repository from my Linux machine working.
>
> Can some kind soul *please* help me with this? I really am at wit's end
> and don't have the faintest clue how to go about fixing this.
>
> I hope I gave enough details. If there are any other details that might
> help in diagnosing this problem, please ask.
>
> Thanks!
> Mikhail
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1082710

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-01 01:54:16 CET

This is an archived mail posted to the Subversion Users mailing list.