我在尝试使用" svn co"来检查服务器上的项目时遇到了问题。命令。使用TortoiseSVN或PHPStorm等软件检查和更新可通过HTTPS正常工作,只有终端无法正常工作。我已经设置了以前类似的服务器,但从未使用https支持。我正在使用我在ISPConfig 3.1上为相关域设置的正SSL。尝试使用以下命令检出项目时:
svn co --username myusername https://example.com/svn/project /var/www/project
我收到以下错误:
svn: E170013: Unable to connect to a repository at URL https://example.com/svn/project
svn: E120171: Error running context: An error occurred during SSL communication
svn项目和项目应该去的文件夹设置为chown www-data。
我的dav_svn.conf包含以下内容:
<Location /svn/>
DAV svn
SVNParentPath /svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
SSLRequireSSL
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
不知道像clamav或类似软件这样的软件是否会导致阻塞通信等问题?
我的svn版本信息如下:
svn, version 1.9.3 (r1718519)
compiled Aug 10 2017, 16:59:15 on x86_64-pc-linux-gnu
Copyright (C) 2015 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_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- 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.
- using serf 1.3.8 (compiled with 1.3.8)
- handles 'http' scheme
- handles 'https' scheme
The following authentication credential caches are available:
* Plaintext cache in /root/.subversion
* Gnome Keyring
* GPG-Agent
* KWallet (KDE)
System information:
* running on x86_64-unknown-linux-gnu
- Ubuntu 16.04.3 LTS (xenial) [Linux 4.4.0-93-generic]
* linked dependencies:
- APR 1.5.2 (compiled with 1.5.2)
- APR-Util 1.5.4 (compiled with 1.5.4)
- Expat 2.1.0 (compiled with 2.1.0)
- SQLite 3.11.0 (compiled with 3.11.0)
- Utf8proc 1.1.5 (compiled with 1.1.5)
- ZLib 1.2.8 (compiled with 1.2.8)
答案 0 :(得分:0)
在尝试使用https签出运行svn客户端1.8.x的github存储库时,我遇到了同样的问题。经过研究后,我发现农奴1.3.8在某些情况下可能会引起问题。
通过回到SVN客户端版本1.7.X,问题就在我这边解决了。
答案 1 :(得分:0)
当我尝试使用 svnsync 将远程存储库镜像到本地计算机时,出现了相同的错误。远程服务器正在运行SVN 1.5.1,而我的本地SVN是1.10.2。
svn: E170013: Unable to connect to a repository at URL https://example.com/svn/project
svn: E120171: Error running context: An error occurred during SSL communication
我通过升级位于SVN服务器前面的Apache反向代理服务器解决了我的问题。可能是旧的Apache使用旧的SSL / TLS协议/密码,而新的SVN客户端拒绝连接。无论如何,代理服务器都需要升级,因此我没有花太多时间检查旧代理的配置。