pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
A error happend when I am clone the git repository
4+ messages / 4 participants
[nested] [flat]

* A error happend when I am clone the git repository
@ 2022-06-20 03:33  Wen Yi <chuxuec@outlook.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Wen Yi @ 2022-06-20 03:33 UTC (permalink / raw)
  To: pgsql-general

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<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 have ask this problem in the slack group,and now I report this to the mail list,please check it,thanks very much!



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: A error happend when I am clone the git repository
@ 2022-06-20 04:41  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Wen Yi <chuxuec@outlook.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Adrian Klaver @ 2022-06-20 04:41 UTC (permalink / raw)
  To: Wen Yi <chuxuec@outlook.com>; pgsql-general

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: A error happend when I am clone the git repository
@ 2022-06-20 04:48  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2022-06-20 04:48 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Magnus Hagander <magnus@hagander.net>; Wen Yi <chuxuec@outlook.com>; pgsql-general

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: A error happend when I am clone the git repository
@ 2022-06-20 20:31  Magnus Hagander <magnus@hagander.net>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Magnus Hagander @ 2022-06-20 20:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Adrian Klaver <adrian.klaver@aklaver.com>; Wen Yi <chuxuec@outlook.com>; pgsql-general

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

--
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2022-06-20 20:31 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 03:33 A error happend when I am clone the git repository Wen Yi <chuxuec@outlook.com>
2022-06-20 04:41 ` Adrian Klaver <adrian.klaver@aklaver.com>
2022-06-20 04:48   ` Tom Lane <tgl@sss.pgh.pa.us>
2022-06-20 20:31     ` Magnus Hagander <magnus@hagander.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox