error: RPC failed; curl 56 Failure when receiving data from the peer

설탕찍은사과·2023년 10월 31일
0

Github/Gitlab

목록 보기
2/2
post-thumbnail

오류

error: RPC failed; curl 56 Failure when receiving data from the peer

  • git push 진행중 위의 에러로그가 확인되면서 Push 실패

처리방법

1) git config --global http.postBuffer 524288000

error: RPC failed; curl 55 Failed sending data to the peer 의 케이스일 경우 가능할듯

  • 524288000 = 500MB
  • 1048576000 = 1Gi

Ref : https://velog.io/@dktlsk6/Git-postBuffer-size-%EC%A1%B0%EC%A0%88

2) 크기가 50MB 이상인 파일 삭제

파일 크기가 훨씬 크거나 명령어가 작동하지 않는 등 해결이 안 되는 경우 파일을 삭제하는 걸 고려

3) git config --global http.version HTTP/1.1

저는 이 케이스를 진행 후 해결되었습니다.

설정이 정상적으로 먹혀 있는지 확인

git command

git config --show-origin --get-all http.version
file:/Users/XXXXX/.gitconfig     HTTP/1.1

위의 정보는 ~/.gitconfig 에서도 동일하게 확인 가능합니다.

Ref: https://assiduity.tistory.com/80

참고

저의 경우 아래와 같이 추가되었습니다.

[http]
    postBuffer = 1048576000
    version = HTTP/1.1
profile
귀찮아하지말고 계속 정리하고 공부하자

0개의 댓글