Page 1 of 2

Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Tue Jan 23, 2018 10:56 am
by hillhealthcenter
Hi,

I tried both the web UI and manual upgrade both failed with the following output.

Code: Select all

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
No entry for terminal type "unknown";
using dumb terminal settings.
No entry for terminal type "unknown";
using dumb terminal settings.
Archive:  sourceguardian/ixed4.lin.x86-32.zip
  inflating: /usr/lib/php/modules/ixed.5.3.lin  
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]
No entry for terminal type "unknown";
using dumb terminal settings.
Checking required prereqs... 
Please wait... 

OLD VERSION: 5411
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=i386 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'"
 * base: mirror.vcu.edu
 * epel: mirrors.mit.edu
 * extras: mirror.cc.columbia.edu
 * updates: mirrors.lga7.us.voxel.net
http://dl.google.com/linux/chrome/rpm/stable/x86_x64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: google-chrome. Please verify its path and try again

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Tue Jan 23, 2018 1:12 pm
by lmiltchev
Do you have an Internet connection? Are you using a proxy? Can you successfully run "yum update"?

If you are using a proxy, please follow the instructions, outlined in our KB article below:
https://support.nagios.com/kb/article/n ... s-147.html

If this doesn't help, run the following commands, and show the output:

Code: Select all

uname -a
cat /etc/*release
cat /usr/local/nagiosxi/var/xiversion


Also, upload the entire upgrade.log file to the forum.

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 9:32 am
by hillhealthcenter
Yes, I have internet access. I'm not using a proxy. No, I can't run "yum update".

Here's the output from the commands:

Code: Select all

[root@nagiosxi ~]# uname -a
Linux nagiosxi.hhc.com 2.6.32-220.23.1.el6.i686 #1 SMP Mon Jun 18 16:56:21 BST 2012 i686 i686 i386 GNU/Linux
[root@nagiosxi ~]# cat /etc/*release
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
[root@nagiosxi ~]# cat /usr/local/nagiosxi/var/xiversion
###################################
# DO NOT DELETE THIS FILE!
# Nagios XI version information
###################################
full=5.4.11
major=5
minor=4.11
releasedate=2017-10-31
release=5411
[root@nagiosxi ~]#

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 9:52 am
by tgriep
It looks like there could be a stale yum cache entry causing yum to not run. Lets clear it out and see if the upgrade finishes.
Run this as root on the server.

Code: Select all

yum clean all
Then try the upgrade again.

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 10:08 am
by hillhealthcenter
It's still not working. :?

Code: Select all

[root@nagiosxi ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@nagiosxi ~]#

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 11:08 am
by tgriep
The new error suggests that you have to edit the /etc/yum.repos.d/epel.repo file on the server and adjust the path to EPEL's server list.
The following link has instructions for the changes that have to be done.
https://stackoverflow.com/questions/267 ... y-its-path

If you still get the error after the change, post the file so we can view it.

Code: Select all

/etc/yum.repos.d/epel.repo

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 2:06 pm
by hillhealthcenter
Still not working

Code: Select all

[root@nagiosxi nagiosxi]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: repo1.ash.innoscale.net
 * extras: repo1.ash.innoscale.net
 * updates: mirror.math.princeton.edu
http://download.fedoraproject.org/pub/epel/6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'download.fedoraproject.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
[root@nagiosxi nagiosxi]#

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Wed Jan 24, 2018 3:26 pm
by tgriep
Edit the epel.repo file and make sure the baseurl line and the mirrorlist like are set like the example below.

Code: Select all

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Thu Jan 25, 2018 9:10 am
by hillhealthcenter
It's still not working.

Here's the output:

Code: Select all

[root@nagiosxi ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
Could not get metalink http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=i386 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'"
 * base: mirror.trouble-free.net
 * epel: mirror.cogentco.com
 * extras: mirror.metrocast.net
 * updates: mirror.math.princeton.edu
http://dl.google.com/linux/chrome/rpm/stable/x86_x64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: google-chrome. Please verify its path and try again
Here's the epel.repo file:

Code: Select all

epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

Re: Upgrade from 5.4.22 to 5.4.12 Failed

Posted: Thu Jan 25, 2018 2:51 pm
by npolovenko
Error: Cannot retrieve repository metadata (repomd.xml) for repository: google-chrome.
@hillhealthcenter, You still have a google-chrome repository that fails to update. I recommend to just disable it for a while. On my system CentOS i'd go to the /etc/yum.repos.d/ folder, then open a google-chrome repository with a text editor and change enabled 1 to enabled 0. Then please run yum clean all and yum update one more time.