5.2.9 Upgrade to 5.3 Error.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

5.2.9 Upgrade to 5.3 Error.

Post by TBT »

No support required as I was testing on Dev and already rolled back. But FYI, I ran the Web GUI Update for 5.3 and it did not complete successfully with the following error log.
...
Dashlets installed/updated OK
ALTER TABLE
ALTER TABLE
UPDATE 6
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
CREATE SEQUENCE
CREATE TABLE
ERROR 1142 (42000) at line 39: ALTER command denied to user 'nagiosql'@'xxx.xxx.xxx.xxx' for table 'tbl_lnkServiceToHost'
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by lmiltchev »

I was not able to recreate the issue. My upgrade from the web UI (5.2.9 to 5.3.0) completed with no issues.
example01.PNG
Have you limited nagiosql user to not allow altering the table? What is the output of the following command?

Code: Select all

echo "show grants for 'nagiosql'@'localhost';" | mysql -t -uroot -pnagiosxi nagiosql
You 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!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by TBT »

Code: Select all

------------------------+
| GRANT USAGE ON . TO 'nagiosql'@'xxx.xxx.xxx.xxx' IDENTIFIED BY PASSWORD '*124773959909A94DDF2A7F78DD067589D4092EE7' |
| GRANT ALL PRIVILEGES ON `nagiosqldev`.* TO 'nagiosql'@'xxx.xxx.xxx.xxx'                                               |
+------------------------------------------------------------------------------------------------------------------+
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: 5.2.9 Upgrade to 5.3 Error.

Post by jomann »

Can you please update your upgrade script to on line 828 to use cfg__db_info__nagiosql__pwd instead of cfg__db_info__nagiosxi__pwd

This fix has been applied to the current tarball also, so you can also download the tarball. You will want to comment out the lines on 822 and 824 so that it doesn't try to re-run those mysql/psql upgrades or it may error out agian.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by TBT »

jomann wrote:Can you please update your upgrade script to on line 828 to use cfg__db_info__nagiosql__pwd instead of cfg__db_info__nagiosxi__pwd

This fix has been applied to the current tarball also, so you can also download the tarball. You will want to comment out the lines on 822 and 824 so that it doesn't try to re-run those mysql/psql upgrades or it may error out agian.
Would it be best to upgrade using the tarball instead of the Web GUI so lint like this is cleaned up?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: 5.2.9 Upgrade to 5.3 Error.

Post by jomann »

In this instance, since you already started the upgrade and it failed - I would recommend doing it from the CLI this time, just to make sure you get it upgraded.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by TBT »

So, trying this again with the tarball. Seems the upgrade script assumes a local database (IP of host), where in our case it is remote. Thus the same error occurs.

Is this attributed to what you suggested above, we need to still comment out 822/824 in the new tarball regardless?
This fix has been applied to the current tarball also, so you can also download the tarball. You will want to comment out the lines on 822 and 824 so that it doesn't try to re-run those mysql/psql upgrades or it may error out agian.
Please advise.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by ssax »

Is this attributed to what you suggested above, we need to still comment out 822/824 in the new tarball regardless?
Yes, since your DB has already been upgraded.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: 5.2.9 Upgrade to 5.3 Error.

Post by dwhitfield »

5.3.1 should be out this week. At this point, it probably makes sense to just wait to upgrade, unless there is something very specific you need from 5.3.0.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: 5.2.9 Upgrade to 5.3 Error.

Post by TBT »

dwhitfield wrote:5.3.1 should be out this week. At this point, it probably makes sense to just wait to upgrade, unless there is something very specific you need from 5.3.0.
Will 5.3.1 have a sanity check to avoid this, or will commenting lines 822/824 still be required?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Locked