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

db/transactions/274-1.txn/node.0.0': Permission denied

From: Manuel Vacelet <manuel.vacelet_at_gmail.com>
Date: 2006-01-04 11:28:04 CET

Hi all,

I have a cumbersome issue with subversion 1.2.3 (problem remains after
a migration from subversion 1.1.4) on RHEL-3 with "official" RPMS. My
repositories are in FSFS.

From time to time commit fails with following error:
/db/transactions/274-1.txn/node.0.0': Permission denied

And the only workaround I found is to restart apache.

It is something similar to this message:
http://svn.haxx.se/users/archive-2005-10/0992.shtml

I checked what Konrad Rosenbaum asked to the original poster:
> *Is /db/ and all its subdirectories owned and writable by Apache?

Yes:
$> ls -l /<repo>/
...
drwxr-sr-x 5 apache embed 4.0K Jan 3 17:06 db
...

$> ls -l /<repo>/db
...
drwxr-sr-x 2 apache embed 36K Jan 3 17:06 revprops
drwxr-sr-x 2 apache embed 36K Jan 3 17:06 revs
drwxr-sr-x 4 apache embed 4.0K Jan 3 18:34 transactions
-rw-r--r-- 1 apache embed 37 Nov 29 15:06 uuid
-rw-r--r-- 1 apache embed 0 Nov 29 15:06 write-lock

$> ls -l /<repo>/db/transactions
drw-rwSrw- 2 apache embed 4.0K Jan 3 18:32 274-1.txn

> (While you are at it: remove any sticky bits.)

Is it safe?
Since subversion create repositories with this sticky bits this
solution seems strange. Moreover when I create a directory within
db/transaction 'by hand' (mkdir foo), foo have the right rights:
$> ls -l /<repo>/db/transactions
drwxr-sr-x 2 apache embed 4.0K Jan 4 11:17 foo

> *Are you using other access methods on this repository?

Yes I runs svnadmin dump every nights as 'apache' user and svnadmin
hotcopy every Sunday ad 'apache' user too.
My users can only access to subversion repositories through dav

> With different UIDs?

What UIDs are ?

> *Is the Apache configured to change its UID for some domains? Maybe this is an Apache problem in this case?

My apache conf:
<Location <repo>>
    DAV svn
    SVNPath <repo>
    AuthzSVNAccessFile <repo>/.SVNAccessFile
    Require valid-user
    AuthType Basic
    AuthName "Subversion Authorization (<repo>)
    AuthUserFile /etc/httpd/conf/htpasswd
</Location>

And I never change apache UID

Can anyone help me ?
Thanks,
Manuel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 4 11:32:07 2006

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.