RESOLVED: Issue upgrading due to old CentOS version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
marcmooney-atos
Posts: 8
Joined: Fri May 24, 2019 2:42 am

RESOLVED: Issue upgrading due to old CentOS version

Post by marcmooney-atos »

Hi,
I tried to upgrade from 5.59 to 5.9.0 on a CentOS 7 and got the following errors:
http://ftp.heanet.ie/pub/centos/7.6.181 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.bytemark.co.uk/centos/7.6 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

I know it's an old version of CentOS, and one of the fixes that appeared was "Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. "
I'm having difficulty finding a working upstream, does any know of any working upstreams for 7.6.1810?
Or if there's another option to resolve this, I'd appreciate any advice.
Thanks.
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: Issue upgrading due to old CentOS version

Post by sgardil »

marcmooney-atos wrote: Thu Nov 14, 2024 7:36 am Hi,
I tried to upgrade from 5.59 to 5.9.0 on a CentOS 7 and got the following errors:
http://ftp.heanet.ie/pub/centos/7.6.181 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.bytemark.co.uk/centos/7.6 ... x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

I know it's an old version of CentOS, and one of the fixes that appeared was "Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. "
I'm having difficulty finding a working upstream, does any know of any working upstreams for 7.6.1810?
Or if there's another option to resolve this, I'd appreciate any advice.
Thanks.
Hey @marcmooney-atos

That is quite old. Have you tried changing your base mirror from a specific version of 7 to just 7? If not maybe give that a shot and see if the newer cent 7 repos than 6 work. Outside of that maybe a vault mirror could work. Give those a shot and see if it works.
gwesterman
Posts: 258
Joined: Wed Aug 23, 2023 11:29 am

Re: Issue upgrading due to old CentOS version

Post by gwesterman »

You could also try migrating to RHEL 7 then upgrading because RHEL 7 mirrors are more reliably available.
kg2857
Posts: 369
Joined: Wed Apr 12, 2023 5:48 pm

Re: Issue upgrading due to old CentOS version

Post by kg2857 »

Try searching the internet for centos 7 eol to see some extended support options.
marcmooney-atos
Posts: 8
Joined: Fri May 24, 2019 2:42 am

Re: Issue upgrading due to old CentOS version

Post by marcmooney-atos »

Thanks all,
I'll try those options.
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: Issue upgrading due to old CentOS version

Post by sgardil »

marcmooney-atos wrote: Fri Nov 15, 2024 10:26 am Thanks all,
I'll try those options.
Awesome, let us know if any of the suggested solutions worked out for you.
marcmooney-atos
Posts: 8
Joined: Fri May 24, 2019 2:42 am

Re: Issue upgrading due to old CentOS version

Post by marcmooney-atos »

Hi,
This solution worked for me:
1. Go to /etc/yum.repos.d/

2. Make copy of original file:
cp CentOS-Base.repo CentOS-Base.repo.old

3. Open and edit file with any text editor:

4. After editing it should looks like:

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://vault.centos.org/7.6.1810/os/$basearch

[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://vault.centos.org/7.6.1810/updates/$basearch/

[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://vault.centos.org/7.6.1810/extras/$basearch/

[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
baseurl=http://vault.centos.org/7.6.1810/centosplus/$basearch/

yum clean all


Upgraded to 5.9.0 with no issues using the centos vault in the baseurl configuration.

Thanks for all the help with this.
sgardil
Posts: 327
Joined: Wed Aug 09, 2023 9:58 am

Re: Issue upgrading due to old CentOS version

Post by sgardil »

Glad that we were able to get a solution for you and that the vault worked for your mirrors. I will go ahead and mark this thread a finished. Let us know if you have anymore questions.
Post Reply