Upgrade to 5.5 failed at "Updating NRDP"
- sathevaner
- Posts: 62
- Joined: Wed Nov 29, 2017 11:00 am
Upgrade to 5.5 failed at "Updating NRDP"
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?
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"
This is a known bug, that can be resolved with the following procedure
https://support.nagios.com/forum/viewto ... 08#p255370
https://support.nagios.com/forum/viewto ... 08#p255370
- sathevaner
- Posts: 62
- Joined: Wed Nov 29, 2017 11:00 am
Re: Upgrade to 5.5 failed at "Updating NRDP"
These instructions are unclear. Where is the specific upgrade script to do this? Is it in the /data/local/nagiosxi/tmp/nagiosxi subdirectory?scottwilkerson wrote:This is a known bug, that can be resolved with the following procedure
https://support.nagios.com/forum/viewto ... 08#p255370
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"
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.
https://support.nagios.com/kb/article/n ... i-134.html
The folder where the upgrade script is in this location.
Code: Select all
/tmp/nagiosxiPut it in that folder and rename if from upgrade.txt to upgrade.
Code: Select all
mv upgrade.txt upgradeCode: Select all
chmod a+x upgradeYou 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!
- sathevaner
- Posts: 62
- Joined: Wed Nov 29, 2017 11:00 am
Re: Upgrade to 5.5 failed at "Updating NRDP"
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"
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!
- sathevaner
- Posts: 62
- Joined: Wed Nov 29, 2017 11:00 am
Re: Upgrade to 5.5 failed at "Updating NRDP"
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.
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"
This issue will be fixed in the next release of Nagios XI. As a "workaround", comment out the following section in the "upgrade" script:
so that it would look like this:
Save, exit, and rerun 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
fiCode: 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
#fiCode: Select all
cd /tmp/nagiosxi
./upgrade- sathevaner
- Posts: 62
- Joined: Wed Nov 29, 2017 11:00 am
Re: Upgrade to 5.5 failed at "Updating NRDP"
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"
really, and it still ends in the same spot?
Can you send us your upgrade file from the installation directory
Can you send us your upgrade file from the installation directory