Unable to update to version 5.4.11

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Unable to update to version 5.4.11

Post by demi »

Hello,
I need some assistance with getting past errors while trying to upgrade to version 5.4.11. I have tried running the sql repair scripts as well as tried performing an automatic volume increase using the resizing script, but nothing seems to be working for me. I have cleared on many of the old backups and larger older log files as well. Here is the error I'm receiving:
acking up MRTG...
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 MySQL databases...
mysqldump: Got error: 130: Incorrect file format 'nagios_systemcommands' when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!

I'm also receiving this warning in the console: localhost root partition DISK CRITICAL - free space: / 4554 MB (23% inode=88%):
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Unable to update to version 5.4.11

Post by npolovenko »

Hello, @demi.
I'm also receiving this warning in the console: localhost root partition DISK CRITICAL - free space: / 4554 MB (23% inode=88%):
That doesn't seem like a lot of space. Try increasing the disk size and then run the ./repair_databases.sh script from the /usr/local/nagiosxi/scripts/ folder.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Re: Unable to update to version 5.4.11

Post by demi »

I shutdown my vm and resized the volume, then powered back on and ran the resize script. It did not work so I followed the resize manually instructions and it damaged the boot partition. Any other ideas on resizing? :geek:
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to update to version 5.4.11

Post by dwhitfield »

demi wrote: I have cleared on many of the old backups and larger older log files as well.
Where do you store your backups? If they are in one of the directories that the backup is trying to backup, that could be the source of the issue.

Are you able to log in to mysql from the command line? Something like mysql -uroot -pnagiosxi
demi
Posts: 10
Joined: Wed Jan 18, 2017 11:46 am

Re: Unable to update to version 5.4.11

Post by demi »

Yes, I am able to log into MySQL from the command line.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to update to version 5.4.11

Post by lmiltchev »

Can you run the following commands from the command line, and show the output?

Code: Select all

echo 'repair table nagios_systemcommands use_frm;' | mysql -t -uroot -pnagiosxi nagios
mysqlcheck -f -r -uroot -pnagiosxi --databases nagios
tail -50 /var/log/mysqld.log
tail -50 /var/log/mariadb/mariadb.log
df -h
ls -la /store/backups/nagiosxi
Note: The first two commands should repair the nagios_systemcommands table (and other crashed tables) in the nagios database. The two tail commands (depending on whether you use mysql or mariadb) should show us if there are any errors in the log. We also need to see how much disk space you have. Running out of disk space can, and most probably will corrupt the database. The last command should show us if you have any "incomplete" backups in the "/store/backups/nagiosxi" directory.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked