threads / discuss / 35324

Problem while cloning a git repo

Subject: Problem while cloning a git repo

## tl;dr

6 messages between Nov 12, 2013 and Nov 18, 2013.

replies: 5people: 2as markdown or json

ycollette.nospam@free.fr· Nov 12, 2013, 12:50 UTC · lore
Hello,
When I clone a repository, I get an error from git:

git clone http://192.168.0.18:8080/test test_Gerrit Clonage dans 'test_Gerrit'... remote: Counting objects: 25106, done remote: Finding sources: 100% (25106/25106) error: RPC failed; result=56, HTTP code = 200iB | 8.12 MiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

The repo has some "big" zip files commited inside. I use fedora 19 64 bits and git version is 1.8.3.1.

Best regards,
YC
brian m. carlson· Nov 13, 2013, 00:20 UTC · re: ycollette.nospam@free.fr · lore

Re: Problem while cloning a git repo

On Tue, Nov 12, 2013 at 01:50:24PM +0100, ycollette.nospam@free.fr wrote:
Show 9 quoted lines
> Hello,
> 
> When I clone a repository, I get an error from git:
> 
> git clone http://192.168.0.18:8080/test test_Gerrit
> Clonage dans 'test_Gerrit'...
> remote: Counting objects: 25106, done
> remote: Finding sources: 100% (25106/25106)
> error: RPC failed; result=56, HTTP code = 200iB | 8.12 MiB/s   

curl code 56 is a receive error (CURLE_RECV_ERROR). It sounds like you're encountering some sort of network error or broken proxy. Does cloning this repository over the git protocol or SSH work, or can you try it over https (to avoid the proxy)?

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Yann COLLETTE· Nov 13, 2013, 07:58 UTC · re: brian m. carlson · lore

Re: Problem while cloning a git repo

Hello,

When I perform the git clone via git, it works. The problem is only happening via http. I tried to play with http.postBuffer and I set this parameter to it's maximum (a little bit before a git clone triggered a memory alloc problem) and I see that something big is trying to be downloaded. But I don't see such a big file in my history of commits. The maximum one seems to be around 50 Mo ...

Le 13/11/2013 01:20, brian m. carlson a écrit :
Show 15 quoted lines
> On Tue, Nov 12, 2013 at 01:50:24PM +0100, ycollette.nospam@free.fr wrote:
>> Hello,
>>
>> When I clone a repository, I get an error from git:
>>
>> git clone http://192.168.0.18:8080/test test_Gerrit
>> Clonage dans 'test_Gerrit'...
>> remote: Counting objects: 25106, done
>> remote: Finding sources: 100% (25106/25106)
>> error: RPC failed; result=56, HTTP code = 200iB | 8.12 MiB/s
> curl code 56 is a receive error (CURLE_RECV_ERROR).  It sounds like
> you're encountering some sort of network error or broken proxy.  Does
> cloning this repository over the git protocol or SSH work, or can you
> try it over https (to avoid the proxy)?
>
brian m. carlson· Nov 13, 2013, 23:40 UTC · lore

Re: Problem while cloning a git repo

On Wed, Nov 13, 2013 at 08:43:28AM +0100, Yann COLLETTE wrote:
Show 9 quoted lines
> Hello,
> 
> When I perform the git clone via git, it works. The problem is only
> happening via http.
> I tried to play with http.postBuffer and I set this parameter to
> it's maximum (a little bit before a git clone triggered a memory
> alloc problem) and I see that something big is trying to be
> downloaded. But I don't see such a big file in my history of
> commits. The maximum one seems to be around 50 Mo ...
Please keep the list in CC.

http.postBuffer doesn't affect clones, only pushes, so that isn't relevant here. You're experiencing something that is dropping the connection over HTTP. So you either have a bad proxy, or something else is causing the connection to be dropped. Since it's only over HTTP, I suspect it's the former.

Do you have HTTPS, and if so, does it work if you try to clone over that?

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Yann COLLETTE· Nov 14, 2013, 08:20 UTC · re: brian m. carlson · lore

Re: Problem while cloning a git repo

I am not able to clone via https because gerrit doesn't propose this way 
of cloning.
When I clone via http, I see that git is starting the download of objects:
remote: Counting objects: 256, done
remote: Finding sources: 100% (256/256)
Receiving objects: 46% ... (this part always fails at 46 %).
So, I think that the proxy part is not a problem (there is no proxy set 
here).
If I set GIT_CURL_VERBOSE=1 before cloning, I've got the following error:
* Problem (2) in the Chunked-Encoded data
* Closing connection 1
YC
Le 14/11/2013 00:40, brian m. carlson a écrit :
Show 21 quoted lines
> On Wed, Nov 13, 2013 at 08:43:28AM +0100, Yann COLLETTE wrote:
>> Hello,
>>
>> When I perform the git clone via git, it works. The problem is only
>> happening via http.
>> I tried to play with http.postBuffer and I set this parameter to
>> it's maximum (a little bit before a git clone triggered a memory
>> alloc problem) and I see that something big is trying to be
>> downloaded. But I don't see such a big file in my history of
>> commits. The maximum one seems to be around 50 Mo ...
> Please keep the list in CC.
>
> http.postBuffer doesn't affect clones, only pushes, so that isn't
> relevant here.  You're experiencing something that is dropping the
> connection over HTTP.  So you either have a bad proxy, or something else
> is causing the connection to be dropped.  Since it's only over HTTP, I
> suspect it's the former.
>
> Do you have HTTPS, and if so, does it work if you try to clone over
> that?
>
ycollette.nospam@free.fr· Nov 18, 2013, 07:31 UTC · re: Yann COLLETTE · lore

Re: Problem while cloning a git repo

When I clone a git repo from github (via https), I've no problems. It looks like that the problem is only related to my "special" repo with big zip commited inside.

YC
----- Mail original -----
De: "Yann COLLETTE" <ycollette.nospam@free.fr>
À: git@vger.kernel.org
Envoyé: Jeudi 14 Novembre 2013 09:20:51
Objet: Re: Problem while cloning a git repo
I am not able to clone via https because gerrit doesn't propose this way 
of cloning.
When I clone via http, I see that git is starting the download of objects:
remote: Counting objects: 256, done
remote: Finding sources: 100% (256/256)
Receiving objects: 46% ... (this part always fails at 46 %).
So, I think that the proxy part is not a problem (there is no proxy set 
here).
If I set GIT_CURL_VERBOSE=1 before cloning, I've got the following error:
* Problem (2) in the Chunked-Encoded data
* Closing connection 1
YC
Le 14/11/2013 00:40, brian m. carlson a écrit :
Show 21 quoted lines
> On Wed, Nov 13, 2013 at 08:43:28AM +0100, Yann COLLETTE wrote:
>> Hello,
>>
>> When I perform the git clone via git, it works. The problem is only
>> happening via http.
>> I tried to play with http.postBuffer and I set this parameter to
>> it's maximum (a little bit before a git clone triggered a memory
>> alloc problem) and I see that something big is trying to be
>> downloaded. But I don't see such a big file in my history of
>> commits. The maximum one seems to be around 50 Mo ...
> Please keep the list in CC.
>
> http.postBuffer doesn't affect clones, only pushes, so that isn't
> relevant here.  You're experiencing something that is dropping the
> connection over HTTP.  So you either have a bad proxy, or something else
> is causing the connection to be dropped.  Since it's only over HTTP, I
> suspect it's the former.
>
> Do you have HTTPS, and if so, does it work if you try to clone over
> that?
>

← back to recent threads