Subversion 结帐无法通过 HTTPS Ubuntu 16.04 在终端中工作

问题描述 投票:0回答:2

我在尝试使用“svn co”命令检查服务器上的项目时遇到问题。使用 TortoiseSVN 或 PHPStorm 等软件检查和更新可通过 HTTPS 正常工作,只有终端无法工作。我已经设置了以前类似的服务器,但从未使用 https 支持。我正在使用通过 ISPConfig 3.1 为相关域设置的 Positive 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)
ssl svn https ubuntu-16.04
2个回答
0
投票

我在尝试使用 https 检查运行 svn 客户端 1.8.x 的 github 存储库时遇到了同样的问题。经过一番调查,我发现 serf 1.3.8 似乎在某些情况下会导致问题。

通过回到 SVN 客户端版本 1.7.X,问题在我这边得到了解决。


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 客户端拒绝连接。代理服务器无论如何都需要升级,所以我没有花太多时间检查旧代理的配置。

© www.soinside.com 2019 - 2024. All rights reserved.