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

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

From: Manuel Vacelet <manuel.vacelet_at_gmail.com>
Date: 2006-01-04 16:39:02 CET

2006/1/4, Konrad Rosenbaum <konrad@silmor.de>:
> On Wednesday 04 January 2006 11:28, Manuel Vacelet wrote:
> > From time to time commit fails with following error:
> > /db/transactions/274-1.txn/node.0.0': Permission denied
> > $> ls -l /<repo>/db/transactions
> > drw-rwSrw- 2 apache embed 4.0K Jan 3 18:32 274-1.txn
>
> Hmm, this one is interesting. It seems your subversion creates the
> transaction directory without x-right (x means "enter the directory" for
> directories). So it can't do anything else with the transaction after it
> created it.
>
> Check whether your start script for Apache sets umask. I suspect it is:
>
> umask 033
>
> while it should be:
> umask 022

There were no umask in my apache starting scripts (I checked
/etc/init.d/httpd and /usr/sbin/apachectl).

So I added an 'umask 022' at the beginning of /usr/sbin/apachectl but
It change nothing :/

I don't understand why sometimes it works without any problems and
sometimes not:
Just after my modification I ran ~110 transaction with my simple
'checkout/modify/commit' script without any problems and transaction
115 faild.

Moreover, the behaviour (from access_log point of view) is not the same
On a transaction that succeed (I looked for occurences of 271,
corresponding to a 'good' transaction):
xxx.xxx.xxx.xxx - manuel_vacelet [04/Jan/2006:16:04:27 +0100]
"CHECKOUT /svnroot/gpig/!svn/bln/271 HTTP/1.1" 201 332
xxx.xxx.xxx.xxx - manuel_vacelet [04/Jan/2006:16:04:27 +0100]
"CHECKOUT /svnroot/gpig/!svn/ver/271/stresstest/crx1053/test4/test_ba
tch/afile HTTP/1.1" 201 370

On a transaction that faild (I looked for occurences of 273,
corresponding to a 'bad' transaction):
(see 'extract in attacht')

PS: I tested the solution 'remove sticky bit' on db/transactions
directory. But it fail: directory created has no x right for group
(rw-rw-rw).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

  • application/octet-stream attachment: extract
Received on Wed Jan 4 16:47:39 2006

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