git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: possible race condition (fetch-pack: unexpected disconnect while reading sideband packet)

From
Jeff King <peff@peff.net>
Date
Apr 15, 2021, 08:29 UTC
Message-ID
<YHf5bkiE7SVPTBvU@coredump.intra.peff.net>
In-Reply-To
<df13300936784af7bb6c23f9fe0465c9@digiteqautomotive.com>
On Wed, Apr 14, 2021 at 10:12:44AM +0000, Simon, Martin (Digiteq Automotive) wrote:
Show 8 quoted lines
> Actual result (when failed):
> Cloning into 'local-repo-name'...
> remote: Enumerating objects: 237, done.
> remote: Counting objects: 100% (237/237), done.
> remote: Compressing objects: 100% (129/129), done.
> fetch-pack: unexpected disconnect while reading sideband packet
> fatal: early EOF
> fatal: fetch-pack: invalid index-pack output

This could be many things. A bug or race on the client side is possible, but it could also be that the network session really _is_ being disconnected. This could be something in the network stack itself terminating the connection, or it could be a bug or other error on the server.

Some things to consider/try:
  - you can run with GIT_TRACE_PACKET=1 set in the environment, which
    will dump the protocol messages that Git sees (this may not be
    enlightening since the problem case seems to be a hangup, but
    perhaps the moment it happens will be relevant)
  - you didn't say which protocol you're using. If it's http, try
    setting GIT_TRACE_CURL, too, and it will dump debugging data about
    the http session
  - if possible, try a different protocol (like ssh) and see if the
    problem continues to show up
  - look at server-side logs to see how the server perceives the
    sessions. Does it report any errors that might cause it to hang up?
    Does it see a client-side hangup (which might be indicative of
    something flaky in the network)?
-Peff
Previous: Simon, Martin (Digiteq Automotive)Next: brian m. carlson
Message 2 of 3 in “possible race condition (fetch-pack: unexpected disconnect while reading sideband packet)”
  1. Simon, Martin (Digiteq Automotive)Apr 14, 2021
  2. Jeff KingApr 15, 2021
  3. brian m. carlsonApr 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.