# Problem with clone hanging

8 messages from 2006-08-07 to 2006-08-07. Participants: Bryan O'Sullivan, Erik Mouw, Sergey Vlasov, Michael S. Tsirkin.
Thread: https://gitlist.dev/t/5166

## Bryan O'Sullivan, 2006-08-07 16:42

Subject: Problem with clone hanging
Message-ID: <1154968942.26375.23.camel@sardonyx>
URL: https://gitlist.dev/e/1154968942.26375.23.camel%40sardonyx

```
I am trying to clone a repository as follows:

  git clone git://www.mellanox.co.il/~git/infiniband

This makes a tiny bit of progress, and then hangs, without ever printing
any output.

Upon doing an strace to figure out what might be going on, I see this:

     <...much activity...>
        28261 write(3, "0032want 8ba130df4b67fa40878ccf80d54615132d24bc68\n", 50) = 50
        28261 write(3, "0032want 7df8ea909888d4856d3aff1c41192739d715a393\n", 50) = 50
        28261 write(3, "0000", 4)               = 4
        28261 write(3, "0009done\n", 9)         = 9
        28261 read(3, "0008", 4)                = 4
        28261 read(3, "NAK\n", 4)               = 4
        28261 gettimeofday({1154968213, 166810}, NULL) = 0
        28261 open("/home/bos/git/ofed_1_1/.git/objects/pack/tmp-ZbzARk", O_RDWR|O_CREAT
        |O_EXCL, 0600) = 4
        28261 gettimeofday({1154968213, 167511}, NULL) = 0
        28261 read(3, ...
     <...HANG>

>From which I conclude that the server is telling the client to go away,
which the client is for some reason ignoring.

Not being a habitual git user, I don't know where to go from here.  I'm
using the latest git, cloned and built as of today.  Help!

	<b

```

## Erik Mouw, 2006-08-07 17:12

Subject: Re: Problem with clone hanging
Message-ID: <20060807171240.GA19907@harddisk-recovery.com>
URL: https://gitlist.dev/e/20060807171240.GA19907%40harddisk-recovery.com
In-Reply-To: <1154968942.26375.23.camel@sardonyx>

```
On Mon, Aug 07, 2006 at 09:42:22AM -0700, Bryan O'Sullivan wrote:
> I am trying to clone a repository as follows:
> 
>   git clone git://www.mellanox.co.il/~git/infiniband
> 
> This makes a tiny bit of progress, and then hangs, without ever printing
> any output.
> 
> Upon doing an strace to figure out what might be going on, I see this:
> 
>      <...much activity...>
>         28261 write(3, "0032want 8ba130df4b67fa40878ccf80d54615132d24bc68\n", 50) = 50
>         28261 write(3, "0032want 7df8ea909888d4856d3aff1c41192739d715a393\n", 50) = 50
>         28261 write(3, "0000", 4)               = 4
>         28261 write(3, "0009done\n", 9)         = 9
>         28261 read(3, "0008", 4)                = 4
>         28261 read(3, "NAK\n", 4)               = 4
>         28261 gettimeofday({1154968213, 166810}, NULL) = 0
>         28261 open("/home/bos/git/ofed_1_1/.git/objects/pack/tmp-ZbzARk", O_RDWR|O_CREAT
>         |O_EXCL, 0600) = 4
>         28261 gettimeofday({1154968213, 167511}, NULL) = 0
>         28261 read(3, ...
>      <...HANG>
> 
> >From which I conclude that the server is telling the client to go away,
> which the client is for some reason ignoring.
> 
> Not being a habitual git user, I don't know where to go from here.  I'm
> using the latest git, cloned and built as of today.  Help!

Looks like the same problem that kernel.org used to have. The other
side probably runs git-1.4.0, they should upgrade to 1.4.1. In the mean
time, you could clone using http and later on switch to git transport.


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

```

## Bryan O'Sullivan, 2006-08-07 17:21

Subject: Re: Problem with clone hanging
Message-ID: <1154971295.26375.48.camel@sardonyx>
URL: https://gitlist.dev/e/1154971295.26375.48.camel%40sardonyx
In-Reply-To: <20060807171240.GA19907@harddisk-recovery.com>

```
On Mon, 2006-08-07 at 19:12 +0200, Erik Mouw wrote:

> Looks like the same problem that kernel.org used to have. The other
> side probably runs git-1.4.0, they should upgrade to 1.4.1.

OK, thanks for the helpful response.

>  In the mean
> time, you could clone using http and later on switch to git transport.

It seems like Mellanox doesn't publish that repository over HTTP, so I'm
stuck.  Tziporet, can you upgrade your git installation, please?

	<b

```

## Sergey Vlasov, 2006-08-07 17:52

Subject: Re: Problem with clone hanging
Message-ID: <20060807215201.b54da1ce.vsu@altlinux.ru>
URL: https://gitlist.dev/e/20060807215201.b54da1ce.vsu%40altlinux.ru
In-Reply-To: <1154971295.26375.48.camel@sardonyx>

