Upgrade to 5.5 failed at "Updating NRDP"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Upgrade to 5.5 failed at "Updating NRDP"

Post by sathevaner »

Greetings,

I'm trying to do a direct upgrade to 5.5 from within the web UI, and cannot get past the stage of updating NRDP. The message I receive is, "The update did not complete successfully. Please try updating manually."

I have attached the results of the Nagios 5.5 upgrade process. Are there any other log files I should include in this message board thread?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by scottwilkerson »

This is a known bug, that can be resolved with the following procedure
https://support.nagios.com/forum/viewto ... 08#p255370
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by sathevaner »

scottwilkerson wrote:This is a known bug, that can be resolved with the following procedure
https://support.nagios.com/forum/viewto ... 08#p255370
These instructions are unclear. Where is the specific upgrade script to do this? Is it in the /data/local/nagiosxi/tmp/nagiosxi subdirectory?

The "upgrade" script does not match what is seen in that thread. Commenting out the section intended for "Uninstall ajaxterminal to install shellinabox" had no effect on the outcome of our upgrade.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by tgriep »

If you use the Manual Upgrade procedure to upgrade the server
https://support.nagios.com/kb/article/n ... i-134.html

The folder where the upgrade script is in this location.

Code: Select all

/tmp/nagiosxi
I updated the upgrade script for you and attached it to this post.
Put it in that folder and rename if from upgrade.txt to upgrade.

Code: Select all

mv upgrade.txt upgrade
Set the permissions by running

Code: Select all

chmod a+x upgrade
Then re-run the ./upgrade and it should finish for you.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by sathevaner »

Do I need to do it manually, or can I do it through the web UI?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by lmiltchev »

I would recommend running the script manually from the command line as root. Let us know if the upgrade completes successfully.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by sathevaner »

I should also note that our Nagios server was originally set up through the VMWare image.

The upgrade did not seem to complete as expected, nor did it actually upgrade my existing installation. I have attached the output results.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by scottwilkerson »

This issue will be fixed in the next release of Nagios XI. As a "workaround", comment out the following section in the "upgrade" script:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
    rpm -e Ajaxterm
    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
    rm -f $proddir/html/admin/ajaxterm.php
fi
so that it would look like this:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#    rpm -e Ajaxterm
#    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#    rm -f $proddir/html/admin/ajaxterm.php
#fi
Save, exit, and rerun the upgrade script:

Code: Select all

cd /tmp/nagiosxi
./upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
sathevaner
Posts: 62
Joined: Wed Nov 29, 2017 11:00 am

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by sathevaner »

Those lines are commented out already. I still experienced the problem.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade to 5.5 failed at "Updating NRDP"

Post by scottwilkerson »

really, and it still ends in the same spot?

Can you send us your upgrade file from the installation directory
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked