You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by stuart <st...@ntlworld.com> on 2010/12/11 00:47:40 UTC

"No locks available" how do I fix it?

>svn ci -m "svn lock trouble" .
svn: Commit failed (details follow):
svn: Can't get exclusive lock on file
'/media/stuart/svn/ca/db/txn-current-lock': No locks available

I had done a svn mkdir and svn moved a bunch of files to it plus adding
some more - is that relevant?

I tried a

 svn ci .

but the program hung after the edit pop up, and I killed it.

Since then I can not get it past the No locks available message.

I have tried all the possible relevant admin actions I could find in the
manual, including recover (which also dies for lack of lock).

lslocks does not show any

rmlocks does nothing

svn status -u sees no problem


and so on.


I am running Ubuntu 10.10 Maverick Meerkat and the distribytion is up to
date.



svn --version
svn, version 1.6.12 (r955767)
   compiled Jul  5 2010, 16:53:32

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using
Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network
protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme



Help.

Re: "No locks available" how do I fix it?

Posted by Stefan Sperling <st...@elego.de>.
On Sat, Dec 11, 2010 at 12:47:40AM +0000, stuart wrote:
> >svn ci -m "svn lock trouble" .
> svn: Commit failed (details follow):
> svn: Can't get exclusive lock on file
> '/media/stuart/svn/ca/db/txn-current-lock': No locks available
> 
> I had done a svn mkdir and svn moved a bunch of files to it plus adding
> some more - is that relevant?
> 
> I tried a
> 
>  svn ci .
> 
> but the program hung after the edit pop up, and I killed it.
> 
> Since then I can not get it past the No locks available message.
> 
> I have tried all the possible relevant admin actions I could find in the
> manual, including recover (which also dies for lack of lock).
> 
> lslocks does not show any
> 
> rmlocks does nothing

These subcommands don't have anything to do with the txn-current-lock
file. The lock you see failing serializes multiple server threads trying
to perform commits in parallel. It's not a lock which Subversion users
can see or control.

> svn status -u sees no problem

Yes, because it doesn't try to commit.

> and so on.
> 
> 
> I am running Ubuntu 10.10 Maverick Meerkat and the distribytion is up to
> date.

This could be a file permission problem on the server side.
Does the server process have necessary permissions to open or create
the file db/txn-current-lock?

Stefan