git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Marek Vasut <marex@denx.de>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [BUG] git clone -q ends with early EOF
Date: Wed, 18 Sep 2013 14:14:44 -0400	[thread overview]
Message-ID: <20130918181443.GA18821@sigill.intra.peff.net> (raw)
In-Reply-To: <201309181444.19070.marex@denx.de>

On Wed, Sep 18, 2013 at 02:44:18PM +0200, Marek Vasut wrote:

> I am trying to clone a repository and I am getting the following output:
> 
> $ git clone -q git://kernel.ubuntu.com/ubuntu/linux.git
> fatal: The remote end hung up unexpectedly
> fatal: early EOF
> fatal: index-pack failed
> 
> The "fatal:" lines usually appear a few minutes after running the clone. Of 
> course, the clone does not finish successfully. Interestingly, when I drop the 
> '-q' option from the git clone commandline, the clone finishes correctly.

As Junio mentioned, this does seem like the issue that 05e9515
(upload-pack: send keepalive packets during pack computation,
2013-09-08) tries to fix. The server is quiet for a long period while
preparing the pack, and something in the network stack thinks the
connection has timed out and kills it.

One way you can check this is by running:

  time git clone -q git://kernel.ubuntu.com/ubuntu/linux.git

If it's a network timeout, it will die consistently at some nice round
number. In this case, I just ran that command twice, and it died both
times at just a hair over 2 minutes.  So that is probably what is going
on.  There's no proxy on my end, so presumably there is some front-end
reverse proxying happening on the server end, and it has a 2-minute
timeout.

The keepalive patch is not in any released version yet, but we have been
running it in production at GitHub for a few weeks. You may want to file
a support request with the Ubuntu folks asking to pick up the patch, or
to increase the timeouts on their proxies.

-Peff

  parent reply	other threads:[~2013-09-18 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-18 12:44 [BUG] git clone -q ends with early EOF Marek Vasut
2013-09-18 16:03 ` Junio C Hamano
2013-09-18 18:14 ` Jeff King [this message]
2013-09-18 19:50   ` Junio C Hamano
2013-09-18 20:55     ` Marek Vasut
2013-09-20 13:58     ` Marek Vasut

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=20130918181443.GA18821@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=marex@denx.de \
    /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).