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: 18 comments 29 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 [email protected]: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.
-
mine worked after restarting my laptop and switched to mobile connection |
Beta Was this translation helpful? Give feedback.
-
I tried all of the above nothing worked for me What worked for me I updated the git bash to version 2.46.0 and issue solved! |
Beta Was this translation helpful? Give feedback.
-
I was getting this error while connected to an airport network, but then I turned on my VPN (NordVPN connected to Chicago) and I was able to download just fine. |
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!