Translate

[Git] push 할 시에 RPC failed 에러사항 - 네트워크(VPN) 이슈




Git Repository: BitBucket (https://bitbucket.org/)


이슈

소스 정리를 하던중 Web, Android 소스는 정상적으로 push가 되었는데 iOS 소스가 이상하게도 push 하게되면 아래와 같이 RPC failed 에러가 발생을 하며 올라가지 않았다.


lucifer@1004lucifer-pc:/source/private/app/ios$ git push -u origin master
Password for 'https://1004lucifer@bitbucket.org': 
Counting objects: 184, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (183/183), done.
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
Writing objects: 100% (184/184), 3.30 MiB | 248.00 KiB/s, done.
Total 184 (delta 31), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date
lucifer@1004lucifer-pc:/source/private/app/ios$
lucifer@1004lucifer-pc:/source/private/app/ios$ git config http.postBuffer 524288000
lucifer@1004lucifer-pc:/source/private/app/ios$ git push -u origin master
Password for 'https://1004lucifer@bitbucket.org': 
Counting objects: 184, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (183/183), done.
Writing objects: 100% (184/184), 3.30 MiB | 0 bytes/s, done.
Total 184 (delta 31), reused 0 (delta 0)
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
lucifer@1004lucifer-pc:/source/private/app/ios$






증상

구글링을 해보니 http.postBuffer 를 크게 잡아보라고 해서 해봤는데도 정상적으로 되지 않아 파일을 1~5개 정도의 단위로 조금씩 push 해보니 안되던 디렉토리의 소스가 모두 커밋이 되었다.
여러개의 파일을 push 하면 에러가 나고 작은 단위로 push를 해보니 정상적으로 커밋이 되는 상황에 이것저것 만져보다 네트워크 부분을 확인해봤다.





문제

VPN접속이 되어있던 것을 접속을 끊으니 많은 갯수의 소스를 push 할 시에 문제없이 정상적으로 push 되는 것을 확인했다.



접속한 VPN은 두군데 접속이 되어있었다.
(업무상 두군데 VPN 접속을 해야 했었다.)

1. OS의 기본기능인 VPN (iptime 공유기 VPN으로 접속을 했었다.)
2. Cisco AnyConnect VPN

이렇게 두군데 VPN이 접속되어 있는 상황에서 네트워크의 지연이라던지..
그런 것으로 의심이 된다.









PS.
http://stackoverflow.com/ 에서 이것저것 git 설정을 해도 안되는 사람들 대부분이 네트워크 문제가 아닐까 싶다.
VPN문제라는 것에 대해서 나의 경험을 적은것 이지만 사람마다 환경이 모두 다르다보니 네트워크 문제가 아닐수도 있고..;



댓글