git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: "Simon,
	Martin (Digiteq Automotive)" 
	<Martin.Simon@digiteqautomotive.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: possible race condition (fetch-pack: unexpected disconnect while reading sideband packet)
Date: Thu, 15 Apr 2021 04:29:34 -0400	[thread overview]
Message-ID: <YHf5bkiE7SVPTBvU@coredump.intra.peff.net> (raw)
In-Reply-To: <df13300936784af7bb6c23f9fe0465c9@digiteqautomotive.com>

On Wed, Apr 14, 2021 at 10:12:44AM +0000, Simon, Martin (Digiteq Automotive) wrote:

> 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

  reply	other threads:[~2021-04-15  8:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 10:12 possible race condition (fetch-pack: unexpected disconnect while reading sideband packet) Simon, Martin (Digiteq Automotive)
2021-04-15  8:29 ` Jeff King [this message]
2021-04-16  0:04   ` brian m. carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YHf5bkiE7SVPTBvU@coredump.intra.peff.net \
    --to=peff@peff.net \
    --cc=Martin.Simon@digiteqautomotive.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).