git clone error: fatal: RPC failed; curl 52 Empty reply from server The remote end hung up unexpectedly

I get this error cloning a specific repo, while other of my repos clone with no problem:

git clone error: fatal: RPC failed; curl 52 Empty reply from server The remote end hung up unexpectedly

Any idea about a solution?

2 answers

0 votes

There might be more information in the server logs. I'd suggest opening a support request on https://support.atlassian.com and uploading support zip so our support engineers can scan for errors in the logs. 

0 votes

Hello John,

Based on the error mentioned, it seems you are experiencing issues while cloning using HTTP(S) prolocol. That said, you could:

  1. evaluate the issue by running the following from Command Prompt / Terminal:

    # 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
     
    git clone <YOUR CLONE URL>
  2. attempt on increasing the buffer size

    git config http.postBuffer <SIZE>

    Please, refer to the following documentartion for further information:
    https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-779171796.html
    https://confluence.atlassian.com/bitbucketserverkb/error-rpc-failed-result-22-push-to-bitbucket-server-fails-779171801.html

  3. clone using SSH instead
  4. raise a support request as already suggested in this thread

Kind regards,
Rafael P. Sperafico

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

654 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot