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

Re: Fwd: Re: git send-pack: protocol error: bad band #50

From
Jeff King <peff@peff.net>
Date
Apr 15, 2013, 01:04 UTC
Message-ID
<20130415010427.GB6477@sigill.intra.peff.net>
In-Reply-To
<51693B73.3030007@netcabo.pt>
On Sat, Apr 13, 2013 at 12:03:15PM +0100, João Joyce wrote:
> I have tried to remove and recreate my git folder and remove some
> files to get more logs. Here they are:
Your output looks quite odd.
> packet:         push< 0000000000000000000000000000000000000000 capabilities^{}\0 report-status delete-refs side-band-64k quiet ofs-delta
> packet:         push< 0000

So this is the server advertising its refs. It doesn't have any, so it just gives a blank capabilities string, followed by a flush. OK.

> packet:         push> 0000000000000000000000000000000000000000 17c420b8bd99856aee6da9c1743f6df0ec18a9ca refs/heads/master\0report-status side-band-64k
> packet:         push> 0000

And we want to push up one ref, so we send it, along its old and new sha1s, its name, and our own capabilities list. And then we flush. OK.

> packet:         push< 20b8bd99856aee6da9c1743f6df0ec18a9cac28267338c198573ad59e89d0acc445a62b3d127
> acf853d0a30287d9455dbe1707edeb16cc3e9b22

Now what the heck is this? We should be sending the packfile next, and the server should send us back the ref status. It would look something like:

packet: push< 0000000000000000000000000000000000000000 capabilities^{}\0 report-status delete-refs side-band-64k quiet ofs-delta packet: push< 0000 packet: push> 0000000000000000000000000000000000000000 662bbff2308c7e72f417d3419f4984222faf7ef8 refs/heads/master\0 report-status side-band-64k packet: push> 0000 packet: push< \1000eunpack ok0019ok refs/heads/master0000 packet: push< 0000 packet: push< unpack ok packet: push< ok refs/heads/master packet: push< 0000

What is generating that output on the server? Do you have any hooks on the server repository that might generate output (we _should_ be channeling their output over the sideband, but we might have missed a case). What transport are you using (git-over-ssh, git-over-http, etc)?

-Peff
Previous: João Joyce
Message 6 of 6 in “git send-pack: protocol error: bad band #50”
  1. João JoyceApr 11, 2013
  2. Konstantin KhomoutovApr 11, 2013
  3. Jonathan NiederApr 11, 2013
  4. João JoyceApr 11, 2013
  5. Fwd: Re: git send-pack: protocol error: bad band #50João Joyce, Apr 13, 2013
  6. Jeff KingApr 15, 2013

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.