我正在尝试使用svnsync
. 它在一个目标服务器上工作,但在另一个非常相似的设置上失败,我找不到有什么不同。两种情况下的源服务器都是相同的,所以我猜它的设置是无关紧要的。
目标服务器是:Windows Server 2008 R2 Standard SP1,64 位
SVN 是:VisualSVN Server 2.5.9(也试过 2.5.7 和 2.5.8)
svnsync 初始化失败:
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
Hook 存在且仅包含 1 行:
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 有什么问题?)))