Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

fatal: The remote end hung up unexpectedly; fatal: early EOF; fatal: index-pack failed #14

Closed
opszhou opened this issue Jan 25, 2021 · 10 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@opszhou
Copy link

opszhou commented Jan 25, 2021

环境:CentOS Linux release 7.6.1810 (Core)
git版本:1.8.3.1
克隆仓库:https://github.com/EpicGames/UnrealEngine.git
代理方式:git config --global url."https://hub.fastgit.org".insteadOf https://github.com 或者 fgit
gitconfig:

[http]
        lowSpeedLimit = 0
        lowSpeedTime = 999999
        postBuffer = 1048576000
[core]
        compression = -1
[url "https://hub.fastgit.org"]
        insteadOf = https://github.com

报错:

...
...
...
...
* Couldn't find host hub.fastgit.org in the .netrc file; using defaults
* About to connect() to hub.fastgit.org port 443 (#2)
*   Trying 101.32.191.80...
* Connected to hub.fastgit.org (101.32.191.80) port 443 (#2)
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
*       subject: CN=*.fastgit.org
*       start date: May 01 14:23:06 2020 GMT
*       expire date: May 02 14:23:06 2021 GMT
*       common name: *.fastgit.org
*       issuer: CN=AlphaSSL CA - SHA256 - G2,O=GlobalSign nv-sa,C=BE
* Server auth using Basic with user 'xxxxxxxxxxxx'
> POST /EpicGames/UnrealEngine.git/git-upload-pack HTTP/1.1
Authorization: Basic xxxxxxxxxxxx
User-Agent: git/1.8.3.1
Host: hub.fastgit.org
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Encoding: gzip
Content-Length: 6581

* upload completely sent off: 6581 out of 6581 bytes
< HTTP/1.1 200 OK
< Server: nginx
< Date: Sun, 24 Jan 2021 12:16:29 GMT
< Content-Type: application/x-git-upload-pack-result
< Transfer-Encoding: chunked
< Connection: keep-alive
< expires: Fri, 01 Jan 1980 00:00:00 GMT
< pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-Frame-Options: DENY
< X-GitHub-Request-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
< x-pjax-url: https://hub.fastgit.org/EpicGames/UnrealEngine.git/git-upload-pack
< X-FastGit-Node: tc-hk-2
< 
packet:   fetch-pack< NAK
packet:   fetch-pack> 0000
packet:   fetch-pack< \2Enumerating objects: 3101936\15
packet:   fetch-pack< \2Enumerating objects: 1, done.
remote: Enumerating objects: 1, done.
packet:   fetch-pack< \2Counting objects: 100% (1/1)\15Counting objects: 100% (1/1), done.
remote: Counting objects: 100% (1/1), done.
trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 17086 on <ip>' '--pack_header=2,3101937'
trace: exec: 'git' 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 17086 on <ip>' '--pack_header=2,3101937'
trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 17086 on <ip>' '--pack_header=2,3101937'
* transfer closed with outstanding read data remaining.35 MiB/s      
* Closing connection 2
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
@KevinZonda
Copy link
Member

似乎Early EOF的问题一直存在,一直不知道怎么修

@KevinZonda KevinZonda transferred this issue from FastGitORG/fgit-go Jan 25, 2021
@KevinZonda KevinZonda added bug Something isn't working help wanted Extra attention is needed labels Jan 25, 2021
@KevinZonda
Copy link
Member

Nginx log:

2021/01/13 22:02:09 [error] 19577#0: *19622 upstream prematurely closed connection while reading upstream, client: *********, server: hub.fastgit.org, request: "GET ********.git/info/refs?service=git-upload-pack HTTP/2.0", upstream: "https://13.229.188.59:443/***********.git/info/refs?service=git-upload-pack", host: "hub.fastgit.org"

@KevinZonda
Copy link
Member

If the problem keeps, plz just recomment or open a new issue. I'll check again. Thank you! :D

@opszhou
Copy link
Author

opszhou commented Jan 27, 2021

Bug still exists. 😢

@KevinZonda KevinZonda reopened this Jan 27, 2021
@KevinZonda
Copy link
Member

OK, issue will keep open.

@opszhou
Copy link
Author

opszhou commented Jan 27, 2021

This is the error message. The UnrealEngine repo‘s size: 5.7GB.

error: RPC failed; result=18, HTTP code = 2000 GiB | 713.00 KiB/s      
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

@KevinZonda
Copy link
Member

This is the error messag. The UnrealEngine repo‘s size: 5.7GB.

error: RPC failed; result=18, HTTP code = 2000 GiB | 713.00 KiB/s      
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

It's too large to fastgit.

@opszhou
Copy link
Author

opszhou commented Jan 28, 2021

May be set the value of client_max_body_size to 0 is the right way ?

@KevinZonda
Copy link
Member

May be set the value of client_max_body_size to 0 is the right way ?

In order to keep costs down, I think this value has to be limited. We can hardly afford to have too high a cost estimate.

@opszhou
Copy link
Author

opszhou commented Jan 28, 2021

May be set the value of client_max_body_size to 0 is the right way ?

In order to keep costs down, I think this value has to be limited. We can hardly afford to have too high a cost estimate.

Respect. 😛

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants