public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Anonymous read-only Git access
       [not found] <5e609336.1c69fb81.34afe.adbbSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2020-03-05  6:03 ` Dan Kegel
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Kegel @ 2020-03-05  6:03 UTC (permalink / raw)
  To: yilu; +Cc: gcc-help

Try https://github.com/gcc-mirror/gcc ?

On Wed, Mar 4, 2020 at 9:50 PM yilu@bupt.edu.cn <yilu@bupt.edu.cn> wrote:

> Hi,everyone
> I want to get the GCC-10 source and I followed the instructions in
> https://gcc.gnu.org/git.html, however, the command
> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> cannot work.
> And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without
> firewall(I'm in China). I got a 403 Forbidden
>  "You don't have permission to access /git/gcc.git/ on this server."
>  "Apache Server at gcc.gnu.org Port 443".
> What can I do in this situation?
> Thanks.
>
>
> Beenle Yi
> yilu@bupt.edu.cn
>

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

* Re: Anonymous read-only Git access
  2020-03-05  9:14 ` Jonathan Wakely
@ 2020-03-05  9:27   ` Jonathan Wakely
  0 siblings, 0 replies; 9+ messages in thread
From: Jonathan Wakely @ 2020-03-05  9:27 UTC (permalink / raw)
  To: yilu; +Cc: gcc-help

On Thu, 5 Mar 2020 at 09:14, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
> On Thu, 5 Mar 2020 at 05:50, yilu@bupt.edu.cn <yilu@bupt.edu.cn> wrote:
> >
> > Hi,everyone
> > I want to get the GCC-10 source and I followed the instructions in https://gcc.gnu.org/git.html, however, the command
> > git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> > cannot work.
>
> It works for me, both with authentication and anonymously, and from
> machines in the UK and Canada.
>
> What error do you get?

Ah, I didn't see the other messages in the thread. Glad you've solved it.

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

* Re: Anonymous read-only Git access
       [not found] <5e609329.1c69fb81.2d3a0.47d1SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2020-03-05  9:14 ` Jonathan Wakely
  2020-03-05  9:27   ` Jonathan Wakely
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Wakely @ 2020-03-05  9:14 UTC (permalink / raw)
  To: yilu; +Cc: gcc-help

On Thu, 5 Mar 2020 at 05:50, yilu@bupt.edu.cn <yilu@bupt.edu.cn> wrote:
>
> Hi,everyone
> I want to get the GCC-10 source and I followed the instructions in https://gcc.gnu.org/git.html, however, the command
> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> cannot work.

It works for me, both with authentication and anonymously, and from
machines in the UK and Canada.

What error do you get?


> And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without firewall(I'm in China). I got a 403 Forbidden
>  "You don't have permission to access /git/gcc.git/ on this server."
>  "Apache Server at gcc.gnu.org Port 443".

That's expected if you try to connect to that URL using a browser. I'm
not sure whether cloning over HTTPS is expected to work.

You can browse the sources via https://gcc.gnu.org/git/?p=gcc.git instead.

> What can I do in this situation?
> Thanks.
>
>
> Beenle Yi
> yilu@bupt.edu.cn

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

* Re: Anonymous read-only Git access
  2020-03-05  6:33 ` Xi Ruoyao
  2020-03-05  6:48   ` Kewen.Lin
@ 2020-03-05  7:31   ` Liu Hao
  1 sibling, 0 replies; 9+ messages in thread
From: Liu Hao @ 2020-03-05  7:31 UTC (permalink / raw)
  To: gcc-help, Xi Ruoyao, yilu


