Page 1 of 2
2011R2.2 to 2.4 Upgrade Error
Posted: Thu Apr 26, 2012 1:22 pm
by jglass
Hello:
When running the upgrade I get this:
[root@opsmon nagiosxi]# ./upgrade
Checking PostgresQL status...
PostgresQL running - continuing...
Audit log database structure already created - skipping...
Audit log database schema created successfully.
Nagios XI Audit Log Initialized OK.
Saving old crontab to /tmp/nagios.crontab.orig...
./uninstall-crontab-nagios: line 8: /tmp/nagios.crontab.orig: cannot overwrite existing file
The nagios.crontab.orig file is empty. I couldn't find anything on Google. Anyone have any ideas?
Thank you,
JG
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Thu Apr 26, 2012 3:20 pm
by scottwilkerson
yep, new bug in the installer if tmp files still exist from the previous run...
Run
Code: Select all
cd /tmp
mv/tmp/nagios.crontab.orig /tmp/nagios.crontab.orig1
./upgrade
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 8:19 am
by jglass
Thanks - That helped a bit. It appears that I still have an issue with the upgrade. This is what I get now:
[root@opsmon nagiosxi]# ./upgrade
Checking PostgresQL status...
PostgresQL running - continuing...
Audit log database structure already created - skipping...
Audit log database schema created successfully.
Nagios XI Audit Log Initialized OK.
Saving old crontab to /tmp/nagios.crontab.orig...
no crontab for nagios
[root@opsmon nagiosxi]#
Unfortunately, I don't have any ideas.
Regards,
JG
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 9:33 am
by scottwilkerson
This looks like it completed successfully..
Log out of the XI interface and back in to complete the upgrade
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 9:42 am
by jglass
I show this after logging out then back in. I also followed the step where you hold shift and refresh the page, per
http://assets.nagios.com/downloads/nagi ... ctions.pdf.
Latest Available Version: 2011R2.4
Installed Version: 2011R2.2
Last Update Check: 2012-04-27 08:55:07
Thank you for your assistance.
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 9:57 am
by scottwilkerson
If you go to Admin -> Check For Updates
And click the Check For Updates Now does it refresh (this normally only checks daily)
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 10:31 am
by jglass
No luck - Still shows 2.2.
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 1:24 pm
by scottwilkerson
I have a feeling you are working off an old tarball that hasn't been deleted.
do this
Code: Select all
cd /tmp
rm -rf nagios* xi*
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
./upgrade
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 2:16 pm
by jglass
I was wondering the same as you, but whether I was somehow downloading the 2.2 tarball again. So I even downloaded the 2.4 zip myself and copied it over to the /tmp directory.
I did what you suggested. System is still at 2.2.
Thank you for the persistence in helping me solve this.
Re: 2011R2.2 to 2.4 Upgrade Error
Posted: Fri Apr 27, 2012 2:57 pm
by scottwilkerson
Please show me the output of the following
Now paste that output in your reply