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

Re: svn: is not a working copy

From: bijayant kumar <bijayant4u_at_yahoo.com>
Date: 2007-03-29 13:49:53 CEST

Thanks Ryan,
                     It did worked for me and my problem has been sorted out. And i am extremely sorry for my mistake. I was in very tension, thats why i did a silly mistake.
Thanks and Regards

Ryan Schmidt <subversion-2007a@ryandesign.com> wrote: Please keep the discussion on the mailing list by using the Reply To
All feature of your email program when you reply. More below:

On Mar 29, 2007, at 06:18, bijayant kumar wrote:

> Hello Ryan,
> First of all thanks for your quick reply. When i
> do svn commit it gives me an error like this
> svn: Commit failed (details follow):
> svn: Can't create directory '/var/lib/svn/bijayant_repos/db/
> transactions/2-1.txn': Permission denied
> svn: Your commit message was left in a temporary file:
> svn: '/home/bijayant/bijayant_svn/svn-commit.2.tmp'
> and on server error log :-
> [Thu Mar 29 16:43:32 2007] [error] [client] Could
> not create activity /svn/bijayant_repos/!svn/act/b35e3cf7-
> ce2c-0410-9a9d-c71648dcb52c. [500, #0]
> [Thu Mar 29 16:43:32 2007] [error] [client] could
> not begin a transaction [500, #13]
> [Thu Mar 29 16:43:32 2007] [error] [client] Can't
> create directory '/var/lib/svn/bijayant_repos/db/transactions/
> 2-1.txn': Permission denied [500, #13]
> I have checked permission of my repository it is like something :-
> ls -l /var/lib/svn/bijayant_repos/
> -rw-r--r-- 1 root root 229 Mar 29 14:27 README.txt
> drwxr-xr-x 3 root root 4096 Mar 29 14:55 bijayant_svn
> drwxr-xr-x 2 root root 4096 Mar 29 14:49 conf
> drwxr-xr-x 2 root root 4096 Mar 29 14:27 dav
> drwxr-sr-x 5 root root 4096 Mar 29 14:55 db
> -r--r--r-- 1 root root 2 Mar 29 14:27 format
> drwxr-xr-x 2 root root 4096 Mar 29 14:27 hooks
> drwxr-xr-x 2 root root 4096 Mar 29 14:27 locks
> It seems that it is a permission issue. But i am not sure what
> should be the permission. Please help me.

It's easiest if you decide on just one repository access method. [1]
In your case, I recommend you decide on http://, since you already
set that up. Do not check out any working copies using the file://
access method.

Change your repository so that it is owned by the user under which
your apache server runs, for example "apache", "www" or "nobody",
depending on your OS. Then apache will have no problems writing to
it. Something like "sudo chown -R apache:apache /var/lib/svn/

To prevent access to the repository using the file:// protocol,
change the permissions so that only apache can read it, with
something like "sudo chmod -R go-rx /var/lib/svn/bijayant_repos"

[1] It's possible to use more than one simultaneously, but it's
easier if you just go with a single one.

To reply to the mailing list, please use your mailer's Reply To All  
Bijayant Kumar
 Send instant messages to your online friends http://uk.messenger.yahoo.com 
Received on Thu Mar 29 13:50:26 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.