git network connection 오류 추적하기

Joonas' Note

git network connection 오류 추적하기 본문

개발

git network connection 오류 추적하기

2024. 6. 20. 20:39 joonas 읽는데 1분
  • 참고

평소처럼 git 사용하다가 push 하려는 데 오류가 났다.

$ git push
Enumerating objects: 34, done.
Counting objects: 100% (34/34), done.
Delta compression using up to 8 threads
Compressing objects: 100% (20/20), done.
Writing objects: 100% (22/22), 722.07 KiB | 9.89 MiB/s, done.
Total 22 (delta 10), reused 6 (delta 1), pack-reused 0
error: RPC failed; curl 55 Send failure: Connection was aborted
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

compressing 까지는 문제가 없었는데, 위처럼 에러가 3줄 찍혔다.

RPC failed 는 네트워크 오류면 출력되는 에러 시작 문구같고, 내 경우에는 send-pack 이 문제였다.

git config --global core.compression 0

오류는 위 커맨드로 간단하게 수정하긴 했는데, 검색하다가 git verbose log 를 볼 수 있도록 하는 방법이 있어서 글을 남긴다.

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

 

참고

 

Github - unexpected disconnect while reading sideband packet

I've got quite interesting problem. I tried to send some projects via bash to repo and recently there was a problem with sending it. Enumerating objects: 27, done. Counting objects: 100% (27/27), d...

stackoverflow.com

 

Comments