How can I fix this serious git clone error? #48568
-
Select Topic AreaQuestion BodyI tried the following:
After a 20 minute delay at 94%, the result is:
How can I fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 33 comments 42 replies
-
Hi! There could be a lot of different things going on so I'm going to give you a general list and hopefully something helps!
If none of those steps work you might want to consider downloading the repo as a zip and working with it locally. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks for posting in the GitHub Community, @oliver-pyon ! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Issues category is solely related to conversations around the GitHub products Issues and Projects. I've gone ahead and moved it for you. |
Beta Was this translation helpful? Give feedback.
-
The error you're encountering, "fetch-pack: unexpected disconnect while reading sideband packet" along with "fatal: early EOF" and "fatal: fetch-pack: invalid index-pack output," often indicates a network or connectivity issue while cloning a Git repository from a remote server. Here are some steps to help you fix this issue:
git clone https://github.com/substrate-developer-hub/substrate-node-template.git
git clone git@github.com:substrate-developer-hub/substrate-node-template.git
git config --global http.postBuffer 524288000 # Set a larger buffer size
git config --global core.compression 0 # Disable compression
Keep in mind that the error message you're seeing is often related to network issues, so troubleshooting your network connectivity is a critical step in resolving this problem. |
Beta Was this translation helpful? Give feedback.
-
This is based on network issue. I also faced same issue while connecting mobile data So connected wifi issue is resolved. |
Beta Was this translation helpful? Give feedback.
-
change https to ssh |
Beta Was this translation helpful? Give feedback.
-
I got the relativly issue like.
This git repository is about 30G,its a Aosp git repository this issue raise persistently, And i had try plently of method, but this issue still there. First : modify git config file. didnt work for me Second: acrroding to stack overflow,I had try modify the system property like ulimit file Third: try to use git init and git remote add origin xxxurl, then git fetch --all --depath 1 If theres any other solution?Or maybe i should change the network? DeviceInfo: |
Beta Was this translation helpful? Give feedback.
-
mere network issue. connect to mobile data and you will O.K |
Beta Was this translation helpful? Give feedback.
-
Use |
Beta Was this translation helpful? Give feedback.
-
you can use google colab or some other environment for git clone !tar -czf file_name.tar.gz {'file_path'} replace file_path with the file path you want to export and file_name with the selective file name |
Beta Was this translation helpful? Give feedback.
-
I get this same issue on my iMac all the time. Cloning works fine outside of GitHub Desktop, and even GitHub Desktop works on a Macbook Air which is on the same WiFi. |
Beta Was this translation helpful? Give feedback.
-
Had the same problem, I imported the repo from Github to Gitlab and cloned the project from Gitlab, which worked without any issues. |
Beta Was this translation helpful? Give feedback.
-
Git: 1683 bytes of body are still expected |
Beta Was this translation helpful? Give feedback.
-
no answer |
Beta Was this translation helpful? Give feedback.
-
github fetch issue |
Beta Was this translation helpful? Give feedback.
-
fixed by updating GIT for Windows |
Beta Was this translation helpful? Give feedback.
-
I had the same error when I had a slow network and when the GitHub repo was very bulky. |
Beta Was this translation helpful? Give feedback.
-
The error you're encountering, "error: 6546 bytes of body are still expected," and "fetch-pack: unexpected disconnect while reading sideband packet," typically indicates an issue with the network connection or the remote repository's availability. Here are a few steps you can try to resolve the issue:
If none of these steps resolve the issue, it's possible that there might be a problem with the remote repository itself, or a more complex networking issue on your end. In such cases, you can try contacting the repository maintainers or seeking further assistance from the Git community or your network administrators. |
Beta Was this translation helpful? Give feedback.
-
Write the bellow command before cloning. this worked for me. git config --global http.postBuffer 1024M |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
All the above solutions didn't work until I switched to my mobile data before it worked. |
Beta Was this translation helpful? Give feedback.
-
git is very bad for cloning repos |
Beta Was this translation helpful? Give feedback.
-
Question: Then i tried to download it manually using command: after successful cloning i added the cloned repository to the specified path but still i am gettin g the same issue why? Please help me in this regard i am trying to do this from more than 3 days. |
Beta Was this translation helpful? Give feedback.
-
Try the following to resolve severe Git clone errors: |
Beta Was this translation helpful? Give feedback.
-
What worked for me was connecting with SSH and then did: git clone git@github.com:<organization>/<repository>.git |
Beta Was this translation helpful? Give feedback.
-
Git-2.47 has this issue (windows-version). I rolled-back to Git-2.42 and issue was fixed by this way. Looks like a really bug of newest Git. |
Beta Was this translation helpful? Give feedback.
-
The only solution that worked for me was to uncheck "use OpenSSH bundled with git " and to choose "Use external OpenSSH" instead (windows native one). OS windows 11, git version 2.47.0. |
Beta Was this translation helpful? Give feedback.
-
I might be late to the party, but using git commands via WSL worked for me. |
Beta Was this translation helpful? Give feedback.
-
with latest version the bug is fixed but download from github not from website (yet) https://github.com/git-for-windows/git/releases/tag/v2.47.0.windows.2 |
Beta Was this translation helpful? Give feedback.
-
Just updated to fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output It only worked on very small repositories. |
Beta Was this translation helpful? Give feedback.
Hi!
There could be a lot of different things going on so I'm going to give you a general list and hopefully something helps!
git clone --depth=1 https://github.com/substrate-developer-hub/substrate-node-template.git
If none of those steps work you might want to consider downloading the repo as a zip and working with it locally.
Hope this helps!