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

Svn: Can't get exclusive lock

From: Hila Afargan <HilaAfar_at_tauex.tau.ac.il>
Date: 2007-08-02 16:44:00 CEST

We can't make any commit commands to our SVN repository (running SVN on
Red Hat Enterprise Linux 4) .
We tried different users on files, and all commit commands failed.
I also consulted with the users mailing list, but didn't get any
solution yet.
Here is an example:

> svn commit -m "No real change" mainSemphy.h
Sending mainSemphy.h
Transmitting file data .svn: Commit failed (details follow):
svn: Can't get exclusive lock on file
'/SVN/db/transactions/2323-1.txn/rev-lock': No locks available

> svn status --show-updates
M 2323 mainSemphy.cpp
M 2323 mainSemphy.h
Status against revision: 2323

We tried to check if there are any locks:

> svnadmin lslocks /usr/users/evolution/pupkoSVN

didn't return any output. So we don't really have any locks. Could it be
some other issue?

We also run a recovery which worked ok:

> svnadmin recover /usr/users/evolution/pupkoSVN
Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 2323.

Other commands, such as Update does work.
I also tried to change permissions on the repository but it didn't help.

I created new repository in my home directory:
> svnadmin create my_repo
>mkdir proj/branches
>mkdir proj/tags
>mkdir proj/trunk
>touch proj/trunk/foo.c
> svn import proj file:///usr/users/hilaafar/my_repo -m "initial import"
Adding proj/trunk
Adding proj/trunk/foo.c
svn: Can't get exclusive lock on file
'/usr/users/hilaafar/my_repo/db/transactions/0-1.txn/rev-lock': No locks
Same error message, this time with import.
How can I fix it?
Thanks for your help.

Received on Thu Aug 2 16:42:29 2007

This is an archived mail posted to the Subversion Dev mailing list.