Upgrade to 5.6.13 Fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cstuart
Posts: 37
Joined: Thu May 02, 2019 8:18 am

Upgrade to 5.6.13 Fails

Post by cstuart »

I've seen this on two of my servers so far. Any ideas?

Code: Select all

---- Starting Nagios XI Backup ----
No entry for terminal type "unknown";
using dumb terminal settings.
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 144: "Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed" when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Upgrade to 5.6.13 Fails

Post by jbrunkow »

It may help to run a repair of those databases. Please refer to the linked documentation on how to do so.

PDF = https://assets.nagios.com/downloads/nag ... tabase.pdf
KB = https://support.nagios.com/kb/article.php?id=24

You may also want to double check that the MySQL password in the script is correct.

Let me know if either of those things help! If not, I can provide more detailed instructions or further troubleshooting steps.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
cstuart
Posts: 37
Joined: Thu May 02, 2019 8:18 am

Re: Upgrade to 5.6.13 Fails

Post by cstuart »

Thanks! A database repair addressed most. I have two that when I try to upgrade, it just spins until it fails. I've not altered to the DB passwords. I really appreciate your help!
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Upgrade to 5.6.13 Fails

Post by jbrunkow »

You could try a manual upgrade for those servers. The following commands should work as long as you did not move any of the files involved.

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Please refer to the linked knowledge base article for more information on this topic.
https://support.nagios.com/kb/article/n ... e-851.html

If that does not work, please post the output from those commands.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
cstuart
Posts: 37
Joined: Thu May 02, 2019 8:18 am

Re: Upgrade to 5.6.13 Fails

Post by cstuart »

Upgrading manually did the trick. Thanks a ton!
Locked