2
我正在嘗試使用svnsync
。 它可以在一臺目標服務器上運行,但在另一臺目標服務器上運行失敗,並且設置非常類似,我找不到有什麼不同。源服務器在兩種情況下都是相同的,所以我猜它的設置是無關緊要的。svnsync無法啓動pre-revprop-change鉤子
目標服務器:在Windows Server 2008 R2 SP1標準,64位
SVN是:VisualSVN服務器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
掛鉤存在並且只包含1號線:
E:\>type ...\hooks\pre-revprop-change.bat
exit 0
我看到VisualSVN服務器日誌中看到以下錯誤
(相同鉤另一個目標服務器上的作品)
在Windows望着事件查看器:
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
問題是 - 這裏的錯誤是什麼? )))
1.您是否測試過其他任何鉤子(例如'pre-commit'或'post-commit')? 2.他們工作還是失敗,出現同樣的錯誤?在受影響的機器上,全局環境變量'%COMSPEC%'的值是多少? 3.在什麼帳戶下運行VisualSVN Server服務? '網絡服務'還是一個自定義專用帳戶? – bahrep