Upgrading from 2014R2.6 to 5.4.1 not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

Upgrading from 2014R2.6 to 5.4.1 not working

Post by martinkuriax »

We are trying to upgrade our Nagios XI from version 2014R2.6 to Version:5.4.13

But we are getting the error below (Public key for nmap-6.47-1.x86_64.rpm is not installed):

Code: Select all

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/spool/perfdata: file changed as we read it
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
 
===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/autoupgrade_backup..tar.gz

---- Starting Nagios XI Upgrade ----
Cleaning up temp directory...
Downloading Latest Nagios XI Tarball...
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-64.zip
  inflating: /usr/lib64/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: httpd: Could not reliably determine the server's fully qualified domain name, using 10.96.180.15 for ServerName
[  OK  ]
No entry for terminal type "unknown";
using dumb terminal settings.
Checking required prereqs... 
Please wait... 

OLD VERSION: 415
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package rpmforge-release.x86_64 0:0.5.3-1.el6.rf will be erased
--> Finished Dependency Resolution
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
Trying other mirror.

Dependencies Resolved

================================================================================
 Package                Arch         Version              Repository       Size
================================================================================
Removing:
 rpmforge-release       x86_64       0.5.3-1.el6.rf       installed        13 k

Transaction Summary
================================================================================
Remove        1 Package(s)

Installed size: 13 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

  Erasing    : rpmforge-release-0.5.3-1.el6.rf.x86_64                       1/1 

  Verifying  : rpmforge-release-0.5.3-1.el6.rf.x86_64                       1/1 

Removed:
  rpmforge-release.x86_64 0:0.5.3-1.el6.rf                                      

Complete!
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror, security
Determining fastest mirrors
 * base: mirror.liquidtelecom.com
 * epel: mirror.wbs.co.za
 * extras: mirror.liquidtelecom.com
 * updates: mirror.liquidtelecom.com
Setting up Install Process
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:5.51-4.el6 will be updated
---> Package nmap.x86_64 2:6.47-1 will be an update
---> Package php-mbstring.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-mbstring.x86_64 0:5.3.3-49.el6 will be an update
--> Processing Dependency: php-common(x86-64) = 5.3.3-49.el6 for package: php-mbstring-5.3.3-49.el6.x86_64
---> Package subversion.x86_64 0:1.6.11-15.el6_7 will be installed
--> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.6.11-15.el6_7.x86_64
--> Running transaction check
---> Package neon.x86_64 0:0.29.3-3.el6_4 will be installed
--> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.29.3-3.el6_4.x86_64
---> Package php-common.x86_64 0:5.3.3-40.el6_6 will be updated
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-mysql-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-gd-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-xml-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-snmp-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-pgsql-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-ldap-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-pdo-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-cli-5.3.3-40.el6_6.x86_64
---> Package php-common.x86_64 0:5.3.3-49.el6 will be an update
--> Running transaction check
---> Package pakchois.x86_64 0:0.4-3.2.el6 will be installed
---> Package php.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-cli.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-cli.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-gd.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-gd.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-ldap.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-ldap.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-mysql.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-mysql.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-pdo.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-pdo.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-pgsql.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-pgsql.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-snmp.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-snmp.x86_64 0:5.3.3-49.el6 will be an update
---> Package php-xml.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-xml.x86_64 0:5.3.3-49.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch        Version                 Repository          Size
================================================================================
Installing:
 subversion        x86_64      1.6.11-15.el6_7         base               2.3 M
Updating:
 nmap              x86_64      2:6.47-1                nagiosxi-deps      5.1 M
 php-mbstring      x86_64      5.3.3-49.el6            base               460 k
Installing for dependencies:
 neon              x86_64      0.29.3-3.el6_4          base               119 k
 pakchois          x86_64      0.4-3.2.el6             base                21 k
Updating for dependencies:
 php               x86_64      5.3.3-49.el6            base               1.1 M
 php-cli           x86_64      5.3.3-49.el6            base               2.2 M
 php-common        x86_64      5.3.3-49.el6            base               530 k
 php-gd            x86_64      5.3.3-49.el6            base               111 k
 php-ldap          x86_64      5.3.3-49.el6            base                43 k
 php-mysql         x86_64      5.3.3-49.el6            base                86 k
 php-pdo           x86_64      5.3.3-49.el6            base                80 k
 php-pgsql         x86_64      5.3.3-49.el6            base                75 k
 php-snmp          x86_64      5.3.3-49.el6            base                36 k
 php-xml           x86_64      5.3.3-49.el6            base               108 k

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade      12 Package(s)

Total download size: 12 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           1.2 MB/s |  12 MB     00:09     
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID c62934a0: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS
Importing GPG key 0x1E924CB3:
 Userid : Nagios Enterprises, LLC (RPM Development) <[email protected]>
 Package: nagios-repo-6-2.el6.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS


Public key for nmap-6.47-1.x86_64.rpm is not installed
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrading from 2014R2.6 to 5.4.1 not working

Post by lmiltchev »

It seems like you tryied to upgrade from the web UI. Have you tried to upgrade from the CLI, too?

How did you install the "old" XI (2014R2.6) - from source, using one of our pre-built VMs, from rpm? Is this an offline install? Are you using a proxy? Are you using custom/local repos?

If RHEL, you can usually import a missing key by running:

Code: Select all

rpm --import /path/to/YOUR-RPM-GPG-KEY
What keys do you have in the "/etc/pki/rpm-gpg/" directory?

Code: Select all

ls -la /etc/pki/rpm-gpg/
You can also try to set the following in your repos:

Code: Select all

gpgcheck=0
Run:

Code: Select all

yum clean all
yum update
then try to upgrade Nagios XI once again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
martinkuriax
Posts: 37
Joined: Tue Jul 01, 2014 12:21 pm

Re: Upgrading from 2014R2.6 to 5.4.1 not working

Post by martinkuriax »

It worked! thanks, God bless

I have changed gpgcheck=0 in my repos

Then Ran:
#yum clean all
#yum update

and did the upgrade from the CLI
#wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh
#sh ./upgrade.sh

Nagios XI Upgrade Complete!
---------------------------
You can access the Nagios XI web interface by visiting:
http://10.xx.yy.xx/nagiosxi/
[root]#

Now I have the latest version of Nagios
Your Nagios XI installation is up to date.
Latest Available Version: 5.4.13
Installed Version: 5.4.13
Last Update Check: 2018-04-04 12:46:15
-----------------------------------------------------------------
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrading from 2014R2.6 to 5.4.1 not working

Post by lmiltchev »

I am glad I could help! :) Can we close this topic and mark it as resolved? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked