Page 1 of 2
Upgrade to 5.5 failed at "Updating NRDP"
Posted: Tue Jul 03, 2018 2:36 pm
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?
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Tue Jul 03, 2018 3:02 pm
by scottwilkerson
This is a known bug, that can be resolved with the following procedure
https://support.nagios.com/forum/viewto ... 08#p255370
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Mon Jul 09, 2018 10:27 am
by sathevaner
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.
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Mon Jul 09, 2018 4:06 pm
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.
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.
Set the permissions by running
Then re-run the ./upgrade and it should finish for you.
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Tue Jul 10, 2018 11:45 am
by sathevaner
Do I need to do it manually, or can I do it through the web UI?
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Tue Jul 10, 2018 2:23 pm
by lmiltchev
I would recommend running the script manually from the command line as root. Let us know if the upgrade completes successfully.
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Wed Jul 11, 2018 11:02 am
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.
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Wed Jul 11, 2018 3:05 pm
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:
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Wed Jul 11, 2018 3:37 pm
by sathevaner
Those lines are commented out already. I still experienced the problem.
Re: Upgrade to 5.5 failed at "Updating NRDP"
Posted: Wed Jul 11, 2018 3:56 pm
by scottwilkerson
really, and it still ends in the same spot?
Can you send us your upgrade file from the installation directory