SVN通过代理写出关闭同步

时间:2015-05-15 09:29:48

标签: unix svn proxy centos

今天矿石svn mirrror失去了同步。设置如标题所述。我们设置了一个只读取操作的镜像,并将写入操作提交给主SVN服务器。

所以我们在/etc/http/conf.d/mirror.conf文件中的镜像上。这有2个位置创建。将所有写入重定向到主服务器的专用分支" SVNMasterURI"和第二个来自主站的同步发送到的地方。

是的,所有钩子脚本都是可执行的。所以问题是:在6个安装中,有些镜子会因为锁定机制不在同步而失去同步。通常我们会做一个

svn propdel --revprop -r0 svn:sync-lock http://mirror/svn-proxy-sync
svnsync sync http://mirror/svn-proxyn-sync file:///home/master/svn/private

但现在正在执行svnsync sync http://mirror/svn-proxyn-sync file:/// home / master / svn / private我们收到如下错误消息:

 svnsync: DAV request failed; it's possible that the repository's pre-                       revprop-change hook either failed or is non-existent
 svnsync: At least one property change failed; repository is unchanged
 svnsync: Error setting property 'sync-lock': 
 Can't find a temporary directory: Internal error

这是配置文件:

掌握SVN

 <Location /svn/master >
  DAV svn
  SVNListParentPath Off
  SVNPath /home/master/svn/private
  #SVNParentPath /var/www/svn
  AuthType Basic
  AuthName "BLA BLA"
  AuthUserFile /home/master/svn/etc/htpasswd
  AuthzSVNAccessFile /home/master/svn/etc/private.access
  Require valid-user
 </Location>

通过代理镜像写入

 <Location /svn/mirror >
   DAV svn
   SVNListParentPath Off
   SVNPath /home/mirror/svn/private
   SVNMasterURI http://svnmaster/svn/master
   #SVNParentPath /var/www/svn
   AuthType Basic
   AuthName "BLA BLA BAL"
   AuthUserFile /home/mirror/svn/etc/htpasswd
   AuthzSVNAccessFile /home/mirror/svn/etc/private.access
   Require valid-user
 </Location>

<Location /svn-proxy-sync >
   DAV svn
   SVNListParentPath Off
   SVNPath /home/mirror/svn/private
   Order deny,allow
   Deny from all
   Allow from xxx.xxx.xxx.xxx
</Location>

当我们尝试做

svnsync init commando we are getting the same output

请帮助!!!!

0 个答案:

没有答案