Skip to contentSkip to conversation

Problem with clone hanging

DISCUSSION Bryan O'Sullivan 4 participants 8 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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>
Quoted 1 line

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
#1 lore raw
Quoted 23 lines · Bryan O'Sullivan

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>
Quoted 5 lines
Quoted 1 line

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

Signature · 2 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
#2 lore raw
Quoted 2 lines · Erik Mouw

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.

Quoted 2 lines

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
#3 lore raw
Quoted 5 lines · On Mon, 07 Aug 2006 10:21:35 -0700 Bryan O'Sullivan wrote:
Quoted 2 lines · Erik Mouw

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.

Quoted 7 lines

OK, thanks for the helpful response.

Quoted 2 lines

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.

#4 lore raw
Quoted 2 lines · Sergey Vlasov

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
#5 lore raw
Quoted 7 lines · Bryan O'Sullivan
Quoted 2 lines · Sergey Vlasov

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.

#6 lore raw
Quoted 11 lines · Sergey Vlasov
Quoted 7 lines · Bryan O'Sullivan
Quoted 2 lines · Sergey Vlasov

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
#7 lore raw
In reply to Sergey Vlasov

Quoting r. Sergey Vlasov <[email protected]>:

Quoted 8 lines

Subject: Re: Problem with clone hanging

Quoted 5 lines · Bryan O'Sullivan
Quoted 2 lines · Sergey Vlasov

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

Quoted 7 lines
Quoted 2 lines

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.

Signature · 1 line
MST