Thread: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Jacek Wielemborek
Date:
Hi,

I just found that two of my computers (with IPs 31.183.23.99 and
73.181.241.226) cannot download anything from this directory, for example:

d33tah@gitlab:~$ curl -vv
http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm
* Hostname was NOT found in DNS cache
*   Trying 174.143.35.196...
* Connected to yum.postgresql.org (174.143.35.196) port 80 (#0)
> GET /9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm HTTP/1.1
> User-Agent: curl/7.38.0
> Host: yum.postgresql.org
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Content-Type: text/html
< Content-Length: 345
< Date: Thu, 29 Sep 2016 12:28:51 GMT
* Server lighttpd/1.4.35 is not blacklisted
< Server: lighttpd/1.4.35
<
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>403 - Forbidden</title>
 </head>
 <body>
  <h1>403 - Forbidden</h1>
 </body>
</html>
* Connection #0 to host yum.postgresql.org left intact

Could you help me resolve the problem?

Cheers,
Jacek Wielemborek


Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Devrim Gündüz
Date:
Hi,

As you can see from https://yum.postgresql.org/repopackages.php , the repo RPMS
are located at download.postgresql.org . 

Please change your scripts and use the actual location. We disabled direct
downloads from yum.postgresql.org.

Thanks!

Regards, Devrim

On Thu, 2016-09-29 at 14:29 +0200, Jacek Wielemborek wrote:
> Hi,
>
> I just found that two of my computers (with IPs 31.183.23.99 and
> 73.181.241.226) cannot download anything from this directory, for example:
>
> d33tah@gitlab:~$ curl -vv
> http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch
> .rpm
> * Hostname was NOT found in DNS cache
> *   Trying 174.143.35.196...
> * Connected to yum.postgresql.org (174.143.35.196) port 80 (#0)
> >
> > GET /9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm HTTP/1.1
> > User-Agent: curl/7.38.0
> > Host: yum.postgresql.org
> > Accept: */*
> >
> < HTTP/1.1 403 Forbidden
> < Content-Type: text/html
> < Content-Length: 345
> < Date: Thu, 29 Sep 2016 12:28:51 GMT
> * Server lighttpd/1.4.35 is not blacklisted
> < Server: lighttpd/1.4.35
> <
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>  <head>
>   <title>403 - Forbidden</title>
>  </head>
>  <body>
>   <h1>403 - Forbidden</h1>
>  </body>
> </html>
> * Connection #0 to host yum.postgresql.org left intact
>
> Could you help me resolve the problem?
>
> Cheers,
> Jacek Wielemborek
>

--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Christoph Berg
Date:
Re: Devrim Gündüz 2016-09-29 <1475152591.24885.79.camel@gunduz.org>
>
> Hi,
>
> As you can see from https://yum.postgresql.org/repopackages.php , the repo RPMS
> are located at download.postgresql.org . 
>
> Please change your scripts and use the actual location. We disabled direct
> downloads from yum.postgresql.org.

Hi,

there's been 5 independent questions about this on #postgresql within
the past 30 minutes. Maybe the repopackages page could use a Big Fat
note so people will notice what changed and can update their download
scripts.

Christoph

Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Jacek Wielemborek
Date:
W dniu 29.09.2016 o 15:35, Christoph Berg pisze:
> Re: Devrim Gündüz 2016-09-29 <1475152591.24885.79.camel@gunduz.org>
>>
>> Hi,
>>
>> As you can see from https://yum.postgresql.org/repopackages.php , the repo RPMS
>> are located at download.postgresql.org .
>>
>> Please change your scripts and use the actual location. We disabled direct
>> downloads from yum.postgresql.org.
>
> Hi,
>
> there's been 5 independent questions about this on #postgresql within
> the past 30 minutes. Maybe the repopackages page could use a Big Fat
> note so people will notice what changed and can update their download
> scripts.
>
> Christoph

Thanks. Why the change anyway? The error message could probably mention
the solution as well.


Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Devrim Gündüz
Date:
Hi,

On Thu, 2016-09-29 at 15:35 +0200, Christoph Berg wrote:
> there's been 5 independent questions about this on #postgresql within
> the past 30 minutes. Maybe the repopackages page could use a Big Fat
> note so people will notice what changed and can update their download
> scripts.

Well, if people installed PostgreSQL for the first time on the machines since
Oct 2015, they won't suffer this problem. For the people who haven't updated
their repo files, it is the right time to do so.

I'm working with sysadmins team, to see if we can redirect something.

Regards,

--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Devrim Gündüz
Date:
Hi,

On Thu, 2016-09-29 at 15:47 +0200, Jacek Wielemborek wrote:
> Thanks. Why the change anyway? The error message could probably mention
> the solution as well.

We changed this last year, and it was the time to ask people to update their
repo RPMs :(

Regards,

--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

Re: 403 forbidden when trying to download anything from /9.4/redhat/rhel-6-x86_64

From
Devrim Gündüz
Date:
Hi,

On Thu, 2016-09-29 at 15:47 +0200, Jacek Wielemborek wrote:
> Thanks. Why the change anyway? The error message could probably mention
> the solution as well.

For the archives: sysadmins team just made a change to redirect all of those
requests to download.postgresql.org, so you should not get any more errors now.

Regards,
--
Devrim GÜNDÜZ
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment