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.
jofas
February 21, 2023, 8:59pm
2
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:
Could you run this:
> git config --global core.compression 0
and try again, please?
1 Like
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?
1 Like
jofas
February 22, 2023, 9:33am
4
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
jofas
February 22, 2023, 9:52am
6
Are you using the official git: Git - Downloading Package or git bash: https://gitforwindows.org/ ? Also what version is your git installation? Maybe updating git to the latest version is all you need?
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?
jofas
February 22, 2023, 10:23am
8
oliver-pyon:
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?
1 Like
system
Closed
May 23, 2023, 10:23am
9
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.