#Subversion: Failed to get lock on destination repository
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.
#SVN #Apache #LDAP configuration
Apache Configuration
Create a Apache configuration file for Subversion
# vi /etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so# Enable Subversion DAV svn # Directory containing all repository for this path SVNParentPath /opt/svn/ SVNAutoversioning on # LDAP Authentication & Authorization is final; do not check other databases AuthBasicProvider ldap AuthzLDAPAuthoritative off # Do basic password authentication in the clear AuthType Basic # The name of the protected area or "realm" AuthName "Subversion Repository" # The LDAP query URL AuthLDAPURL "ldap:// :389/dc=example,dc=co.za # Require authentication for this Location Require valid-user
http://www.centos.org