Nagios 5.4.13 upgrade failed.
Nagios 5.4.13 upgrade failed.
Upgrade failed and after I've restored the autobackup, update screen now stuck with "Update in progress. Please wait. Update may take a few minutes.".
Re: Nagios 5.4.13 upgrade failed.
upgrade failed and always stop with below errors:
Updating NRDP..
ALTER TABLE
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:11: ERROR: relation "xi_cmp_trapdata_trapdata_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:17: ERROR: relation "xi_cmp_trapdata_trapdata_log_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:34: ERROR: relation "xi_cmp_trapdata" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:54: ERROR: relation "xi_cmp_trapdata_log" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:61: ERROR: relation "xi_auth_tokens_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:75: ERROR: relation "xi_auth_tokens" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:82: ERROR: relation "xi_sessions_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:96: ERROR: relation "xi_sessions" already exists
Updating NRDP..
ALTER TABLE
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:11: ERROR: relation "xi_cmp_trapdata_trapdata_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:17: ERROR: relation "xi_cmp_trapdata_trapdata_log_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:34: ERROR: relation "xi_cmp_trapdata" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:54: ERROR: relation "xi_cmp_trapdata_log" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:61: ERROR: relation "xi_auth_tokens_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:75: ERROR: relation "xi_auth_tokens" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:82: ERROR: relation "xi_sessions_id_seq" already exists
psql:nagiosxi/nagiosxi-db/mods/pgsql/schema_03.sql:96: ERROR: relation "xi_sessions" already exists
Re: Nagios 5.4.13 upgrade failed.
Open the upgrade script in a text editor and modify it as it is described in the post below:
https://support.nagios.com/forum/viewto ... 08#p255370
Next, run the upgrade script from the command line:
Let us know if the upgrade finished successfully.
https://support.nagios.com/forum/viewto ... 08#p255370
Next, run the upgrade script from the command line:
Code: Select all
cd /tmp/nagiosxi
./upgradeBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios 5.4.13 upgrade failed.
now there are new errors found!
………….
……..
….
NRPE installed OK
Updating NRDP..
Installing SSH Terminal...
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: centos.ipserverone.com
* epel: ftp.riken.jp
* extras: centos.ipserverone.com
* updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package shellinabox.x86_64 0:2.14-27.git88822c1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
shellinabox x86_64 2.14-27.git88822c1.el6 epel 130 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 130 k
Installed size: 402 k
Downloading Packages:
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
shellinabox x86_64 2.14-27.git88822c1.el6 epel 130 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 130 k
Installed size: 402 k
Downloading Packages:
http://ftp.riken.jp/Linux/fedora/epel/6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.vinahost.vn/epel/6/x86_6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 503 Service Unavailable"
Trying other mirror.
http://ftp.cuhk.edu.hk/pub/linux/fedora ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.hustunique.com/epel/6/x8 ... x86_64.rpm: [Errno 12] Timeout on http://mirrors.hustunique.com/epel/6/x8 ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirror-fpt-telecom.fpt.net/fedor ... x86_64.rpm: [Errno 12] Timeout on http://mirror-fpt-telecom.fpt.net/fedor ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirrors.yun-idc.com/epel/6/x86_6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.ispros.com.bd/fedora-epe ... x86_64.rpm: [Errno 12] Timeout on http://mirrors.ispros.com.bd/fedora-epe ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirrors.123host.vn/epel/6/x86_64 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.kddilabs.jp/Linux/packages/f ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.smartmedia.net.id/epel/6/ ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.yzu.edu.tw/Linux/Fedora-EPEL ... x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=epel clean metadata
Trying other mirror.
http://mirror.premi.st/epel/6/x86_64/sh ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://kartolo.sby.datautama.net.id/EPE ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.jaist.ac.jp/pub/Linux/Fedora ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.nus.edu.sg/fedora/epel/6/ ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror01.idc.hinet.net/EPEL/6/x8 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Error Downloading Packages:
shellinabox-2.14-27.git88822c1.el6.x86_64: failure: shellinabox-2.14-27.git88822c1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
………….
……..
….
NRPE installed OK
Updating NRDP..
Installing SSH Terminal...
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: centos.ipserverone.com
* epel: ftp.riken.jp
* extras: centos.ipserverone.com
* updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package shellinabox.x86_64 0:2.14-27.git88822c1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
shellinabox x86_64 2.14-27.git88822c1.el6 epel 130 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 130 k
Installed size: 402 k
Downloading Packages:
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
shellinabox x86_64 2.14-27.git88822c1.el6 epel 130 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 130 k
Installed size: 402 k
Downloading Packages:
http://ftp.riken.jp/Linux/fedora/epel/6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.vinahost.vn/epel/6/x86_6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 503 Service Unavailable"
Trying other mirror.
http://ftp.cuhk.edu.hk/pub/linux/fedora ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.hustunique.com/epel/6/x8 ... x86_64.rpm: [Errno 12] Timeout on http://mirrors.hustunique.com/epel/6/x8 ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirror-fpt-telecom.fpt.net/fedor ... x86_64.rpm: [Errno 12] Timeout on http://mirror-fpt-telecom.fpt.net/fedor ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirrors.yun-idc.com/epel/6/x86_6 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.ispros.com.bd/fedora-epe ... x86_64.rpm: [Errno 12] Timeout on http://mirrors.ispros.com.bd/fedora-epe ... x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirrors.123host.vn/epel/6/x86_64 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.kddilabs.jp/Linux/packages/f ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.smartmedia.net.id/epel/6/ ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.yzu.edu.tw/Linux/Fedora-EPEL ... x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=epel clean metadata
Trying other mirror.
http://mirror.premi.st/epel/6/x86_64/sh ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://kartolo.sby.datautama.net.id/EPE ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://ftp.jaist.ac.jp/pub/Linux/Fedora ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.nus.edu.sg/fedora/epel/6/ ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror01.idc.hinet.net/EPEL/6/x8 ... x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Error Downloading Packages:
shellinabox-2.14-27.git88822c1.el6.x86_64: failure: shellinabox-2.14-27.git88822c1.el6.x86_64.rpm from epel: [Errno 256] No more mirrors to try.
Re: Nagios 5.4.13 upgrade failed.
It looks like the yum cache needs to be cleaned out of old data. Run this as root to do that.
Then try the XI upgrade again.
Code: Select all
yum clean allBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios 5.4.13 upgrade failed.
once cleared yum cache there is another new error.
"yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker"
however able to fix it by updating the yum repo URL.
sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
Finally i'm able to get it updated to version 5.5.1
"yum error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” updating ContextBroker"
however able to fix it by updating the yum repo URL.
sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
Finally i'm able to get it updated to version 5.5.1
Re: Nagios 5.4.13 upgrade failed.
Thank everyone for helping out, this isn't a smooth ride after all. Nagiosxi team need to review the whole version upgrade processes again. 
Re: Nagios 5.4.13 upgrade failed.
Yum cache and epel issues are more on the side of whoever is admining the server. It seems to me that it is not a problem with the Nagios portion of the upgrade per se.
--
Griffin Wakem
Griffin Wakem
Re: Nagios 5.4.13 upgrade failed.
Thanks @gwakem! I totally agree. Yum and epel issues are not nagios problems per se. 
@manitowoc Is it safe to lock this topic?
@manitowoc Is it safe to lock this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!