Connection to bitbucket.org closed by remote host.00 KiB/s when tried to git fetch origin

Issue #13290 closed
Krisna Putra
created an issue

Hi, I'm encountering a problem when trying to do:

git fetch origin

from our remote repo.

I got result:

nagaridwarawati:fabelio krisnaputra$ git fetch origin
remote: Counting objects: 2606, done.
remote: Compressing objects: 100% (1779/1779), done.
Connection to bitbucket.org closed by remote host.00 KiB/s       
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Anyone can help?

Official response

  • James Redmond staff

    This error indicates that something has interrupted your traffic. It doesn't really say what caused the interruption - whether it was Bitbucket, or something on your local network, or something between, or something else - just that an interruption broke the session.

    If you get this, please open a support ticket with details about what you're trying to do (push, pull, clone, etc.); which DVCS you're using (Git or Mercurial); and whether you're using SSH or HTTPS. Please do not leave a "me too" or "+1" message here, because that will not fix your problem.

Comments (47)

  1. Joel Courtney

    What even was the fix?

    For the record I'm seeing this right now.

    remote: Counting objects: 242, done.
    remote: Compressing objects: 100% (142/142), done.
    Connection to bitbucket.org closed by remote host..00 KiB/s
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  2. Manoj Maurya

    Hi , Please help, even i also facing the same issue from past 2 days-

    remote: Counting objects: 6611, done.
    remote: Compressing objects: 100% (3248/3248), done.
    Connection to bitbucket.org closed by remote host.8.00 KiB/s   
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  3. Manoj Maurya

    This is latest logs with SSH and looks like download speed is really low even though my internet speed is more than 10Mbps/s-

    macbook-pro-loaner-manoj:~ mrai$ git clone git@bitbucket.org:mobitv/mobi-client-ril-jio-android.git
    Cloning into 'mobi-client-ril-jio-android'...
    remote: Counting objects: 109232, done.
    remote: Compressing objects: 100% (4477/4477), done.
    Receiving objects:   3% (3657/109232), 740.00 KiB | 9.00 KiB/s  
    
  4. safil sunny

    # Me tooo facing the same problem. its SSH #

    remote: Counting objects: 9873, done.
    remote: Compressing objects: 100% (4641/4641), done.
    Connection to bitbucket.org closed by remote host..00 KiB/s     
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  5. Denis Alexandrov

    Same here when trying to pull repo to my VPS server. I also use SSH:

    remote: Counting objects: 682, done.
    remote: Compressing objects: 100% (481/481), done.
    Connection to bitbucket.org closed by remote host.0 KiB/s     
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    

    Successfully pulled after some time

  6. Thang Nguyen

    Same issue here for the last 2 days. I tried both SSH and Https

    Counting objects: 9169, done.
    remote: Compressing objects: 100% (3999/3999), done.
    Connection to bitbucket.org closed by remote host.9.00 KiB/s    
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  7. Mark L

    Same here

    remote: Compressing objects: 100% (1661/1661), done.
    Connection to bitbucket.org closed by remote host..00 KiB/s
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  8. Cong Nguyen

    Same here:

    Cloning into '********'...
    remote: Counting objects: 161, done.
    remote: Compressing objects: 100% (146/146), done.
    Connection to bitbucket.org closed by remote host.0 KiB/s      
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  9. James Redmond staff

    This error indicates that something has interrupted your traffic. It doesn't really say what caused the interruption - whether it was Bitbucket, or something on your local network, or something between, or something else - just that an interruption broke the session.

    If you get this, please open a support ticket with details about what you're trying to do (push, pull, clone, etc.); which DVCS you're using (Git or Mercurial); and whether you're using SSH or HTTPS. Please do not leave a "me too" or "+1" message here, because that will not fix your problem.

  10. Kevin van Zyl

    I am having the same problem, I just added a support ticket:

    I have been getting this error with every repo I try to clone (I tried at least 3) all over SSH and all with GIT:
    
    Connection to bitbucket.org closed by remote host.0.00 KiB/s
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
    I have tried many different things suggested on all the forums but nothing is working. Our network speed is several MB/s but the speed of clone is around 30 - 40 KiB/s maximum.
    
    I recently reinstalled my OS which is why I need to clone repos again. I'm on Ubuntu 16.04. My git version is 2.7.4.
    
  11. Raul Bravo

    Hi guys,

    I'm having the same issue, it works sometimes, but it fails a lot of times as well.. [RuntimeException] Connection to bitbucket.org closed by remote host. fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

    I'm using SSH to fetch

    Thanks

  12. Manuel Maldonado

    Hi everybody,

    Has anyone solved this problem? I have been presenting this issue for the past weekend. I'm trying to clone a repository via SSH. Other friends are presenting the same problems with other repositories as well

    remote: Counting objects: 9621, done.
    remote: Compressing objects: 100% (4485/4485), done.
    Connection to bitbucket.org closed by remote host.6.00 KiB/s    
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    

    We think this is happening for large repositories only.

  13. Alisson Negrisolo de Godoi

    I got this message when running the following command:

    sudo -u git -H ssh bitbucket.org
    PTY allocation request failed on channel 0 authenticated via a deploy key.

    You can use git or hg to connect to Bitbucket. Shell access is disabled.

    This deploy key has read access to the following repositories:

  14. Robbi Nespu

    Face the same issue today too

    λ git clone git@bitbucket.org:XXX/XXX.git
    Cloning into 'XXX'...
    remote: Counting objects: 1197, done.
    remote: Compressing objects: 100% (948/948), done.
    Connection to bitbucket.org closed by remote host..00 KiB/s
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    

    I tried almost five times, and it still happen.

    Then I tried to use better compression and it worked!

    git config --global core.compression 9
    
    λ git clone git@bitbucket.org:XXX/XXX.git
    Cloning into 'XXX'...
    remote: Counting objects: 1197, done.
    remote: Compressing objects: 100% (948/948), done.
    remote: Total 1197 (delta 194), reused 1197 (delta 194)
    Receiving objects: 100% (1197/1197), 33.22 MiB | 138.00 KiB/s, done.
    Resolving deltas: 100% (194/194), done.
    Checking out files: 100% (1081/1081), done
    
  15. Qingyong Zhang

    I got the same issue. EVERYTIMES****

    bogon:webrtc vellee$ git fetch remote: Counting objects: 1503, done. remote: Compressing objects: 100% (645/645), done. Connection to bitbucket.org closed by remote host..00 KiB/s
    fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed bogon:webrtc vellee$ git fetch remote: Counting objects: 1503, done. remote: Compressing objects: 100% (645/645), done. Connection to bitbucket.org closed by remote host.00 KiB/s
    fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

  16. Abdi Darmawan

    im use ssh, problem, bitbucket very slow via ssh, i think time to try gitlabs or github

    Connection to bitbucket.org closed by remote host.| 91.00 KiB/s
    fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

  17. Marcos Vallim

    Me too.

    I'm use ssh.

    git clone git@bitbucket.org:******/*******.git
    Cloning into '*******'...
    remote: Counting objects: 218148, done.
    remote: Compressing objects: 100% (39334/39334), done.
    Connection to bitbucket.org closed by remote host.B | 54.00 KiB/s   
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  18. Wim Berchmans

    I'm having trouble build a docker container because of this:

    using ssh git+ssh://git@bitbucket.org

    unable to prepare context: unable to 'git clone' to temporary context directory: Error trying to use git: exit status 128 (Cloning into '/tmp/docker-build-git187874206'...
    Connection to bitbucket.org closed by remote host.
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    )
    
  19. shen haibo

    I got the same issue. I'm use ssh.

    $ git pull
    remote: Counting objects: 272, done.
    remote: Compressing objects: 100% (180/180), done.
    Connection to bitbucket.org closed by remote host.00 KiB/s   
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  20. Vihaan Verma

    same issue with me

    vihaan@trojan:~/code/android/apps/mirraw 
    $ git clone git@bitbucket.org:acqapps/apps.git
    Cloning into 'apps'...
    remote: Counting objects: 477, done.
    remote: Compressing objects: 100% (311/311), done.
    Connection to bitbucket.org closed by remote host.0 KiB/s     
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    vihaan@trojan:~/code/android/apps/mirraw 
    $ git clone git@bitbucket.org:acqapps/apps.git
    Cloning into 'apps'...
    remote: Counting objects: 477, done.
    remote: Compressing objects: 100% (311/311), done.
    Connection to bitbucket.org closed by remote host.0 KiB/s    
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    vihaan@trojan:~/code/android/apps/mirraw 
    
  21. James Redmond staff

    Updated the pinned comment - this message is extremely generic, and does not indicate the root cause of the problem. If you get this, don't comment here, but instead open a support ticket with details.

  22. hyonzin

    I was facing same issue and solved it. $ git config --global core.compression 1

    core.compression 1 means "fastest compression", 9 means "best compression". This issue is caused by "the remote end hung up", so its compression needs to be fast.

  23. Carlos Delfino

    I took a repository which is a clone of another existing in GitHub and did several tests, both on Bitbucket, and on GitHub and locally, and I'm only having this problem with bitbucke.

    At least so far.

    I have had problems with Vagrant which also complains about the connection being restarted which leads me to believe that the problem in my case is connected to the provider.

    The good thing is that Vagrant continues to download the point where it hears error, different from git.

  24. Marco van Zwetselaar

    This problem still persists. I've tried many times, including the approach described on StackExchange, and with core.compression both at 0 and at 9. Finally managed by using https protocol and doing a shallow clone (--depth 1) first.

    Never have these issues with GitHub or GitLab, for either small or large repositories; on BitBucket they're frequent. A common trait of commenters seems to be that we're on slow networks. I will open a support ticket next time this happens, but would suggest to @James Redmond to examine if this couldn't be the network (security) infrastructure at your end expiring 'tarry' SSH connections.

  25. Lars Schröter

    In my case it might be related to a slow connection. I am currently in South America, and I can't my repository from bitbucket. I cloned it on a server based in Europe and transferred the complete cloned repository with scp to my local machine, which works well as workaround.

  26. Alex Manaev

    +1

    Receiving objects: 89% (673/752), 16.73 MiB | 55.00 KiB/s
    Connection to bitbucket.org closed by remote host. fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

    git ssh

  27. Log in to comment