Page 1 of 1

yum update: [Errno 14] PYCURL Error / [Errno 256] No Mirrors

Posted: 2019/10/10 16:44:07
by akak01000101
I have 5 servers built identically with CentOS 6.10 and one server errors out on a yum update when it hits the postgres repo.

# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Determining fastest mirrors
epel/metalink | 16 kB 00:00
* epel: mirror.prgmr.com
base | 3.7 kB 00:00
base/primary_db | 3.7 MB 00:00
epel | 5.3 kB 00:00
epel/primary_db | 5.1 MB 00:00
extras | 3.3 kB 00:00
extras/primary_db | 20 kB 00:00
pgdg81 | 2.8 kB 00:00
http://yum.postgresql.org/8.1/redhat/rh ... sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

http://yum.postgresql.org/8.1/redhat/rh ... sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: failure: repodata/primary.sqlite.bz2 from pgdg81: [Errno 256] No more mirrors to try.

Code: Select all

# cat pgdg-81-centos.repo
[pgdg81]
name=PostgreSQL 8.1 $releasever - $basearch
baseurl=http://yum.postgresql.org/8.1/redhat/rhel-5-i386
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

[pgdg81-source]
name=PostgreSQL 8.1 $releasever - $basearch - Source
failovermethod=priority
baseurl=http://yum.postgresql.org/srpms/8.1/redhat/rhel-5-i386
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
Things I've done:
  • Connectivity to yum.postgresql.org and internet : Confirmed
  • /etc/yum.repos.d/pgdg-81-centos.repo : The same between all servers
  • yum.config.manager : Matches between all other servers
  • /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG : Matches between all other servers
  • yum clean all; rm -r /var/cache/yum
Any Help is greatly appreciated
-Akak

Re: yum update: [Errno 14] PYCURL Error / [Errno 256] No Mirrors

Posted: 2019/10/11 00:08:29
by TrevorH
It's the wrong repo. That one appears to be for CentOS 5...

baseurl=http://yum.postgresql.org/8.1/redhat/rhel-5-i386

Re: yum update: [Errno 14] PYCURL Error / [Errno 256] No Mirrors

Posted: 2019/10/11 00:13:02
by akak01000101
Our application requires the version off the RHEL5 repo. As mentioned, 4 other servers have no issues with the update.

Re: yum update: [Errno 14] PYCURL Error / [Errno 256] No Mirrors

Posted: 2019/10/11 01:50:54
by akak01000101
Looking at: https://yum.postgresql.org 8.1 is no longer maintained and necessary files have been removed from the repo.

I believe the other 4 servers have the repo cached so I'm not seeing the issue (yet).