Page 1 of 1

upgrade from 5.6.1 to 5.6.10 Failure

Posted: Sat Feb 08, 2020 2:29 pm
by biswajit.banerjee
Trying to Upgrade via Cli

Getting following error
"ERROR: Could not determine currently installed version of Nagios XI!"
My database is offloaded to remote server .

Also my Backup is failing saying database failure .

I found my "/usr/local/nagiosxi/etc/components/ccm_config.inc.php " is not updated and nagiossql DB is still pointing to Localhost .

Are see these problem linked

Please suggest the way out .

TIA

Re: upgrade from 5.6.1 to 5.6.10 Failure

Posted: Mon Feb 10, 2020 10:18 am
by jdunitz
Hello Biswajit!

The most likely reasons for the problem are that you're not doing the upgrade as root, and/or your /usr/local/nagiosxi/var/xiversion file isn't readable (or is missing).

Can you verify that that file exists and has 644 permissions (-rw-r--r--)?
Also, that file should contain a few lines with the full, major, and minor versions, and release number and date information.

Finally, your upgrade log (/usr/local/nagiosxi/tmp/upgrade.log or /tmp/nagiosxi/upgrade.log) will have some additional clues as to what may have gone wrong. Have a look at that, and post it if you need help interpreting the errors.

Re: upgrade from 5.6.1 to 5.6.10 Failure

Posted: Wed Feb 12, 2020 12:01 pm
by biswajit.banerjee
Thanks
/usr/local/nagiosxi/var/xiversion file was missing so created with right permissions and issue was sorted out

Thanks

Re: upgrade from 5.6.1 to 5.6.10 Failure

Posted: Wed Feb 12, 2020 12:22 pm
by jdunitz
Glad you got this sorted so easily!

--Jeffrey