You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mikhail Berlioz Alexandrovich <Mi...@gmail.com> on 2009/01/31 22:54:23 UTC

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

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


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

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=1082162

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Mikhail Berlioz Alexandrovich <Mi...@gmail.com>.
On Sat, Jan 31, 2009 at 7:53 PM, Hari Kodungallur <hk...@gmail.com>wrote:

>
> On Sat, Jan 31, 2009 at 2:54 PM, Mikhail Berlioz Alexandrovich <
> MikhailBerlioz55@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.
>


Hari, you were correct on all accounts.  I created an svn group, made myself
a member, made all the files in /svn/mfe group writable, and blammo, it
worked!


Thanks for your help!

It's so strange that Debian didn't create an svn  group...

Thanks!
Mikhail

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Hari Kodungallur <hk...@gmail.com>.
On Sat, Jan 31, 2009 at 2:54 PM, Mikhail Berlioz Alexandrovich <
MikhailBerlioz55@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@subversion.tigris.org].

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

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 31, 2009, at 16:54, Mikhail Berlioz Alexandrovich wrote:

> 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
>
>
> The name of the directory that me and my classmates used is  
> "200809" (I was surprised there's no "/svn/mfe/200809" directory).

This should not surprise you. The directory /svn/mfe is a database in  
a format that only Subversion understands. You will not see inside it  
any of the files or directories that you have imported into the  
Subversion repository, and you should not make files or directories  
inside this directory. For these tasks, you must use a Subversion  
client. The README.txt in the above directory explains this, to some  
extent.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by JeremyP <je...@jeremyp.net>.
On 31 Jan 2009, at 22:54, Mikhail Berlioz Alexandrovich wrote:

>
> 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
>

< SNIP >

>  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
>
> 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:
>

Other people have replied and told you about the file permissions and  
users, but I'm intrigued about why you are not using the svn protocol  
when logged into your Linux box.  It's obviously set up and working  
because you are using it from Windows.  Instead of typing:

svn import -m "Initial Import"  .  file:///svn/mfe/200901

you could have used

svn import -m "Initial Import"  .  svn://localhost/mfe/200901

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].