Send-pack: unexpected disconnect while reading sideband packet

Github - unexpected disconnect while reading sideband packet

Questions : Github - unexpected disconnect while reading sideband packet

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00

176

I've got quite interesting problem. I tried anycodings_reactjs to send some projects via bash to repo and anycodings_reactjs recently there was a problem with sending anycodings_reactjs it.

Enumerating objects: 27, done. Counting objects: 100% (27/27), done. Delta compression using up to 16 threads Compressing objects: 100% (24/24), done. Writing objects: 100% (25/25), 187.79 KiB | 9.39 MiB/s, done. Total 25 (delta 1), reused 0 (delta 0), pack-reused 0 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly

The funny part is that 10 min earlier I can anycodings_reactjs send it without any problems.

I tried with getting new repo, creating new anycodings_reactjs file, reinstalling git, git config --global anycodings_reactjs http.postBuffer 524288000 with bigger anycodings_reactjs numbers as well, also https.postBuffer and anycodings_reactjs so on. Also install desktop version the same anycodings_reactjs issue come in.

I've got problems mostly with React apps.

Anyone know the solution ? What could go anycodings_reactjs wrong ?

Total Answers 11

32

Answers 1 : of Github - unexpected disconnect while reading sideband packet

First of all, check your network anycodings_github connection stability.

If there is no problem with network anycodings_github connection try another solution; it may anycodings_github work:

On Linux

Execute the following in the command anycodings_github line before executing the Git command:

export GIT_TRACE_PACKET=1 export GIT_TRACE=1 export GIT_CURL_VERBOSE=1

On Windows

Execute the following in the command anycodings_github line before executing the Git command:

set GIT_TRACE_PACKET=1 set GIT_TRACE=1 set GIT_CURL_VERBOSE=1

In addition:

git config --global core.compression 0 git clone --depth 1 <repo_URI> # cd to your newly created directory git fetch --unshallow git pull --all

For PowerShell users:

As kodybrown said in the comments:

$env:GIT_TRACE_PACKET=1 $env:GIT_TRACE=1 $env:GIT_CURL_VERBOSE=1

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

mRahman

6

Answers 2 : of Github - unexpected disconnect while reading sideband packet

It might be your network issue. If the anycodings_github network is too slow, then it might anycodings_github disconnect the connection unexpectedly.

If you have good internet and are still anycodings_github getting this message, then it might be anycodings_github an issue with your post buffer. Use this anycodings_github command to increase it:

git config --global http.postBuffer 157286400

According to the documentation at anycodings_github //git-scm.com/docs/git-config#Documentation/git-config.txt-httppostBuffer:

Maximum size in bytes of the buffer used anycodings_github by smart HTTP transports when POSTing anycodings_github data to the remote system. For requests anycodings_github larger than this buffer size, HTTP/1.1 anycodings_github and Transfer-Encoding: chunked is used anycodings_github to avoid creating a massive pack file anycodings_github locally. Default is 1 MiB, which is anycodings_github sufficient for most requests.

Note that raising this limit is only anycodings_github effective for disabling chunked transfer anycodings_github encoding and therefore should be used anycodings_github only where the remote server or a proxy anycodings_github only supports HTTP/1.0 or is anycodings_github noncompliant with the HTTP standard. anycodings_github Raising this is not, in general, an anycodings_github effective solution for most push anycodings_github problems, but can increase memory anycodings_github consumption significantly since the anycodings_github entire buffer is allocated even for anycodings_github small pushes.

So this is only a mitigation in cases anycodings_github where the server is having issues. This anycodings_github is most likely not going to fix push anycodings_github problems to GitHub or GitLab.com.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

joy

2

Answers 3 : of Github - unexpected disconnect while reading sideband packet

I didn't want to believe it but after 3 anycodings_github failed clones, switching from a wifi anycodings_github connection (on Mac) to hardwired anycodings_github connection (on Linux) made it work first anycodings_github time. Not sure why!

//serverfault.com/questions/1056419/git-wsl2-ssh-unexpected-disconnect-while-reading-sideband-packet/1060187#1060187

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

jidam

1

Answers 4 : of Github - unexpected disconnect while reading sideband packet

I had the same problem. I have a repo anycodings_github with 20000 files, the whole repo is anycodings_github about 5 GB in size, and some files are anycodings_github 10 MB in size. I could commit to the anycodings_github repo without problems and I could clone anycodings_github without problems (it took a while, anycodings_github though). Yet, every other time I pulled anycodings_github this repo to my machine I got

remote: Enumerating objects: 1359, done. remote: Counting objects: 100% (1359/1359), done. remote: Compressing objects: 100% (691/691), done. remote: Total 1221 (delta 530), reused 1221 (delta 530), pack-reused 0 fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output

What finally helped was a this tip. Go anycodings_github to your user directory and edit anycodings_github .git/config and add:

[core] packedGitLimit = 512m packedGitWindowSize = 512m [pack] deltaCacheSize = 2047m packSizeLimit = 2047m windowMemory = 2047m

Voilá. No more errors.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

joy

5

Answers 5 : of Github - unexpected disconnect while reading sideband packet

In my case, I had a few files that were anycodings_github over 100MB in size when trying to push anycodings_github my initial commit. Since GitHub anycodings_github apparently doesn't allow this, you get anycodings_github an error "unexpected disconnect while anycodings_github reading sideband packet fatal: the anycodings_github remote end hung up unexpectedly".

Using git rm was not enough, I had to anycodings_github start all over again with git init, git anycodings_github add, git commit and git push to resolve anycodings_github the issue.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

joy

2

Answers 6 : of Github - unexpected disconnect while reading sideband packet

If you are using SSH URLs, you can try anycodings_github the following, it worked for me the two anycodings_github times I had the same issue:

  1. Switch to HTTPS origin URL: git remote set-url origin //github.com/<your_repo>
  2. Do the push. It should not fail now.
  3. Switch back to SSH: git remote set-url origin :<your_repo>

I'm still not sure what is the cause of anycodings_github the issue. This is just a work around.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

miraj

2

Answers 7 : of Github - unexpected disconnect while reading sideband packet

In my case I got this error with the anycodings_github first commit to a new repo.

I just deleted the .git folder and then anycodings_github added a few files at a time, committing anycodings_github with each addition.

I managed to add everything back, anycodings_github without running into the same error.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

jidam

6

Answers 8 : of Github - unexpected disconnect while reading sideband packet

I tried the suggestions above, without anycodings_github success.

It turns out my issue was path length. I anycodings_github don't know if it was the number of anycodings_github nested directories (which are plentiful) anycodings_github or overall path length (path + file).

I cloned at the root of my drive and it anycodings_github worked (yes, on Windows 10).

UPDATE: To clarify, I had to clone to anycodings_github the root of my drive, using the accepted anycodings_github answer.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

raja

5

Answers 9 : of Github - unexpected disconnect while reading sideband packet

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

jidam

5

Answers 10 : of Github - unexpected disconnect while reading sideband packet

I had this error cause of miss config anycodings_github norton 360 (firewall/app blocker). Set anycodings_github norton 360 to default settings and then anycodings_github it works.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

jidam

4

Answers 11 : of Github - unexpected disconnect while reading sideband packet

I think Try Different Network That and anycodings_github see Problem Still Occurred. You face anycodings_github this problem Because of low Connectivity anycodings_github Of Internet.

0

2022-09-16T07:50:53+00:00 2022-09-16T07:50:53+00:00Answer Link

joy

Toplist

Latest post

TAGs