msgpack-c
msgpack-c copied to clipboard
git clone failed in my ubuntu 16.04 server
$git clone https://github.com/msgpack/msgpack-c.git Cloning into 'msgpack-c'... remote: Counting objects: 22436, done. remote: Total 22436 (delta 0), reused 0 (delta 0), pack-reused 22436 Receiving objects: 100% (22436/22436), 12.84 MiB | 864.00 KiB/s, done. error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. Resolving deltas: 100% (14909/14909), done.
but i can do clone for other project from github successfully, such as https://github.com/darkk/redsocks.git.
some detail info when clone msgpack: <
- Connection #0 to host proxy.****.com left intact
- Couldn't find host github.com in the .netrc file; using defaults
- Found bundle for host github.com: 0x1267d10 [can pipeline]
- Re-using existing connection! (#0) with proxy proxy.****.com
- Connected to proxy.****.com (172.30.65.47) port 8080 (#0)
POST /msgpack/msgpack-c.git/git-upload-pack HTTP/1.1 Host: github.com User-Agent: git/2.7.4 Accept-Encoding: gzip Content-Type: application/x-git-upload-pack-request Accept: application/x-git-upload-pack-result Content-Encoding: gzip Content-Length: 1195
- upload completely sent off: 1195 out of 1195 bytes
- HTTP 1.0, assume close after body < HTTP/1.0 200 OK < via: proxy A < Vary: Accept-Encoding < Pragma: no-cache < Server: GitHub Babel 2.0 < Expires: Fri, 01 Jan 1980 00:00:00 GMT < Connection: Close < Content-Type: application/x-git-upload-pack-result < Cache-Control: no-cache, max-age=0, must-revalidate < X-Frame-Options: DENY < X-GitHub-Request-Id: 9A1B:6004:4B822F3:72495EF:59A54854 < remote: Counting objects: 22436, done.
- GnuTLS recv error (-110): The TLS connection was non-properly terminated.
- Closing connection 0 remote: Total 22436 (delta 0), reused 0 (delta 0), pack-reused 22436 Receiving objects: 100% (22436/22436), 12.84 MiB | 1.19 MiB/s, done. error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. Resolving deltas: 100% (14909/14909), done.
some detail info when clone redsocks: <
- Connection #0 to host proxy.****.com left intact
- Couldn't find host github.com in the .netrc file; using defaults
- Found bundle for host github.com: 0x1e2fd10 [can pipeline]
- Re-using existing connection! (#0) with proxy proxy.****.com
- Connected to proxy.*****.com (172.30.65.47) port 8080 (#0)
POST /darkk/redsocks.git/git-upload-pack HTTP/1.1 Host: github.com User-Agent: git/2.7.4 Accept-Encoding: gzip Content-Type: application/x-git-upload-pack-request Accept: application/x-git-upload-pack-result Content-Length: 390
- upload completely sent off: 390 out of 390 bytes < HTTP/1.1 200 OK < via: proxy A < Vary: Accept-Encoding < Pragma: no-cache < Server: GitHub Babel 2.0 < Expires: Fri, 01 Jan 1980 00:00:00 GMT < Connection: Keep-Alive < Content-Type: application/x-git-upload-pack-result < Cache-Control: no-cache, max-age=0, must-revalidate < X-Frame-Options: DENY < Transfer-Encoding: chunked < X-GitHub-Request-Id: 35D8:1D87A:1A1CBF9:281FA8F:59A54A8F < remote: Counting objects: 989, done.
- Connection #0 to host proxy.****.com left intact remote: Total 989 (delta 0), reused 0 (delta 0), pack-reused 989 Receiving objects: 100% (989/989), 758.45 KiB | 0 bytes/s, done. Resolving deltas: 100% (646/646), done. Checking connectivity... done.
i am very curious what's the differences and why ? thanks a lot.
@zhongxiaoma , it doesn't seems to be a msgpack-c problem, even if you can clone other repositories successfully.
I guess that it is network setting problem. If you can connect to github without proxy, it's worth trying.
On my environment, no errors are detected:
git clone https://github.com/msgpack/msgpack-c.git Cloning into 'msgpack-c'...
remote: Counting objects: 22436, done.
remote: Total 22436 (delta 0), reused 0 (delta 0), pack-reused 22436
Receiving objects: 100% (22436/22436), 12.84 MiB | 508.00 KiB/s, done.
Resolving deltas: 100% (14909/14909), done.
In my case, using ssh protocol instead of http(s) protocol, solved the issue.
e.g
git clone [email protected]:LiXizhi/NPLRuntime.git
Refer: https://stackoverflow.com/a/49374509/1568658
this work for me,https://zhuanlan.zhihu.com/p/53961303
Also using http instead of https should help (it worked for me).
For example,
git clone http://github.com/msgpack/msgpack-c.git