SVN can’t get exclusive lock on file /db/txn-current-lock’: Bad address

svn

Since an hour, I'm unable to commit to my svn repository. All repositories on my svn server are affected.

Updating and checking out works fine. Committing yields the following error:

svn: Commit failed (details follow):
svn: Can't get exclusive lock on file '/var/svn/repos/<repo name>/db/txn-current-lock': 
  Bad address

The problem started when I created a new repository with the name 'config', although I'm not sure this triggered the problems I'm encountering.

svnadmin recover <repo name> gives:

svnadmin: Can't get exclusive lock on file '<repo name>/db/write-lock': Invalid argument

Why does this locking problem occur?

[edit]
The server got worse, and started Segfaulting while trying to install updates. After rebooting again, the whole issue seems to be resolved…

Best Answer

Repository corrupted, see Berkeley DB Recovery part of SVN Book. In short you have to do;

svnadmin recover /path/to/repos