You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Doug Martin <ma...@slpasoft.com> on 2008/03/01 15:11:18 UTC

Subversion Problem: Can't get exclusive lock on file

Very new to the version control process and Subversion and having a 
recurring problem. I can find references to this problem in various 
lists but no solution that I can wrap my head around.

Running two mac platforms - MacBook Plus (10.4.11) and iMac (10.4.11). I 
have svn installed on both machines and can create and populate 
repositories on either machine on local drive. When I mount the iMac 
from the MacBook I can create a repository on the mounted drive:

svnadmin create /Volumes/Macintosh\ 
HD/Users/user/Development/svn/new_sams - Works

However, when I try to import into the repository I get an error.

svn import /Library/WebServer/Documents/temp/ file:///Volumes/Macintosh\ 
HD/Users/user/Development/svn/new_sams/ -m "install"

svn: Can't get exclusive lock on file '/Volumes/Macintosh 
HD/Users/user/Development/svn/new_sams/db/transactions/0-1.txn/rev-lock': 
Operation not supported

-- 
Doug Martin, Ph.D.
Manager - Instructional Design Group
Adjunct Associate Professor of Audiology
University of Cincinnati 
513-556-6689
doug.martin@uc.edu


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

Re: Subversion Problem: Can't get exclusive lock on file

Posted by Tommy Nordgren <to...@comhem.se>.
On 2 mar 2008, at 02.10, Troy Curtis Jr wrote:

>
>
> On Sat, Mar 1, 2008 at 9:11 AM, Doug Martin <ma...@slpasoft.com>  
> wrote:
> Very new to the version control process and Subversion and having a
> recurring problem. I can find references to this problem in various
> lists but no solution that I can wrap my head around.
>
> Running two mac platforms - MacBook Plus (10.4.11) and iMac  
> (10.4.11). I
> have svn installed on both machines and can create and populate
> repositories on either machine on local drive. When I mount the iMac
> from the MacBook I can create a repository on the mounted drive:
>
> svnadmin create /Volumes/Macintosh\
> HD/Users/user/Development/svn/new_sams - Works
>
> However, when I try to import into the repository I get an error.
>
> svn import /Library/WebServer/Documents/temp/ file:///Volumes/Macintosh 
> \
> HD/Users/user/Development/svn/new_sams/ -m "install"
>
> svn: Can't get exclusive lock on file '/Volumes/Macintosh
> HD/Users/user/Development/svn/new_sams/db/transactions/0-1.txn/rev- 
> lock':
> Operation not supported
>
> --
> Doug Martin, Ph.D.
> Manager - Instructional Design Group
> Adjunct Associate Professor of Audiology
> University of Cincinnati
> 513-556-6689
> doug.martin@uc.edu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> I believe the issue here is that the filesystem that the repo is on  
> does not support exclusive file locking.  The solution here is to  
> not use filesystems that don't support exclusive file-locking.  I  
> don't know any of the details of how the MAC <-> MAC network file  
> sharing is implemented, but I think you are out of luck using that  
> file access method.  Stick to local drives or perhaps switch to NFS  
> or something like that.
>
> Troy
>
> -- 
> "Beware of spyware. If you can, use the Firefox browser." - USA Today
> Download now at http://getfirefox.com
> Registered Linux User #354814 ( http://counter.li.org/)


	This is an issue with Berkeley DB. I don't think FSFS repositories  
have this problem.
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from  
outer space.
On congratulations for a fantastic parody, the producer replies :  
"What parody?"

Tommy Nordgren
tommy.nordgren@comhem.se




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

Re: Subversion Problem: Can't get exclusive lock on file

Posted by Troy Curtis Jr <tr...@gmail.com>.
On Sat, Mar 1, 2008 at 9:11 AM, Doug Martin <ma...@slpasoft.com> wrote:

> Very new to the version control process and Subversion and having a
> recurring problem. I can find references to this problem in various
> lists but no solution that I can wrap my head around.
>
> Running two mac platforms - MacBook Plus (10.4.11) and iMac (10.4.11). I
> have svn installed on both machines and can create and populate
> repositories on either machine on local drive. When I mount the iMac
> from the MacBook I can create a repository on the mounted drive:
>
> svnadmin create /Volumes/Macintosh\
> HD/Users/user/Development/svn/new_sams - Works
>
> However, when I try to import into the repository I get an error.
>
> svn import /Library/WebServer/Documents/temp/ file:///Volumes/Macintosh\
> HD/Users/user/Development/svn/new_sams/ -m "install"
>
> svn: Can't get exclusive lock on file '/Volumes/Macintosh
> HD/Users/user/Development/svn/new_sams/db/transactions/0-1.txn/rev-lock':
> Operation not supported
>
> --
> Doug Martin, Ph.D.
> Manager - Instructional Design Group
> Adjunct Associate Professor of Audiology
> University of Cincinnati
> 513-556-6689
> doug.martin@uc.edu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
I believe the issue here is that the filesystem that the repo is on does not
support exclusive file locking.  The solution here is to not use filesystems
that don't support exclusive file-locking.  I don't know any of the details
of how the MAC <-> MAC network file sharing is implemented, but I think you
are out of luck using that file access method.  Stick to local drives or
perhaps switch to NFS or something like that.

Troy

-- 
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)