#Subversion: Failed to get lock on destination repository

On February 15, 2010, in MISC, by How2CentOS

In the event that your Subversion server was powered down incorrectly during one of its subversion mirror synchronizations you might end up with a lock on the destination repository. This basic tutorial will help you to remove the lock and continue with your synchronizations.

Below is the output from the svnsync showed this:

# /usr/bin/svnsync --non-interactive synchronize svn://{destination repository}/opt/svn/{repo}

Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
Failed to get lock on destination repos, currently held by ‘svn.how2centos.com:fbc2c0c8-957f-0410-8a06-87f31314868b’
svnsync: Couldn’t get lock on destination repos after 10 attempts

To remove the lock you’ll need to do the following:

# svn propdel svn:sync-lock --revprop -r 0 svn://{destination repository}/opt/svn/{repo}
# /usr/bin/svnsync --non-interactive synchronize svn://{destination repository}/opt/svn/{repo}

Committed revision 1694.
Copied properties for revision 1694.
Committed revision 1695.
Copied properties for revision 1695.

Related posts:

  1. Installing #Redmine & #Subversion on CentOS 5.5
  2. #SVN #Apache #LDAP configuration

Tagged with:  

Leave a Reply

blog comments powered by Disqus
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Afrigator
Blog WebMastered by All in One Webmaster.