threads / discuss / 34519

getting git from kernel.org is failing

Subject: getting git from kernel.org is failing

## tl;dr

5 messages between Jul 23, 2013 and Jul 23, 2013.

replies: 4people: 5as markdown or json

Stefan Beller· Jul 23, 2013, 19:41 UTC · lore

git clone https://git.kernel.org/cgit/git/git.git Cloning into 'git'... error: Unable to get pack index https://git.kernel.org/cgit/git/git.git/objects/pack/pack-1e2bca8b5127039cff42b1cd3d47767fb577cd4f.idx error: Unable to get pack file https://git.kernel.org/cgit/git/git.git/objects/pack/pack-6bfd3af75af71d7bf66a80d6374ac09245ad3ce5.pack The requested URL returned error: 404 Not found error: Unable to find bce6db96a333c2d47b07580c5a9207cf10935378 under https://git.kernel.org/cgit/git/git.git Cannot obtain needed blob bce6db96a333c2d47b07580c5a9207cf10935378 while processing commit 5addd1c7531cc644787cd562a3c22a3b714c7d77. error: Fetch failed.

as reported by ivegy on freenode/#git-devel
Stefan
Fredrik Gustafsson· Jul 23, 2013, 20:06 UTC · re: Stefan Beller · lore

Re: getting git from kernel.org is failing

On Tue, Jul 23, 2013 at 09:41:44PM +0200, Stefan Beller wrote:
Show 14 quoted lines
> git clone https://git.kernel.org/cgit/git/git.git
> Cloning into 'git'...
> error: Unable to get pack index https://git.kernel.org/cgit/git/git.git/objects/pack/pack-1e2bca8b5127039cff42b1cd3d47767fb577cd4f.idx
> error: Unable to get pack file https://git.kernel.org/cgit/git/git.git/objects/pack/pack-6bfd3af75af71d7bf66a80d6374ac09245ad3ce5.pack
> The requested URL returned error: 404 Not found
> error: Unable to find bce6db96a333c2d47b07580c5a9207cf10935378 under https://git.kernel.org/cgit/git/git.git
> Cannot obtain needed blob bce6db96a333c2d47b07580c5a9207cf10935378
> while processing commit 5addd1c7531cc644787cd562a3c22a3b714c7d77.
> error: Fetch failed.
> 
> as reported by ivegy on freenode/#git-devel
> 
> Stefan
> 

Confirmed (tested both with and without trailing /, IIRC there was some configuration change recently that effect that): iveqy@kolya:~/slask/git$ git clone https://git.kernel.org/cgit/git/git.git/ Klonar till "git"... error: Unable to get pack index https://git.kernel.org/cgit/git/git.git/objects/pack/pack-1e2bca8b5127039cff42b1cd3d47767fb577cd4f.idx ^C iveqy@kolya:~/slask/git$ git clone https://git.kernel.org/cgit/git/git.git Klonar till "git"... error: Unable to get pack index https://git.kernel.org/cgit/git/git.git/objects/pack/pack-1e2bca8b5127039cff42b1cd3d47767fb577cd4f.idx error: Unable to find d6b65e204c6009e5c30f358810198319b70eda25 under https://git.kernel.org/cgit/git/git.git Cannot obtain needed blob d6b65e204c6009e5c30f358810198319b70eda25 while processing commit 5addd1c7531cc644787cd562a3c22a3b714c7d77. error: Fetch failed. fatal: Reading from helper 'git-remote-https' failed iveqy@kolya:~/slask/git$

-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Jeff King· Jul 23, 2013, 20:21 UTC · re: Fredrik Gustafsson · lore

Re: getting git from kernel.org is failing

On Tue, Jul 23, 2013 at 10:06:05PM +0200, Fredrik Gustafsson wrote:
Show 7 quoted lines
> Confirmed (tested both with and without trailing /, IIRC there was some
> configuration change recently that effect that):
> iveqy@kolya:~/slask/git$ git clone
> https://git.kernel.org/cgit/git/git.git/
> Klonar till "git"...
> error: Unable to get pack index
> https://git.kernel.org/cgit/git/git.git/objects/pack/pack-1e2bca8b5127039cff42b1cd3d47767fb577cd4f.idx

That's weird. We shouldn't be fetching an index at all unless dumb http is in use. When I try to clone from the URL above, I also get shunted to dumb-http (and the repo on the server appears to be poorly packed).

But if I go to:
  https://git.kernel.org/pub/scm/git/git.git

then smart HTTP works fine. I wonder if there is a problem in the cgit setup on kernel.org (or if it was even intended that you could fetch from the cgit URL at all; the cgit page shows the clone URLs in /pub/scm/git).

-Peff
Jonathan Nieder· Jul 23, 2013, 20:40 UTC · re: Jeff King · lore

Re: getting git from kernel.org is failing

Jeff King wrote:
> then smart HTTP works fine. I wonder if there is a problem in the cgit
> setup on kernel.org (or if it was even intended that you could fetch
> from the cgit URL at all; the cgit page shows the clone URLs in
> /pub/scm/git).

I didn't think cgit URLs were meant to be clonable, but since ls-remote works on them, it seems I thought wrong. :) Odd.

Thanks, Jonathan

John Keeping· Jul 23, 2013, 21:06 UTC · re: Jonathan Nieder · lore

Re: getting git from kernel.org is failing

On Tue, Jul 23, 2013 at 01:40:05PM -0700, Jonathan Nieder wrote:
Show 9 quoted lines
> Jeff King wrote:
> 
> > then smart HTTP works fine. I wonder if there is a problem in the cgit
> > setup on kernel.org (or if it was even intended that you could fetch
> > from the cgit URL at all; the cgit page shows the clone URLs in
> > /pub/scm/git).
> 
> I didn't think cgit URLs were meant to be clonable, but since
> ls-remote works on them, it seems I thought wrong. :)  Odd.

CGit has a config option "enable-http-clone" which causes it to act as an endpoint for the dumb HTTP protocol. That option defaults to "on", so I suspect that kernel.org has just left it at the default.

← back to recent threads