git.moodle.org[0: 52.208.x.x]: errno=Connection refused

git.moodle.org[0: 52.208.x.x]: errno=Connection refused

Ken Task發表於
Number of replies: 5
Particularly helpful Moodlers的相片
First time ever seeing the connection refused ... had to resort to attempting:

which was successful from same server about a week ago.

and that also errored ... :|

remote: Compressing objects: 100% (228/228), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 3748 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

OS is CentOS 7 (yeah, I know, migration coming soon)
Hosts with Digiweb IE
git version
1.8.3.1-25.el7_9
curl version
7.29.0-59.el7_9.2

yum (package manager) has no updates available for git or curl

Appears to be a network thang or a big HICKUP! BURP! ... but maybe not.

Any suggestions appreciated.

'SoS', Ken
評比平均分數: -
In reply to Ken Task

Re: git.moodle.org[0: 52.208.x.x]: errno=Connection refused

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
Worked on my Debian 12 (MX-Linux) laptop:

$ git clone https://github.com/moodle/moodle.git gitcode
Klone nach 'gitcode'...
remote: Enumerating objects: 1436775, done.
remote: Counting objects: 100% (363/363), done.
remote: Compressing objects: 100% (228/228), done.
remote: Total 1436775 (delta 210), reused 232 (delta 135), pack-reused 1436412
Empfange Objekte: 100% (1436775/1436775), 718.11 MiB | 10.64 MiB/s, fertig.
Löse Unterschiede auf: 100% (1013089/1013089), fertig.
Aktualisiere Dateien: 100% (28026/28026), fertig.

Never encountered. I usually get from git.moodle.org, not GitHub:

$ git clone git://git.moodle.org/moodle.git TARGETDIR

A web search brought all sorts of causes and remedies!
https://stackoverflow.com/questions/38618885/error-rpc-failed-curl-transfer-closed-with-outstanding-read-data-remaining
In reply to Visvanath Ratnaweera

Re: git.moodle.org[0: 52.208.x.x]: errno=Connection refused

Ken Task發表於
Particularly helpful Moodlers的相片
Thanks, Mr. V but there's a difference ...
Am attempting originally to use git:// not https://
Same repo, different protocol.
From that server:

[root@server ~]# git clone git://git.moodle.org/moodle.git TARGETDIR
Cloning into 'TARGETDIR'...
fatal: unable to connect to git.moodle.org:
git.moodle.org[0: 52.208.x.x]: errno=Connection refused

52.208.x.x is an Amazon IP

From docs:
https://docs.moodle.org/403/en/Git_for_Administrators

You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use ...

They show git protocol.   Not the alt https://

not denied from home from Rackspace from Google Compute Engine ... only that server. :|

Thanks, in advance,
'SoS', Ken




In reply to Ken Task

RESOLVED - Re: git.moodle.org[0: 52.208.x.x]: errno=Connection refused

Ken Task發表於
Particularly helpful Moodlers的相片
Follow up ... resolved.
Issued:

git config --global http.postBuffer 524288000 
issued and was accepted

as a ChatOPT mentioned/recommended.

git clone https://github.com/moodle/moodle TARGET
This one works after setting buffer
During the acquire watched this line:

Receiving objects:  31% (452891/1436775), 304.28 MiB | 1.13 MiB/s
The 304.28 MiB went higher as it progressed to 718.70 MiB | 1.13 MiB/s.

Receiving objects: 100% (1436775/1436775), 718.70 MiB | 1.13 MiB/s, done.
Resolving deltas: 100% (1012960/1012960), done.
Updating files: 100% (28026/28026), done.

It's slower but ... finishes with no errors.

Now to change git config for what I have now to point to that repo.

Again, this is just one network/cloud server/service.
My other instances on other networks do not have the issue.

Now to spend my day before XMas working! 傷心
No rest for the weary IT folks on vacations.
In my former working life, no extra compensation for such either.
Probably will be considered with this 'customer' but compensation for such
not at the going rate - but that's ok!   Have learned that the more $ I make, the more IRS wants! :|

Peace!
and may all have a wonderful/restful 'holiday'! 微笑

'SoS', Ken


評比平均分數:Useful (1)
In reply to Ken Task

Re: RESOLVED - Re: git.moodle.org[0: 52.208.x.x]: errno=Connection refused

Ken Task發表於
Particularly helpful Moodlers的相片
Follow up to the Follow up ... and more digging ...
Hmmmm ...
https://docs.abuseipdb.com/#introduction

Using above in combination with server firewall, one could block malicious probes
and at the same time share IP's that should be reported (but who has the time).

https://www.abuseipdb.com/check/80.x.x.x

This IP address has been reported a total of 48 times from 27 distinct sources. 80.x.x.x was first reported on July 12th 2022, and the most recent report was 1 year ago.

I assisted the OP about a year go with a Moodle, but there were WP's present on server at that time.  The reports all looked to be XMLRPC.

Wonder if the git server on Amazon is using something like the above.   If so, who would I ask and if blocked how to clear it.

'SoS', Ken