Thread: A error happend when I am clone the git repository

A error happend when I am clone the git repository

From
Wen Yi
Date:
When I reinstall my system,I clone the postgresql repository,but there's something wrong.
The console print as these:

[beginnerc@fedora Research]$ git clone https://git.postgresql.org/git/postgresql.git
Cloning into 'postgresql'...
remote: Enumerating objects: 30747, done.
remote: Counting objects: 100% (30747/30747), done.
remote: Compressing objects: 100% (13431/13431), done.
error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

I not clone the repository from github,directly from git.postgresql.org 
I try it again and again,but failed.
Eventually I have to download the source from the offical website.
My system is Fedora 36 and my git version is 2.36.1
I check the download speed,that is about 220kb/s.

I have ask this problem in the slack group,and now I report this to the mail list,please check it,thanks very much!

Re: A error happend when I am clone the git repository

From
Adrian Klaver
Date:
On 6/19/22 20:33, Wen Yi wrote:
> When I reinstall my system,I clone the postgresql repository,but there's 
> something wrong.
> The console print as these:
> 
> |[beginnerc@fedora Research]$ git clone 
> ||https://git.postgresql.org/git/postgresql.git 
> <https://git.postgresql.org/git/postgresql.git>|
> |Cloning into 'postgresql'...|
> |remote: Enumerating objects: 30747, done.|
> |remote: Counting objects: 100% (30747/30747), done.|
> |remote: Compressing objects: 100% (13431/13431), done.|
> |error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly 
> before end of the underlying stream|
> |fetch-pack: unexpected disconnect while reading sideband packet|
> |fatal: early EOF|
> |fatal: fetch-pack: invalid index-pack output|
> 
> I not clone the repository from github,directly fromgit.postgresql.org 
> <http://git.postgresql.org/>
> I try it again and again,but failed.
> Eventually I have to download the source from the offical website.
> My system is Fedora 36 and my git version is 2.36.1
> I check the download speed,that is about 220kb/s.

I tried it on two different machines with Git 2.30.2 and 2.25.1 and it 
worked.

I have to believe it is related to bleeding edge OS Fedora 36 in 
combination with latest Git 2.36.1.

> 
> I have ask this problem in the slack group,and now I report this to the 
> mail list,please check it,thanks very much!
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



Re: A error happend when I am clone the git repository

From
Tom Lane
Date:
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 6/19/22 20:33, Wen Yi wrote:
>> |[beginnerc@fedora Research]$ git clone 
>> ||https://git.postgresql.org/git/postgresql.git 
>> <https://git.postgresql.org/git/postgresql.git>|
>> |Cloning into 'postgresql'...|
>> |remote: Enumerating objects: 30747, done.|
>> |remote: Counting objects: 100% (30747/30747), done.|
>> |remote: Compressing objects: 100% (13431/13431), done.|
>> |error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly 
>> before end of the underlying stream|

> I have to believe it is related to bleeding edge OS Fedora 36 in 
> combination with latest Git 2.36.1.

No, I think it's more about this:

>> I check the download speed,that is about 220kb/s.

I've seen this failure multiple times on very slow machines.
I think there's some sort of connection timeout somewhere in
the git.postgresql.org infrastructure, causing a "git clone"
that takes more than a couple of minutes to fail.  I've
complained about it before, but we've not isolated the cause.

            regards, tom lane



Re: A error happend when I am clone the git repository

From
Magnus Hagander
Date:

On Mon, Jun 20, 2022 at 6:48 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 6/19/22 20:33, Wen Yi wrote:
>> |[beginnerc@fedora Research]$ git clone
>> ||https://git.postgresql.org/git/postgresql.git
>> <https://git.postgresql.org/git/postgresql.git>|
>> |Cloning into 'postgresql'...|
>> |remote: Enumerating objects: 30747, done.|
>> |remote: Counting objects: 100% (30747/30747), done.|
>> |remote: Compressing objects: 100% (13431/13431), done.|
>> |error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly
>> before end of the underlying stream|

> I have to believe it is related to bleeding edge OS Fedora 36 in
> combination with latest Git 2.36.1.

No, I think it's more about this:

>> I check the download speed,that is about 220kb/s.

I've seen this failure multiple times on very slow machines.
I think there's some sort of connection timeout somewhere in
the git.postgresql.org infrastructure, causing a "git clone"
that takes more than a couple of minutes to fail.  I've
complained about it before, but we've not isolated the cause.

The last time we debugged it pretty much the only conclusion we managed to come to I think was that it is *not* in the git.postgresql.org infrastructure. I tried it from *many* different locations and it worked fine from all of them, even when artificially slowing it down to something much slower.

So yes, there is *something*, but it's not with in the pg.org infrastructure. 

One thing we got to work that time, I think, was to run:
git config --global http.version HTTP/1.1

--