Unable to upgrade from 5.8.1 to 5.8.6

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
matson-itops
Posts: 133
Joined: Wed Nov 18, 2015 11:19 pm

Unable to upgrade from 5.8.1 to 5.8.6

Post by matson-itops »

I am following this doc :
https://assets.nagios.com/downloads/nag ... ctions.pdf
but am getting permission denied errors running upgrade script.

Has anyone seen this?



Details :

[root@ tmp]# cd /tmp
[root@ tmp]# wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
--2021-10-07 10:53:52-- http://assets.nagios.com/downloads/nagi ... est.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 45.79.49.120, 2600:3c00::f03c:92ff:fef7:45ce
Connecting to assets.nagios.com (assets.nagios.com)|45.79.49.120|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nag ... est.tar.gz [following]
--2021-10-07 10:53:53-- https://assets.nagios.com/downloads/nag ... est.tar.gz
Connecting to assets.nagios.com (assets.nagios.com)|45.79.49.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68657085 (65M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz’

xi-latest.tar.gz 100%[========================================================================================================================================>] 65.48M 21.5MB/s in 3.0s

2021-10-07 10:53:56 (21.5 MB/s) - ‘xi-latest.tar.gz’ saved [68657085/68657085]

[root@ tmp]# tar xzf xi-latest.tar.gz
[root@ tmp]# cd nagiosxi
[root@ nagiosxi]# ./upgrade
-bash: ./upgrade: Permission denied
User avatar
kfanselow
Posts: 254
Joined: Tue Aug 31, 2021 3:25 pm

Re: Unable to upgrade from 5.8.1 to 5.8.6

Post by kfanselow »

Hi matson-itops,

Could you run the following command and post the results back to us:

Code: Select all

find /tmp/nagiosxi/  -ls 
Thanks in Advance,
Keith
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Unable to upgrade from 5.8.1 to 5.8.6

Post by DonForigua »

Hi check the file permisions of upgrade script and set execution perm
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to upgrade from 5.8.1 to 5.8.6

Post by ssax »

Thanks @DonForigua, that's a good tip:

Code: Select all

ls -l /tmp/nagiosxi/upgrade.sh
Do you have noexec set on /tmp?

Code: Select all

mount | grep noexec
You should be able to do this instead of using /tmp if that's the case:

Code: Select all

cd /root
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
matson-itops
Posts: 133
Joined: Wed Nov 18, 2015 11:19 pm

Re: Unable to upgrade from 5.8.1 to 5.8.6

Post by matson-itops »

thanks for the advice. yes, it was noexec on /tmp on RHEL8 :)
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to upgrade from 5.8.1 to 5.8.6

Post by benjaminsmith »

Hi,
thanks for the advice. yes, it was noexec on /tmp on RHEL8 :)
Sounds like you got it resolved. Did you need anything else or shall close this thread?

--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked