You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christer Edvartsen <co...@starzinger.net> on 2010/10/28 13:54:45 UTC
Problems with Subversion, NFS and locking
Here is our setup:
We have the repository stored locally on one machine. We have several
other machines that has an active read+write mount to our SAN. We have a
symlink to this mount in /srv/library on all machines.
In /srv/library we have a working copy of our repos. When doing svn up
/srv/library on any of our machines we are able to update the working copy
used by all machines at once. Usually this works like a charm.
Some weeks ago we switched from https (webdav) to svn+ssh when talking to
our repos. Along with this switch came a locking issue. Sometimes when
running svn up we get an error that some of the directories in the working
copy we are trying to update is locked. They are not locked in Subversion
so I'm guessing it's NFS that is causing these problems. These problems
seems to occur randomly.
1: Why did this never happen when we used webdav?
2: Is there an easy way to make the locking issues disappear?
--
Christer Edvartsen
http://cogo.wordpress.com/
Re: Problems with Subversion, NFS and locking
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Thu, Oct 28, 2010 at 9:54 AM, Christer Edvartsen <co...@starzinger.net> wrote:
> Here is our setup:
>
> We have the repository stored locally on one machine. We have several
> other machines that has an active read+write mount to our SAN. We have a
> symlink to this mount in /srv/library on all machines.
>
> In /srv/library we have a working copy of our repos. When doing svn up
> /srv/library on any of our machines we are able to update the working copy
> used by all machines at once. Usually this works like a charm.
> Some weeks ago we switched from https (webdav) to svn+ssh when talking to
> our repos. Along with this switch came a locking issue. Sometimes when
> running svn up we get an error that some of the directories in the working
> copy we are trying to update is locked. They are not locked in Subversion
> so I'm guessing it's NFS that is causing these problems. These problems
> seems to occur randomly.
NFS changes do not propagate simultaneously to all NFS clients. This
makes various components of the commit asynchronous, as far as other
NFS clients are concerned, and can lead to some fascinating
interactions unless the authors of subversion thought really hard
about such issues and handled locking *very* carefully.
> 1: Why did this never happen when we used webdav?
> 2: Is there an easy way to make the locking issues disappear?
Only perform, or allow, direct commits on one server: the host that
used to provide HTTPS or svn access might be a good candidate.
Re: Problems with Subversion, NFS and locking
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Forwarding back to the list.
(@Christer, sorry for the duplicate)
Christer Edvartsen wrote on Thu, Oct 28, 2010 at 17:01:50 +0200:
> On Thu, 28 Oct 2010 16:05:47 +0200, Daniel Shahaf <d....@daniel.shahaf.name>
> wrote:
> > Christer Edvartsen wrote on Thu, Oct 28, 2010 at 15:54:45 +0200:
> >> Some weeks ago we switched from https (webdav) to svn+ssh when talking
> to
> >> our repos. Along with this switch came a locking issue. Sometimes when
> >> running svn up we get an error that some of the directories in the
> >> working
> >> copy we are trying to update is locked.
> >
> > What is the exact error message?
> >
>
> It says permission denied on some file that ends in /.svn/lock, that does
> not exist. I'm not at work now so I can't get the exact message.
>
> >> They are not locked in Subversion
> >
> > How did you determine this?
> >
> > (And are you talking about working copy administrative locks or about
> > the 'svn lock' kind of locks)
>
> Well, I have tried to force the error by just doing svn up several times
> in a row (and making sure no one is actually doing any commits in between).
> Suddenly it says that some random directory is locked, even if no one has
> done anything between the svn up's.
>
>
>
> --
> Christer Edvartsen
> http://cogo.wordpress.com/