Upgrade from 5.1.2 to 5.2.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Upgrade from 5.1.2 to 5.2.5

Post by krw »

Just tried a manual upgrade to 5.2.5 and hit a permission problem upgrade NRDP and upgrade
fails:

[root@lonagiosxi nagiosxi]# ./upgrade
Archive: sourceguardian/ixed4.lin.x86-32.zip
inflating: /usr/lib/php/modules/ixed.5.1.lin
Sourceguardian extension found for PHP version 5.1
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

OLD VERSION: 512
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: http://www.muug.mb.ca
* base: mirror.its.sfu.ca
* epel: http://www.muug.mb.ca
* extras: http://www.muug.mb.ca
* rpmforge: mirror.cpsc.ucalgary.ca
* updates: centos.mirror.rafal.ca
Setting up Install Process
Package automake-1.9.6-3.el5.noarch already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package php-mbstring-5.1.6-45.el5_11.i386 already installed and latest version
Package 2:nmap-6.47-1.i386 already installed and latest version
Package subversion-1.6.11-12.el5_10.i386 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: http://www.muug.mb.ca
* base: mirror.its.sfu.ca
* epel: mirrors.cat.pdx.edu
* extras: http://www.muug.mb.ca
* updates: mirror.netflash.net
Setting up Install Process
Package 4:perl-5.8.8-43.el5_11.i386 already installed and latest version
Package perl-Class-Accessor-0.34-1.el5.rf.noarch already installed and latest version
Package perl-Params-Validate-0.95-1.el5.rf.i386 already installed and latest version
Package perl-Config-Tiny-2.12-1.el5.rf.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el5.noarch already installed and latest version
Package perl-Number-Format-1.73-1.el5.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: http://www.muug.mb.ca
* base: mirror.its.sfu.ca
* epel: mirrors.cat.pdx.edu
* extras: http://www.muug.mb.ca
* rpmforge: mirror.cpsc.ucalgary.ca
* updates: mirror.netflash.net
Setting up Install Process
Package php-pecl-ssh2-0.11.0-1.el5.rf.i386 already installed and latest version
Nothing to do
Updating NRDP..
./upgrade: line 714: /usr/local/nagiosxi/tools/install_dashlet.php: Permission denied

Here is install_dashlet.php:

[root@lonagiosxi tools]# ls -l install_dashlet.php
-rw-rw---- 1 nagios nagios 3196 Nov 10 14:46 install_dashlet.php

Are the permissions correct?

Thanks for any info on how to correct this.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Upgrade from 5.1.2 to 5.2.5

Post by hsmith »

What's the output of a 'yum repolist' command?
Former Nagios Employee.
me.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by lmiltchev »

My permissions are 750.

Run:

Code: Select all

chmod 750 /usr/local/nagiosxi/tools/install_dashlet.php
then try upgrading again. If the upgrade fails again, post the entire upgrade.log.
Be sure to check out our Knowledgebase for helpful articles and solutions!
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by krw »

hsmith wrote:What's the output of a 'yum repolist' command?
[root@lonagiosxi tools]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: http://www.muug.mb.ca
* base: http://www.muug.mb.ca
* epel: mirrors.cat.pdx.edu
* extras: http://www.muug.mb.ca
* rpmforge: mirror.cpsc.ucalgary.ca
* updates: centos.mirror.rafal.ca
repo id repo name status
addons CentOS-5 - Addons enabled: 0
base CentOS-5 - Base enabled: 2,791
dag Dag RPM Repository for Red Hat Enterprise Linux enabled: 11,610
epel Extra Packages for Enterprise Linux 5 - i386 enabled: 5,426
extras CentOS-5 - Extras enabled: 272
nagios-base Nagios enabled: 1
nagiosxi-deps Nagios XI Dependencies enabled: 4
rpmforge RHEL 5 - RPMforge.net - dag enabled: 11,610
updates CentOS-5 - Updates enabled: 527
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by krw »

lmiltchev wrote:My permissions are 750.

Run:

Code: Select all

chmod 750 /usr/local/nagiosxi/tools/install_dashlet.php
then try upgrading again. If the upgrade fails again, post the entire upgrade.log.
Thanks, that did it.

I was not sure what they should be, so I thought I'd ask before blindly changing them.

Thanks again.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by lmiltchev »

So, were you able to successfully complete the upgrade? Is it safe to lock this thread, and mark it as "resolved"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by krw »

lmiltchev wrote:So, were you able to successfully complete the upgrade? Is it safe to lock this thread, and mark it as "resolved"?
Yes I was. Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade from 5.1.2 to 5.2.5

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked