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

Commit casual fails: Can't open file '../db/transactions/331-1.txn/node.0.0': Permission denied (svn,FSFS, apache)

From: J. Mehnert <j.mehnert_at_melsensor.de>
Date: 2005-10-27 15:22:39 CEST

Hi, folks!

I have a strange problem with subversion (FSFS) on apache.
 From time to time commit fails with permission problems:

(logs from rapidsvn)
Execute: Commit
Error while performing action: Commit failed (details follow):
Can't open file
'/Depot/WWW/Repository/mel/db/transactions/320-1.txn/node.0.0':
Permission denied
Ready

A typical session looks like this
---------------------------------------------------------------------------
   log from rapidsvn:

   * first: try to commit some test data, everything went ok

   Execute: Commit
   Modified: C:/src/rep/test/test1.txt
   Committed revision 332.
   Updating...
   Ready

   * second try to commit an other working copy, action fails
   * (no other access to the server in the meantime)

   Execute: Add
   Add: c:/src/rep/m2dexample/linux/rtai/Makefile
   Updating...
   Ready

   ...

   Execute: Add
   Add: c:/src/rep/m2dexample/linux/rtai/TODO.TXT
   Updating...
   Ready

   Execute: Execute
   Ready

   Execute: Execute
   Ready

   Execute: Add
   Add: c:/src/rep/m2dexample/README.TXT
   Updating...
   Ready

   Execute: Execute
   Ready

   Execute: Commit
   Error while performing action: Commit failed (details follow):
   Can't open file
'/Depot/WWW/Repository/mel/db/transactions/332-1.txn/node.0.0':
Permission denied
   Ready

   * look for permissions in whole repository tree, nothing wrong.
   * in particular:
   * root@an /Repository/mel/db/transactions]ls -l
   * total 0
   * ...
   * drw-rwSrw- 2 apache apache 48 2005-10-07 14:50 307-6.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-07 14:50 307-7.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-07 14:51 307-8.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-07 14:51 307-9.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-12 16:28 312-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-12 16:29 312-2.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-17 14:25 313-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-18 14:51 314-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-20 14:59 320-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-21 11:29 325-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-21 12:41 325-2.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-21 12:46 325-3.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-25 15:41 327-1.txn
   * drw-rwSrw- 2 apache apache 48 2005-10-27 12:42 332-1.txn

   * third: try to commit again, nothing changed everything went ok

   Execute: Commit
   Added: C:/src/rep/m2dexample/README.TXT
   Added: C:/src/rep/m2dexample/linux/rtai/Makefile
   Added: C:/src/rep/m2dexample/linux/rtai/README.TXT
   Added: C:/src/rep/m2dexample/linux/rtai/TODO.TXT
   Added: C:/src/rep/m2dexample/linux/rtai/start3
   Added: C:/src/rep/m2dexample/linux/rtai/stop3
   Committed revision 333.
   Updating...
   Ready
---------------------------------------------------------------------------

I googled a little and found some similar cases, but unfortunately there
is no useful hint.

John Duprey
http://subversion.tigris.org/servlets/ReadMsg?listName=dev&msgNo=105353
http://article.gmane.org/gmane.mail.eyebrowse.user/1340
http://svn.haxx.se/users/archive-2005-09/0228.shtml
http://www.mail-archive.com/users@httpd.apache.org/msg03700.html
Vlad Skvortsov
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=32986
Erik Ferlanti
http://svn.haxx.se/users/archive-2005-08/0758.shtml
Yann DIRSON
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=34106
http://subversion.tigris.org/servlets/ReadMsg?listName=users&msgNo=34932
http://svn.haxx.se/users/archive-2005-06/0507.shtml
http://svn.haxx.se/users/archive-2005-06/1629.shtml
---------------------------------------------------------------------------

Sometimes retry helps, sometimes not. The key to make it work again is
to restart apache.
It seams that wrong permission of the real file is not necessary,
but it seams to be a symptom of the problem, because I (and the other
people) found some random files with owner and group root. If you look
at my permissions this was not a problem in this case.

My system:
gobolinux linux-2.6.11.9-Gobo
subversion 1.2.1
apache 2.0.54
neon 0.24.7
php 5.0.4 (installed, problem remains if deactivated)
reiserfs format 3.6
all made with gcc 3.4.3
Celeron, 512MB ram

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 27 16:58:46 2005

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.