[OpenAFS] AFS Cache Problems with a subversion repository accessed from multiple machines

Matthias Braun matthias.braun@kit.edu
Wed, 04 Nov 2009 15:14:30 +0100


Hi,

we're running into a problem with the AFS Caches in combination with svn
here. It looks like an AFS bug and I don't have any more ideas on how to
debug it further. Somehow file access rights get messed up when creating
svn repositories (they're just a bunch of directories and files) while
accessing them from different machines.

Here's a sequence of commands that reproduces the bug for me:

> mkdir /afs/info.uni-karlsruhe.de/user/matze/r
> svnadmin create /afs/info.uni-karlsruhe.de/user/matze/r
> svn co svn+ssh://matze@ssh/afs/info.uni-karlsruhe.de/user/matze/r
Checked out revision 0.
> echo "A new file" > r/file
> svn add r/file 
A         r/file
> svn ci -m "test" r/file
Adding         r/file
Transmitting file data .
Committed revision 1.
> svn up r
svn: Can't open file
'/afs/info.uni-karlsruhe.de/user/matze/r/db/revprops/0/1': Permission
denied


Interestingly the problem disappears when I perform an "fs flushvolume"
on the ssh machine:

> ssh matze@ssh fs flushvolume /afs/info.uni-karlsruhe.de/user/matze/r
> svn up r
At revision 1.


Any ideas what goes wrong?

Greetings,
	Matthias