gitgitlab

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


I'm facing this error when I try to clone a repository from 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

The clone is then aborted. How can I avoid this?


Solution

  • After few days, today I just resolved this problem. Generate ssh key, follow this article:

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

    Declare it to

    1. Git provider (GitLab what I am using, GitHub).
    2. Add this to local identity.

    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