programing tip

오류 : RPC가 실패했습니다.

itbloger 2020. 9. 3. 07:54
반응형

오류 : RPC가 실패했습니다. 남아있는 미해결 읽기 데이터로 컬 전송이 닫혔습니다.


GitLab (GitLab 6.6.2 4ef8369)에서 저장소를 복제하려고 시도하고 오류 :

여기에 이미지 설명 입력

remote: Counting objects: 66352, done.
remote: Compressing objects: 100% (10417/10417), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

이 오류를 피하는 방법은 무엇입니까?


그것은 자주 발생하지 않습니다. 저는 인터넷 연결이 느리고 상당히 거대한 git 저장소를 복제해야합니다. 가장 일반적인 문제는 연결이 닫히고 전체 클론이 취소된다는 것입니다.

Cloning into 'large-repository'...
remote: Counting objects: 20248, done.
remote: Compressing objects: 100% (10204/10204), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining 
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

많은 시행 착오와 많은 "예기치 않게 원격 끝이 끊겼습니다"후에 저에게 적합한 방법이 있습니다. 아이디어는 먼저 얕은 복제를 수행 한 다음 저장소를 기록으로 업데이트하는 것입니다.

$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow

며칠 후 오늘이 문제를 해결했습니다. SSH 키를 생성하고 다음 문서를 따르십시오.

https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

그것을 선언하십시오

  1. Git 공급자 (내가 사용중인 GitLab, GitHub).
  2. 이것을 로컬 ID에 추가하십시오.

Then clone by command:

git clone username@mydomain.com:my_group/my_repository.git

And no error happen.

The above problem

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

because have error when clone by HTTP protocol (curl command).

And, you should increment buffer size:

git config --global http.postBuffer 524288000

When I tried cloning from the remote, got the same issue repeatedly:

remote: Counting objects: 182, done.
remote: Compressing objects: 100% (149/149), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Finally this worked for me:

git clone https://username@bitbucket.org/repositoryName.git --depth 1

As above mentioned, first of all run your git command from bash adding the enhanced log directives in the beginning: GIT_TRACE=1 GIT_CURL_VERBOSE=1 git ...

e.g. GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin This will show you detailed error information.


Network connection problems.
Maybe due to the persistent connection timeout.
The best way is to change to another network.


These steps worked for me:using git:// instead of https://


With me this problem occurred because the proxy configuration. I added the ip git server in the proxy exception. The git server was local, but the no_proxy environment variable was not set correctly.

I used this command to identify the problem:

#Linux:
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

#Windows
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1

In return there was the "Proxy-Authorization" as the git server was spot should not go through the proxy. But the real problem was the size of the files defined by the proxy rules


Simple Solution: Rather then cloning via https, clone it via ssh.

For example:

git clone https://github.com/vaibhavjain2/xxx.git - Avoid
git clone git@github.com:vaibhavjain2/xxx.git - Correct

Changing git clone protocol to try.

for example, this error happened when "git clone https://xxxxxxxxxxxxxxx"

you can try with "git clone git://xxxxxxxxxxxxxx", maybe ok then.


Tried all of the answers on here. I was trying to add cocoapods onto my machine.

SSH 키가 없었기 때문에 @Do Nhu Vy에게 감사드립니다.

https://stackoverflow.com/a/38703069/2481602

그리고 마침내 사용

git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

마지막으로 발견 된 문제를 해결하려면 https://stackoverflow.com/a/50959034/2481602


이 단계는 저에게 효과적입니다.

cd [dir]
git init
git clone [your Repository Url]

나는 그것이 당신에게도 효과가 있기를 바랍니다.


이 시도

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

이것은 나를위한 일입니다 .. capture.png

참고 URL : https://stackoverflow.com/questions/38618885/error-rpc-failed-curl-transfer-closed-with-outstanding-read-data-remaining

반응형