Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13290

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

      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?

            [BCLOUD-13290] Connection to bitbucket.org closed by remote host.00 KiB/s when tried to git fetch origin

            Anuj Jain added a comment -

            didn't fix it for me. Facing the same issue

            Anuj Jain added a comment - didn't fix it for me. Facing the same issue

            what need to be in git gc?

            Navya Krishna Dubbala added a comment - what need to be in  git gc?

            git gc fixed it for me, tried all configuration changes pointed out above without success.

            adam_kamieniarz added a comment - git gc fixed it for me, tried all configuration changes pointed out above without success.

            Successfully clones sometimes but fails a lot of times with this

            #!python
            
            git clone git@bitbucket.org:""
            Cloning into ''...
            remote: Counting objects: 1302, done.
            remote: Compressing objects: 100% (920/920), 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
            

            Sachin K Pissay added a comment - Successfully clones sometimes but fails a lot of times with this #!python git clone git@bitbucket.org:"" Cloning into ''... remote: Counting objects: 1302, done. remote: Compressing objects: 100% (920/920), 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

            default7 added a comment -
            [www@aliyun php2]$ ping 104.192.143.1
            PING 104.192.143.1 (104.192.143.1) 56(84) bytes of data.
            ^C
            --- 104.192.143.1 ping statistics ---
            4 packets transmitted, 0 received, 100% packet loss, time 2999ms
            
            [www@aliyun php2]$ ping 104.192.143.2
            PING 104.192.143.2 (104.192.143.2) 56(84) bytes of data.
            64 bytes from 104.192.143.2: icmp_seq=3 ttl=47 time=328 ms
            ^C
            --- 104.192.143.2 ping statistics ---
            4 packets transmitted, 1 received, 75% packet loss, time 3001ms
            rtt min/avg/max/mdev = 328.272/328.272/328.272/0.000 ms
            [www@aliyun php2]$ ping 104.192.143.3
            PING 104.192.143.3 (104.192.143.3) 56(84) bytes of data.
            64 bytes from 104.192.143.3: icmp_seq=1 ttl=47 time=313 ms
            64 bytes from 104.192.143.3: icmp_seq=5 ttl=47 time=319 ms
            64 bytes from 104.192.143.3: icmp_seq=6 ttl=47 time=330 ms
            ^C
            --- 104.192.143.3 ping statistics ---
            7 packets transmitted, 3 received, 57% packet loss, time 6003ms
            rtt min/avg/max/mdev = 313.884/321.593/330.925/7.066 ms
            [www@aliyun php2]$ ping bitbucket.org
            PING bitbucket.org (104.192.143.3) 56(84) bytes of data.
            64 bytes from bitbucket.org (104.192.143.3): icmp_seq=2 ttl=47 time=317 ms
            ^C
            --- bitbucket.org ping statistics ---
            4 packets transmitted, 1 received, 75% packet loss, time 3000ms
            rtt min/avg/max/mdev = 317.424/317.424/317.424/0.000 ms
            

            Why bitbucket.org is so slow.

            default7 added a comment - [www@aliyun php2]$ ping 104.192.143.1 PING 104.192.143.1 (104.192.143.1) 56(84) bytes of data. ^C --- 104.192.143.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms [www@aliyun php2]$ ping 104.192.143.2 PING 104.192.143.2 (104.192.143.2) 56(84) bytes of data. 64 bytes from 104.192.143.2: icmp_seq=3 ttl=47 time=328 ms ^C --- 104.192.143.2 ping statistics --- 4 packets transmitted, 1 received, 75% packet loss, time 3001ms rtt min/avg/max/mdev = 328.272/328.272/328.272/0.000 ms [www@aliyun php2]$ ping 104.192.143.3 PING 104.192.143.3 (104.192.143.3) 56(84) bytes of data. 64 bytes from 104.192.143.3: icmp_seq=1 ttl=47 time=313 ms 64 bytes from 104.192.143.3: icmp_seq=5 ttl=47 time=319 ms 64 bytes from 104.192.143.3: icmp_seq=6 ttl=47 time=330 ms ^C --- 104.192.143.3 ping statistics --- 7 packets transmitted, 3 received, 57% packet loss, time 6003ms rtt min/avg/max/mdev = 313.884/321.593/330.925/7.066 ms [www@aliyun php2]$ ping bitbucket.org PING bitbucket.org (104.192.143.3) 56(84) bytes of data. 64 bytes from bitbucket.org (104.192.143.3): icmp_seq=2 ttl=47 time=317 ms ^C --- bitbucket.org ping statistics --- 4 packets transmitted, 1 received, 75% packet loss, time 3000ms rtt min/avg/max/mdev = 317.424/317.424/317.424/0.000 ms Why bitbucket.org is so slow.

            default7 added a comment -

            I don't know why this happened so often.

            [www@ben php2]$ git pull -vvv
            Connection to bitbucket.org closed by remote host.
            fatal: Could not read from remote repository.
            
            Please make sure you have the correct access rights
            and the repository exists.
            
            

            default7 added a comment - I don't know why this happened so often. [www@ben php2]$ git pull -vvv Connection to bitbucket.org closed by remote host. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

            I faced the following issue while git pull:

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

            As many others in this thread, the issue was resolved with this : git config --global core.compression 9

            sauravhaloi added a comment - I faced the following issue while git pull: $ git pull origin master remote: Counting objects: 170, done. remote: Compressing objects: 100% (170/170), done. Connection to bitbucket.org closed by remote host. KiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed As many others in this thread, the issue was resolved with this : git config --global core.compression 9

            Andrea Tan added a comment -

            Ref: https://stackoverflow.com/a/29355320/3698376

            This error may occur for memory needs of git. You can add these lines to your global git configuration file, which is .gitconfig in $USER_HOME, in order to fix that problem.

            #!python
            
            
            [core] 
            packedGitLimit = 512m 
            packedGitWindowSize = 512m 
            [pack] 
            deltaCacheSize = 2047m 
            packSizeLimit = 2047m 
            windowMemory = 2047m
            

            Andrea Tan added a comment - Ref: https://stackoverflow.com/a/29355320/3698376 This error may occur for memory needs of git. You can add these lines to your global git configuration file, which is .gitconfig in $USER_HOME, in order to fix that problem. #!python [core] packedGitLimit = 512m packedGitWindowSize = 512m [pack] deltaCacheSize = 2047m packSizeLimit = 2047m windowMemory = 2047m

            chenxinlu added a comment -

            +1
            Receiving objects: 25% (725/2882), 1.15 MiB | 23.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

            chenxinlu added a comment - +1 Receiving objects: 25% (725/2882), 1.15 MiB | 23.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

            before git fetch you can use this command.

            git config --global core.compression 9
            

            darrenflexxu20170503 added a comment - before git fetch you can use this command. git config --global core.compression 9

              Unassigned Unassigned
              93416a78ef69 krisnaicube
              Affected customers:
              6 This affects my team
              Watchers:
              39 Start watching this issue

                Created:
                Updated:
                Resolved: