Page 1 of 1

Errors with offline upgrade

Posted: Tue Oct 22, 2024 9:44 am
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.

Re: Errors with offline upgrade

Posted: Tue Oct 22, 2024 1:17 pm
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

Re: Errors with offline upgrade

Posted: Tue Oct 22, 2024 2:34 pm
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?

Re: Errors with offline upgrade

Posted: Wed Oct 23, 2024 9:55 am
by jsimon
Hi Greg,

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