I subsequently ran the manual _upgrade_ script again, only this time I'm receiving the following error:
Code: Select all
Done!
INSTALL: Dashlets installed/updated OK.
ERROR 1060 (42S21) at line 25: Duplicate column name 'dependent_servicegroup_name'
Code: Select all
Done!
INSTALL: Dashlets installed/updated OK.
ERROR 1060 (42S21) at line 25: Duplicate column name 'dependent_servicegroup_name'
Did you change the root password on your offloaded mysql server?MySQL db user defined did not have permissions to create a table in the database.
Code: Select all
mysqlcheck -r -f -uroot -pnagiosxi --all-databases --use_frmdrug wrote:After touching the file *mysql.5600.updated* in the install directory, the upgrade was able to succeed. Thanks for your help.
Code: Select all
# Do not re-run the MySQL upgrades if they have already been applied
if [ ! -f 'mysql.530.updated' ]; then
@ drug, Glad this worked for you./tmp/nagiosxi/get-version
npolovenko wrote:@rrustamSAI, The upgrade script runs the ./get-version script first to check the current XI version and then runs specific MySQL commands based on the current XI version.
Can you run the script and show me the output?@ drug, Glad this worked for you./tmp/nagiosxi/get-version
drug wrote:Hi @rrustamSAI, reading through the upgrade script I noticed several conditionals for MySQL upgrades, e.g.:
To prevent those MySQL changes from trying to execute again (per @npolovenko's recommendation), for each of those mysql.XXX.updated files, I created it in the install directory (e.g. touch mysql.530.updated) and ran the upgrade script. It continued to fail until I created mysql.5600.updated.Code: Select all
# Do not re-run the MySQL upgrades if they have already been applied if [ ! -f 'mysql.530.updated' ]; then