Page 1 of 1

Upgrade to 5.6.13 Fails

Posted: Thu Apr 09, 2020 9:47 am
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!

Re: Upgrade to 5.6.13 Fails

Posted: Thu Apr 09, 2020 12:05 pm
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.

Re: Upgrade to 5.6.13 Fails

Posted: Wed Apr 22, 2020 10:14 am
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!

Re: Upgrade to 5.6.13 Fails

Posted: Wed Apr 22, 2020 10:31 am
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.

Re: Upgrade to 5.6.13 Fails

Posted: Wed Apr 22, 2020 2:04 pm
by cstuart
Upgrading manually did the trick. Thanks a ton!