[-- Attachment #1.1: Type: text/plain, Size: 2700 bytes --]

在 2020/3/5 14:33, Xi Ruoyao 写道:
> On 2020-03-05 13:50 +0800, yilu@bupt.edu.cn wrote:
>> Hi,everyone
>> I want to get the GCC-10 source and I followed the instructions in 
>> https://gcc.gnu.org/git.html, however, the command
>> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
>> cannot work. 
>> And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without
>> firewall(I'm in China). I got a 403 Forbidden
>>  "You don't have permission to access /git/gcc.git/ on this server."
>>  "Apache Server at gcc.gnu.org Port 443".  
>> What can I do in this situation? 
> 
> I guess some guy in BUPT "attacked" gcc.gnu.org somehow (maybe unintentionally,
> just playing or testing some software) and caused the entire IP segment to be
> banned.
> 
> You should contact the administrator of gcc.gnu.org.  In the meantime try
> 
>     git clone https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git
> 
> It would be very fast since this mirror is in your city :).
> 
> (OT: Several BUPT students commenced some unsported behavior in our programming
> contests.  So our online judge is also banning BUPT IP segments.)
> 

The fact that Git may utilize HTTPS protocol doesn't imply that you can
list its contents with a web browser.


If you have issues cloning GCC's official GCC repo, here is some mitigation:

  # Create an empty repo with a working tree.
  mkdir gcc
  cd gcc
  git init

  # Add mirrors by hand.
  git remote add origin https://gcc.gnu.org/git/gcc.git
  git remote add github https://github.com/gcc-mirror/gcc.git
  git remote add tuna https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git

  # Fetch from reachable mirrors first.
  # TUNA is unlikely to be unreachable from you, however it is
  # slightly left behind other mirrors.
  # This will fetch the bulk of the repo.
  git fetch tuna

  # Fetch more data from another mirror.
  # Objects that have been fetched from TUNA will not be fetched again.
  # There's supposed to be much fewer bytes to download.
  # GitHub is slower, but is less likely to be blocked by Chinese ISPs.
  git fetch github

  # Check out the master branch and initializes the working tree.
  # This is usually a bit behind `origin/master`.
  git checkout -b master github/master


  # Fetch data that have not been mirrored yet.
  # You may postpone this until you have access.
  git fetch origin

  # Set up its tracking branch.
  # You only need to set it once.
  # Note: This requires a successful fetch from `origin`.
  #       If that is not possible for you, please skip this step.
  git branch master --set-upstream-to=origin/master


-- 
Best regards,
LH_Mouse


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: Anonymous read-only Git access
  2020-03-05  6:48   ` Kewen.Lin
@ 2020-03-05  7:03     ` Xi Ruoyao
  0 siblings, 0 replies; 9+ messages in thread
From: Xi Ruoyao @ 2020-03-05  7:03 UTC (permalink / raw)
  To: Kewen.Lin; +Cc: gcc-help, yilu

On 2020-03-05 14:48 +0800, Kewen.Lin wrote:
> on 2020/3/5 下午2:33, Xi Ruoyao wrote:
> > On 2020-03-05 13:50 +0800, yilu@bupt.edu.cn wrote:
> > > Hi,everyone
> > > I want to get the GCC-10 source and I followed the instructions in 
> > > https://gcc.gnu.org/git.html, however, the command
> > > git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> > > cannot work. 
> > > And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without
> > > firewall(I'm in China). I got a 403 Forbidden
> > >  "You don't have permission to access /git/gcc.git/ on this server."
> > >  "Apache Server at gcc.gnu.org Port 443".  
> > > What can I do in this situation? 
> > 
> > I guess some guy in BUPT "attacked" gcc.gnu.org somehow (maybe
> > unintentionally,
> > just playing or testing some software) and caused the entire IP segment to
> > be
> > banned.
> > 
> 
> Good guess.  Maybe try to browse https://gcc.gnu.org/git/.
> I was guessing he accessed the link with browser instead of git clone,
> since I got the same error too if try with browser.

Oh I misunderstanded the OP.  I thought that message was printed by "git clone"
command...

With a browser it would always show 403.  Technically "406 Not Acceptable" is
better for this case according to RFC 7231, I think.
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

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

* Re: Anonymous read-only Git access
  2020-03-05  6:33 ` Xi Ruoyao
@ 2020-03-05  6:48   ` Kewen.Lin
  2020-03-05  7:03     ` Xi Ruoyao
  2020-03-05  7:31   ` Liu Hao
  1 sibling, 1 reply; 9+ messages in thread
From: Kewen.Lin @ 2020-03-05  6:48 UTC (permalink / raw)
  To: Xi Ruoyao; +Cc: gcc-help, yilu

on 2020/3/5 下午2:33, Xi Ruoyao wrote:
> On 2020-03-05 13:50 +0800, yilu@bupt.edu.cn wrote:
>> Hi,everyone
>> I want to get the GCC-10 source and I followed the instructions in 
>> https://gcc.gnu.org/git.html, however, the command
>> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
>> cannot work. 
>> And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without
>> firewall(I'm in China). I got a 403 Forbidden
>>  "You don't have permission to access /git/gcc.git/ on this server."
>>  "Apache Server at gcc.gnu.org Port 443".  
>> What can I do in this situation? 
> 
> I guess some guy in BUPT "attacked" gcc.gnu.org somehow (maybe unintentionally,
> just playing or testing some software) and caused the entire IP segment to be
> banned.
> 

Good guess.  Maybe try to browse https://gcc.gnu.org/git/.
I was guessing he accessed the link with browser instead of git clone,
since I got the same error too if try with browser.

BR,
Kewen

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

* Re: Anonymous read-only Git access
  2020-03-05  5:50 yilu
@ 2020-03-05  6:33 ` Kewen.Lin
  2020-03-05  6:33 ` Xi Ruoyao
  1 sibling, 0 replies; 9+ messages in thread
From: Kewen.Lin @ 2020-03-05  6:33 UTC (permalink / raw)
  To: yilu; +Cc: gcc-help

Hi Beenle,

on 2020/3/5 \xCF\xC2\xCE\xE71:50, yilu@bupt.edu.cn wrote:
> Hi,everyone
> I want to get the GCC-10 source and I followed the instructions in https://gcc.gnu.org/git.html, however, the command
> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> cannot work. 

Do you mean the symptom is hanging?

I'm also in China and did a try just now, then found the speed from 
git://gcc.gnu.org/git/gcc.git is 5.00 ~ 10.00 KiB/s, very slow...
even with single-branch and depth 1, it took me a while to get response.

You probably can try mirror https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git


BR,
Kewen

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

* Re: Anonymous read-only Git access
  2020-03-05  5:50 yilu
  2020-03-05  6:33 ` Kewen.Lin
@ 2020-03-05  6:33 ` Xi Ruoyao
  2020-03-05  6:48   ` Kewen.Lin
  2020-03-05  7:31   ` Liu Hao
  1 sibling, 2 replies; 9+ messages in thread
From: Xi Ruoyao @ 2020-03-05  6:33 UTC (permalink / raw)
  To: yilu, gcc-help

On 2020-03-05 13:50 +0800, yilu@bupt.edu.cn wrote:
> Hi,everyone
> I want to get the GCC-10 source and I followed the instructions in 
> https://gcc.gnu.org/git.html, however, the command
> git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
> cannot work. 
> And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without
> firewall(I'm in China). I got a 403 Forbidden
>  "You don't have permission to access /git/gcc.git/ on this server."
>  "Apache Server at gcc.gnu.org Port 443".  
> What can I do in this situation? 

I guess some guy in BUPT "attacked" gcc.gnu.org somehow (maybe unintentionally,
just playing or testing some software) and caused the entire IP segment to be
banned.

You should contact the administrator of gcc.gnu.org.  In the meantime try

    git clone https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git

It would be very fast since this mirror is in your city :).

(OT: Several BUPT students commenced some unsported behavior in our programming
contests.  So our online judge is also banning BUPT IP segments.)
-- 
Xi Ruoyao <xry111@mengyan1223.wang>
School of Aerospace Science and Technology, Xidian University

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

* Anonymous read-only Git access
@ 2020-03-05  5:50 yilu
  2020-03-05  6:33 ` Kewen.Lin
  2020-03-05  6:33 ` Xi Ruoyao
  0 siblings, 2 replies; 9+ messages in thread
From: yilu @ 2020-03-05  5:50 UTC (permalink / raw)
  To: gcc-help

Hi,everyone
I want to get the GCC-10 source and I followed the instructions in https://gcc.gnu.org/git.html, however, the command
git clone git://gcc.gnu.org/git/gcc.git SomeLocalDir
cannot work. 
And I found I cannot connect https://gcc.gnu.org/git/gcc.git even without firewall(I'm in China). I got a 403 Forbidden
 "You don't have permission to access /git/gcc.git/ on this server."
 "Apache Server at gcc.gnu.org Port 443".  
What can I do in this situation? 
Thanks.


Beenle Yi
yilu@bupt.edu.cn

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

end of thread, other threads:[~2020-03-05  9:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5e609336.1c69fb81.34afe.adbbSMTPIN_ADDED_BROKEN@mx.google.com>
2020-03-05  6:03 ` Anonymous read-only Git access Dan Kegel
     [not found] <5e609329.1c69fb81.2d3a0.47d1SMTPIN_ADDED_BROKEN@mx.google.com>
2020-03-05  9:14 ` Jonathan Wakely
2020-03-05  9:27   ` Jonathan Wakely
2020-03-05  5:50 yilu
2020-03-05  6:33 ` Kewen.Lin
2020-03-05  6:33 ` Xi Ruoyao
2020-03-05  6:48   ` Kewen.Lin
2020-03-05  7:03     ` Xi Ruoyao
2020-03-05  7:31   ` Liu Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).