1. 客戶端環境
1. 操作系統:Windows 7
2. svn客戶端:TortoiseSVN
2. 服務端環境
1. 雲服務平台:阿里雲
2. 操作系統:Windows Server 2008 R2 Enterprise
3. svn客戶端:TortoiseSVN
4. svn服務器:VisualSVN Server
3. 起因及現象
將服務器IIS網站綁定了http:*:80 和 https:*:443。因 VisualSVN Server 默認使用服務器 443 端口,IIS網站綁定 443 端口后導致 VisualSVN Server 不可用,需將 VisualSVN Server 端口改為 8443。此時在客戶端使用 svn commit 時會提示如下錯誤信息
Commit failed (details follow):
Unable to connect to a repository at URL 'https://[your IP]:8443/svn/[your project iname]'
The XML response contains invalid XML
Malformed XML: no element found
(其中 your IP 形如 123.456.12.123)
或 check out 時會提示如下錯誤信息
Unable to connect to a repository at URL 'https://[your IP]:8443/svn/[your project iname]'
The XML response contains invalid XML
Malformed XML: no element found
4. 原因及解決方案
需要在阿里雲安全組中放行8443端口(或其它需要的端口),,形式如下。
添加安全組規則參考 https://help.aliyun.com/document_detail/25471.html
至此問題即解決。
關於 VisualSVN Server 的相關配置參見 【Windows平台下結合 tortoiseSVN 和 VisualSVN Server 搭建SVN服務器並實現 web 站點同步】