svnsync: Failed to get lock on destination repos, currently held by 'localhost.localdomain

执行svnsync命令出现如下错误:

[root@localhost bin]# /bin/svnsync synchronize --non-interactive http://192.168.2.3:8000/usr/svn/tools  --username  syncuser --password syncuser
Failed to get lock on destination repos, currently held by 'localhost.localdomain:396bc6ce-30dd-11e8-8af6-9365f0127205'

.......
svnsync: E000022: Couldn't get lock on destination repos after 10 attempts

网上搜索了一下,在https://stackoverflow.com/questions/4077601/svnsync-couldnt-get-lock-on-destination-repos找到如下解决方案

svn propdel --revprop -r0 svn:sync-lock ${REPO}

试了一下,果然解决了问题。但是,这条命令在哪台服务器上执行,对哪一个库执行却是需要注意的。

举例来说,SVN主机是192.168.2.8, 备份的Mirror主机是192.168.2.3

我是在SVN主机,也就是192.168.2.8 上对备份库执行这个命令才成功的

svn propdel --revprop -r0 svn:sync-lock http://192.168.2.3:8000/usr/svn/tools

 

 

你可能感兴趣的:(SVN,配置管理)