我正在尝试使用svnsync。它可以在一个目标服务器上工作,但是在另一个设置非常相似的服务器上失败,我找不到不同的地方。源服务器在两种情况下都是相同的,所以我想它的设置是不相关的。
目标服务器是: Windows 2008 R2标准SP1,64位
SVN为: VisualSVN服务器2.5.9 (也尝试2.5.7和2.5.8)
svnsync init失败:
E:\>svnsync init https://.../ https://.../
svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
svnsync: E175008: At least one property change failed; repository is unchanged
svnsync: E175002: Error setting property 'svn:sync-lock': Failed to start '.../hooks/pre-revprop-change.bat' hook钩子存在并且只包含一行:
E:\>type ...\hooks\pre-revprop-change.bat
exit 0(相同的钩子在另一个目标服务器上工作)
查看Windows中的事件查看器,我在VisualSVN服务器日志中看到以下错误:
Failed to start '.../hooks/pre-revprop-change.bat' hook [500, #165001]
[client 2002:f8d:64d6::f8d:64d6]
Can't start process '.../hooks/pre-revprop-change.bat': Invalid argument [500, #22]
[client 2002:f8d:64d6::f8d:64d6]使用的svnsync版本:
E:\>which svnsync
D:\Program Files (x86)\VisualSVN Server\bin\svnsync.EXE
E:\>svnsync --version
svnsync, version 1.7.9 (r1462340)
compiled Apr 1 2013, 18:58:57
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme问题是--这里的h*ll有什么错误?)
发布于 2013-10-16 05:47:46
目标服务器的重新启动为我工作。
https://stackoverflow.com/questions/15968526
复制相似问题