VisualSVN Server启动失败原因及解决方案

1.问题起因

本地从SVN上更新失败,错误提示如下:

Unable to connect to a repository at URL
The XML response contains invalid XML
Malformed XML: no element found

VisualSVN Server启动失败原因及解决方案

2.可能原因

VisualSVN Server所在的服务器挂了之后,SVN就出问题了。
打开服务器之后发现VisualSVN Server服务确实没启动,手动启动之后提示(忘记截图):

SVN Server启动错误(0x8007042a)

而后查看VisualSVN Server日志可见:

make_sock:could not bind to address 0.0.0.0:443

VisualSVN Server启动失败原因及解决方案

3.解决方案

  • 查找占用443端口的pid
    netstat -ano | findstr “443”

  • 查找pid对应的应用
    tasklist | findstr “pid”

  • 打开任务管理,找到该应用
    Apache.exe确认只有VisualSVN使用后,强制关闭Apache.exe。

  • 重启VisualSVN Server服务,成功