Errors with offline upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
gregbeyer
Posts: 181
Joined: Fri Sep 11, 2020 2:13 pm

Errors with offline upgrade

Post by gregbeyer »

Hello, I do offline upgrades. Haven't had a problem before upgrade to v1.3. But getting three errors when upgrading. I see no subsequent errors, and it says complete, but why are these errors thrown?

[root@nagios /tmp/rpms/nagiosxi]#./upgrade
Checking install type...
Install type: source
source
./upgrade: line 17: [: too many arguments
./upgrade: line 29: [: too many arguments
./upgrade: line 50: [: too many arguments

Installation check passed.
Updating Subscription Management repositories.
OIT Endpoint EL7
<---snip--->
Complete!

Additionally, I am unable to find in documentation where offline upgrades are logged. UI upgrades are logged in Admin / Check for Updates. Offline upgrades are not reflected therein. Might it be possible to a) show either type of upgrades there, and b) show the log of either upgrade there? Thanks.
User avatar
jmichaelson
Posts: 383
Joined: Wed Aug 23, 2023 1:02 pm

Re: Errors with offline upgrade

Post by jmichaelson »

Looking at the offline upgrade script, I believe there are some quotes missing in it. Can you add double quotes around $installtype on each of those lines in the script and try again? I'll write an issue for it here
Please let us know if you have any other questions or concerns.

-Jason
gregbeyer
Posts: 181
Joined: Fri Sep 11, 2020 2:13 pm

Re: Errors with offline upgrade

Post by gregbeyer »

OK, quotes resolved that issue. Thx.

Any info on where offline updates are logged? Thoughts on including offline upgrade record in the UI, as well as logging them there, as are UI upgrades?
jsimon
Posts: 343
Joined: Wed Aug 23, 2023 11:27 am

Re: Errors with offline upgrade

Post by jsimon »

Hi Greg,

I believe Offline and RPM installs log to "xi-install.log" within the /tmp directory.
Post Reply