Hi, I ran the following command, but this message has displayed.
How can I fix it?
E:\Workspace\Blockchain>git clone https://github.com/substrate-developer-hub/substrate-node-template
Cloning into 'substrate-node-template'...
remote: Enumerating objects: 2185, done.
remote: Counting objects: 100% (91/91), done.
remote: Compressing objects: 100% (54/54), done.
error: RPC failed; curl 56 Recv failure: Connection was reset
error: 2269 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Please, help me.
Thanks.
Maybe this answer from SO will help you? git - fatal: early EOF fatal: index-pack failed - Stack Overflow
It's where I took the idea I mentioned earlier from:
Hi, Jonas.I tried the following: git - fatal: early EOF fatal: index-pack failed - Stack Overflow
git config --global core.compression 0
git clone --depth 1 <repo_URI>
It works for me. This is helpful.
git fetch --unshallow
But It doesn't work for me.
The same error displayed.
How can I fix it?
The second most upvoted answer of the same SO question is very popular as well. The solution according to this post suggests changing the git settings concerning memory usage by adding the following lines to your %userprofile%/.gitconfig
file:
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
deltaCacheSize = 2047m
packSizeLimit = 2047m
windowMemory = 2047m
Thank you for your kind explanation, Jonas.
But I have already tried all of git - fatal: early EOF fatal: index-pack failed - Stack Overflow
The results were same.
Thanks.
Oliver
Well, I am using git bash: https://gitforwindows.org/ now.
My git version is git version 2.39.1.windows.1
Is there any problem?
Hmm no I don't think so. I'm just out of ideas. Someone with more git experience is needed to help you, I'm afraid.
I found more related questions where the answers suggest some networking/vpn/firewall/antivirus issues, maybe you'll find some answers there?
linux - Git, WSL2, SSH: unexpected disconnect while reading sideband packet - Server Fault
git - Github - unexpected disconnect while reading sideband packet - Stack Overflow