Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I resolve fetch-pack: unexpected disconnect while reading sideband packet

Ruma Kumari April 4, 2023

$ git clone https://innersource.*.com/*repoName.git
Cloning into 'repoName'...
remote: Enumerating objects: 2845, done.
remote: Counting objects: 100% (2845/2845), done.
remote: Compressing objects: 100% (2615/2615), done.
error: 2272 bytes of body are still expected | 2.14 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

2 answers

1 accepted

4 votes
Answer accepted
Victor Menes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2023

Hey Ruma,

 

Let's try to help you out here as I've seem some other users with the same issue.

In the past, I've seem below command being ran by the user received the error while trying to clone and it got resolved.

 

  • Let's try to resolve the issue by increasing buffer:
    git config --global http.postBuffer 52428800
  • Turn off the compression
    git config --global core.compression 0
    
  • Try the workaround here:
    $ git clone https://innersource.%2A.com/*repoName.git --depth 1
    $ cd repository
    $ git fetch --unshallow

Please let me know if that was helpful and if it resolved it :)

Akshi Srivastava June 14, 2023

Thanks,

It works for me

David Leach January 16, 2024

while this is an answer I don't understand why this only occurs against a bitbucket server. I have NEVER seen this error when pulling from GitHub so what is it about bitbucket servers that invoke this error?

DJ Stomp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2024

Oh, it happens with GitHub too.

a4j9Pyb

David Leach February 26, 2024

I see that it did for you. I have literally never seen it happen in the 4+ years I've been engaging with GitHub. But I can pretty much get it to happen 50-70% of the time to our internal bitbucket.

0 votes
Ricardo Bolívar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2024

It doesn't always fix it, it seems. I've never had this error before, but it happened when trying to clone a Github repo (that I've never tried before) by Github Desktop as well as by git clone the URL, and now again while trying the "fix".


git config --global http.postBuffer 52428800

git config --global core.compression 0

cd /Volumes/WD_Elements2018/GitHub/

git clone https://github.com/eliranwong/UniqueBible.git --depth 1
Cloning into 'UniqueBible'...
remote: Enumerating objects: 187613, done.
remote: Counting objects: 100% (187613/187613), done.
remote: Compressing objects: 100% (186984/186984), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 1378 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

 :(

Ricardo Bolívar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2024

Further information on this repo. I'm currently trying the zip download from Github, and it's "resuming …" at around 250 MB. Earlier when cloning with Github Desktop it was around 200MB and only reported as 2 or 3% progressed, before I had received the unexpected disconnect, and all of that, the first time! So this might be one of the larger Github repo's I've tried to download.

Also, I'm not on my home Internet, but on shared hotel Internet, and the speed is not so fast, although it's not unusual to sometimes get slow Github downloads.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events