2011R2.2 to 2.4 Upgrade Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

2011R2.2 to 2.4 Upgrade Error

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2011R2.2 to 2.4 Upgrade Error

Post by scottwilkerson »

This looks like it completed successfully..

Log out of the XI interface and back in to complete the upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: 2011R2.2 to 2.4 Upgrade Error

Post by jglass »

No luck - Still shows 2.2.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jglass
Posts: 37
Joined: Thu Jan 26, 2012 2:28 pm

Re: 2011R2.2 to 2.4 Upgrade Error

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2011R2.2 to 2.4 Upgrade Error

Post by scottwilkerson »

Please show me the output of the following

Code: Select all

cd /tmp/nagiosxi
ls 
Now paste that output in your reply
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked