【问题标题】:SSLRead() return error -9806/15958)SSLRead() 返回错误 -9806/15958)
【发布时间】:2015-05-09 18:38:23
【问题描述】:

当我尝试克隆 this repo 时(链接仅在 git 克隆时有效)我不断收到 error: RPC failed; result=56, HTTP code = 200。我将如何解决这个问题?我查看了this 的帖子,告诉我使用GIT_CURL_VERBOSE=1 来调试它,但是我看不到任何问题。

这是我的日志。

Folder=OneDrive;-time=14:41:47: GIT_CURL_VERBOSE=1 git clone https://git01.codeplex.com/casablanca
Cloning into 'casablanca'...
* Couldn't find host git01.codeplex.com in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
*   Trying 23.96.195.41...
* Connected to git01.codeplex.com (23.96.195.41) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: *.codeplex.com
* Server certificate: MSIT Machine Auth CA 2
* Server certificate: Microsoft Internet Authority
* Server certificate: Baltimore CyberTrust Root
> GET /casablanca/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/2.3.1
Host: git01.codeplex.com
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache

< HTTP/1.1 200 OK
< Cache-Control: no-cache, max-age=0, must-revalidate
< Pragma: no-cache
< Content-Type: application/x-git-upload-pack-advertisement
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< X-Powered-By: ASP.NET
< Date: Sun, 08 Mar 2015 14:41:52 GMT
< Connection: close
< Content-Length: 1296
< 
* Closing connection 0
* Couldn't find host git01.codeplex.com in the .netrc file; using defaults
* Hostname was found in DNS cache
*   Trying 23.96.195.41...
* Connected to git01.codeplex.com (23.96.195.41) port 443 (#1)
* SSL re-using session ID
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: *.codeplex.com
* Server certificate: MSIT Machine Auth CA 2
* Server certificate: Microsoft Internet Authority
* Server certificate: Baltimore CyberTrust Root
> POST /casablanca/git-upload-pack HTTP/1.1
User-Agent: git/2.3.1
Host: git01.codeplex.com
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Length: 890

* upload completely sent off: 890 out of 890 bytes
< HTTP/1.1 200 OK
< Cache-Control: no-cache, max-age=0, must-revalidate
< Pragma: no-cache
< Content-Type: application/x-git-upload-pack-result
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< X-Powered-By: ASP.NET
< Date: Sun, 08 Mar 2015 14:41:58 GMT
< Connection: close
< 
remote: Counting objects: 15958, done.
remote: Compressing objects: 100% (7214/7214), done.
* SSLRead() return error -9806/15958), 3.93 MiB | 462.00 KiB/s      
* Closing connection 1
remote: Total 15958 (delta 11496), reused 12082 (delta 8470)
error: RPC failed; result=56, HTTP code = 200
Receiving objects: 100% (15958/15958), 4.12 MiB | 479.00 KiB/s, done.
Resolving deltas: 100% (11496/11496), done.
Folder=OneDrive;-time=14:42:09: ls
Folder=OneDrive;-time=14:42:11: 

我已经尝试this 修复它,但它不起作用。

我也尝试过通过 home brew 更新 git。我的git版本是git version 2.3.1

如果您需要知道这是在优胜美地。我也没有杀毒软件。

注意

Folder=OneDrive;-time=14:41:47: 是 bash 提示符(我改了)。

【问题讨论】:

标签: git


【解决方案1】:

如果您将 git 链接到 GnuTLS,就会发生这种情况,您必须明确地将其链接到 OpenSSL。 CodePlex 有一个关于这个问题的support page

【讨论】:

  • 我在 Mac OS X Yosemite 上,因此没有apt-get。但是,我确实像我所说的那样从家庭 brew 安装了 git。感谢您调查问题。 brew update 会以同样的方式工作吗?
  • 我建议使用来自git-scm.com/download/mac的官方git二进制文件而不是自制程序
  • 那么我是否可以将可执行文件放在 ~/bin 等文件夹中并将路径变量设置为 ~/bin:$PATH?
  • 很遗憾我用OSX已经很久了,你必须检查相关文件。但你说的听起来很有道理,是的。
猜你喜欢
  • 2017-01-18
  • 1970-01-01
  • 2017-08-15
  • 1970-01-01
  • 2016-12-31
  • 2016-12-13
  • 1970-01-01
  • 1970-01-01
  • 2014-12-15
相关资源
最近更新 更多