【问题标题】:Subversion checkout not working in terminal over HTTPS Ubuntu 16.04Subversion checkout 在 HTTPS Ubuntu 16.04 的终端中不起作用
【发布时间】: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


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

    • SVN 1.5.1 在服务器端?升级 httpd 和 svn。
    • 是的,我想在尝试任何升级之前备份存储库...
    猜你喜欢
    • 2020-09-04
    • 1970-01-01
    • 2017-05-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-29
    相关资源
    最近更新 更多