Page 1 of 1

Unable to upgrade from 5.8.1 to 5.8.6

Posted: Thu Oct 07, 2021 12:56 pm
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

Re: Unable to upgrade from 5.8.1 to 5.8.6

Posted: Thu Oct 07, 2021 4:42 pm
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

Re: Unable to upgrade from 5.8.1 to 5.8.6

Posted: Thu Oct 07, 2021 9:07 pm
by DonForigua
Hi check the file permisions of upgrade script and set execution perm

Re: Unable to upgrade from 5.8.1 to 5.8.6

Posted: Fri Oct 08, 2021 1:57 pm
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

Re: Unable to upgrade from 5.8.1 to 5.8.6

Posted: Tue Oct 12, 2021 12:23 pm
by matson-itops
thanks for the advice. yes, it was noexec on /tmp on RHEL8 :)

Re: Unable to upgrade from 5.8.1 to 5.8.6

Posted: Wed Oct 13, 2021 1:49 pm
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