[git] git clone시 fatal: the remote end hung up unexpectedlyMiB | - KiB/s 에러 가이드
Programming/git

[git] git clone시 fatal: the remote end hung up unexpectedlyMiB | - KiB/s 에러 가이드

반응형

 

문제 상황


 

Pycharm IDE로 작업 도중,

TextRecognitionDataGenerator를 활용하고자 git clone을 통해 다운로드 받고자 하였는데,

 

 

 

아래와 같은 에러 코드를 내뱉었다.

# 명령어
$ git clone https://github.com/Belval/TextRecognitionDataGenerator.git

# 아웃풋
Cloning into 'TextRecognitionDataGenerator'...
remote: Enumerating objects: 1565, done.
fatal: the remote end hung up unexpectedlyMiB | 192.00 KiB/s 
fatal: early EOF
fatal: index-pack failed

 

 

fatal: the remote end hung up unexpectedlyMiB | 192.00 KiB/s

 

뭐,, remote가 예상치못하게 끊어졌다는 것 같은데,

데이터 전송 속도(192.00 KiB/s)를 output으로 주는 것으로 미루어보아,

Data를 받아오는 Buffer Size 및 speed가 부족한 것으로 예상했다.

 

 

 

 

또한 여럿 구글링 해본 결과, 여기서 해결 방법을 얻을 수 있었다.

 

git clone get error:The remote end hung up unexpectedly · community · Discussion #39210

Select Topic Area Product Feedback Body Hi, When I try to git clone https://github.com/ClickHouse/ClickHouse, I get the errors: # git clone https://github.com/ClickHouse/ClickHouse Cloning into 'Cl...

github.com

 

 

 

 

 

 

 

 

문제 해결 방법


$ git config --global http.postBuffer 100000000

 

git config 명령어를 통해 http를 통해 전송하는 postBuffer Size를 높게 설정하면 해결 된다.

 

 

나는 http 프로토콜을 통해 git clone을 진행했기 때문에 http buffer를 높인 것이며,

ssh 프로토콜을 통해 git clone을 진행하시는 분들은 ssh buffer를 높이면 될 것이다.

 

 

 

해결된 모습

 

 

 

 

 

 

 

 

다른 해결 방법


이미지 클릭시 링크로 넘어감

 

위 사진은 github discussions의 일부를 발췌 해온 사진이다.

ssh 프로토콜의 buffer size를 키우는 방법과 다양한 제안이 들어있으니

찬찬히 읽어보면 해결 할 수 있을 것이다.

 

 

 

$ git config ssh.postBuffer 524288000

위 명령어는, ssh 프로토콜의 buffer size를 키우는 명령어이다.

 

 

 

 

 

 

 

 

 

반응형