```
On Mon, 07 Aug 2006 10:21:35 -0700 Bryan O'Sullivan wrote:

> On Mon, 2006-08-07 at 19:12 +0200, Erik Mouw wrote:
> 
> > Looks like the same problem that kernel.org used to have. The other
> > side probably runs git-1.4.0, they should upgrade to 1.4.1.
> 
> OK, thanks for the helpful response.
> 
> >  In the mean
> > time, you could clone using http and later on switch to git transport.
> 
> It seems like Mellanox doesn't publish that repository over HTTP, so I'm
> stuck.  Tziporet, can you upgrade your git installation, please?

In the meantime, you can try to specify a local clone of the mainline
Linux repository with the --reference=... option to git-clone.  Then
the server will need to send only objects which do not exist in the
mainline tree, and should be able to prepare the pack faster.

```

## Bryan O'Sullivan, 2006-08-07 18:23

Subject: Re: Problem with clone hanging
Message-ID: <1154975000.26375.86.camel@sardonyx>
URL: https://gitlist.dev/e/1154975000.26375.86.camel%40sardonyx
In-Reply-To: <20060807215201.b54da1ce.vsu@altlinux.ru>

```
On Mon, 2006-08-07 at 21:52 +0400, Sergey Vlasov wrote:

> In the meantime, you can try to specify a local clone of the mainline
> Linux repository with the --reference=... option to git-clone. 

Thanks.  I don't know if what I'm cloning is actually a kernel tree,
unfortunately.

	<b

```

## Sergey Vlasov, 2006-08-07 18:32

Subject: Re: Problem with clone hanging
Message-ID: <20060807183230.GA14955@procyon.home>
URL: https://gitlist.dev/e/20060807183230.GA14955%40procyon.home
In-Reply-To: <1154975000.26375.86.camel@sardonyx>

```
On Mon, Aug 07, 2006 at 11:23:20AM -0700, Bryan O'Sullivan wrote:
> On Mon, 2006-08-07 at 21:52 +0400, Sergey Vlasov wrote:
> 
> > In the meantime, you can try to specify a local clone of the mainline
> > Linux repository with the --reference=... option to git-clone. 
> 
> Thanks.  I don't know if what I'm cloning is actually a kernel tree,
> unfortunately.

At least git ls-remote git://www.mellanox.co.il/~git/infiniband
suggests this.  Of course, it might contains some completely unrelated
branches (with git this is possible), but at least you won't need to
download the whole kernel history since 2.6.12-rc2.

```

## Michael S. Tsirkin, 2006-08-07 20:05

Subject: Re: Problem with clone hanging
Message-ID: <20060807200540.GA24206@mellanox.co.il>
URL: https://gitlist.dev/e/20060807200540.GA24206%40mellanox.co.il
In-Reply-To: <20060807183230.GA14955@procyon.home>

```
Quoting r. Sergey Vlasov <vsu@altlinux.ru>:
> Subject: Re: Problem with clone hanging
> 
> On Mon, Aug 07, 2006 at 11:23:20AM -0700, Bryan O'Sullivan wrote:
> > On Mon, 2006-08-07 at 21:52 +0400, Sergey Vlasov wrote:
> > 
> > > In the meantime, you can try to specify a local clone of the mainline
> > > Linux repository with the --reference=... option to git-clone. 
> > 
> > Thanks.  I don't know if what I'm cloning is actually a kernel tree,
> > unfortunately.
> 
> At least git ls-remote git://www.mellanox.co.il/~git/infiniband
> suggests this.  Of course, it might contains some completely unrelated
> branches (with git this is possible), but at least you won't need to
> download the whole kernel history since 2.6.12-rc2.

Exactly. It's a kernel-tree + other stuff.

-- 
MST

```

## Bryan O'Sullivan, 2006-08-07 22:26

Subject: Re: Problem with clone hanging
Message-ID: <1154989613.26375.104.camel@sardonyx>
URL: https://gitlist.dev/e/1154989613.26375.104.camel%40sardonyx
In-Reply-To: <20060807183230.GA14955@procyon.home>

```
On Mon, 2006-08-07 at 22:32 +0400, Sergey Vlasov wrote:
> On Mon, Aug 07, 2006 at 11:23:20AM -0700, Bryan O'Sullivan wrote:
> > On Mon, 2006-08-07 at 21:52 +0400, Sergey Vlasov wrote:
> > 
> > > In the meantime, you can try to specify a local clone of the mainline
> > > Linux repository with the --reference=... option to git-clone. 
> > 
> > Thanks.  I don't know if what I'm cloning is actually a kernel tree,
> > unfortunately.
> 
> At least git ls-remote git://www.mellanox.co.il/~git/infiniband
> suggests this.

Thanks.  This got me unwedged.

	<b

```
