【发布时间】:2017-08-30 08:37:16
【问题描述】:
我在尝试使用“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)
【问题讨论】:
-
您确定 SVN/Apache 服务器和 SVN 客户端版本是最新的吗?
-
我很确定,因为安装是在 3 天前使用最新的 repos 完成的,并且安装了从那时起为 ubuntu 发布的所有更新,但如果它们不是,我该如何检查?跨度>
-
对于客户端,请运行
svn --version -v并显示输出。 -
用 svn 信息更新了我的帖子。
标签: ssl svn https ubuntu-16.04