upgrade to xi 5 failes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

upgrade to xi 5 failes

Post by doneil326 »

i continously get this error when trying to upgrade xi 2014.R2.7 to 5.2.0

Installing new XI templates...
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password={password]' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: upgrade to xi 5 failes

Post by hsmith »

Can we get some information to get started with here?
  • What OS do you have this installed on?
  • Are you behind a proxy?
  • Did you make any modifications to passwords on databases or anything else?
  • Is your copy of 2.7 from one of our templates, or something you compiled from source?
Former Nagios Employee.
me.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: upgrade to xi 5 failes

Post by doneil326 »

I am using redhat 6.7.
i am behind a proxy but have configured the wgetrc as specified in your documentation
I did not update the passwords to the databases, but when looking at the password="" in the string for the wget command i cannot login to mysql with that user id/password
2.7 was downloaded and installed via your website, so it is your version.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: upgrade to xi 5 failes

Post by doneil326 »

looking in the apache logs i also get these errors right when the upgrade fails

[Mon Oct 19 11:51:03 2015] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant COMPONENT_REQUIRES_VERSION - assumed 'COMPONENT_REQUIRES_VERSION' in /usr/local/nagiosxi/html/includes/components/massacknowledge/massacknowledge.inc.php on line 34
[Mon Oct 19 11:51:11 2015] [notice] caught SIGTERM, shutting down
[Mon Oct 19 11:51:11 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Oct 19 11:51:11 2015] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 19 11:51:11 2015] [notice] Digest: done
[Mon Oct 19 11:51:11 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon Oct 19 11:51:24 2015] [error] [client 127.0.0.1] (13)Permission denied: access to /nagiosxi/backend/index.php denied
[Mon Oct 19 11:51:24 2015] [error] [client 127.0.0.1] (13)Permission denied: access to /nagiosxi/backend/index.html denied
[Mon Oct 19 11:51:24 2015] [error] [client 127.0.0.1] (13)Permission denied: access to /nagiosxi/backend/index.html.var denied
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: upgrade to xi 5 failes

Post by doneil326 »

it seems the upgrade script is chmod all of the httpd directories to 750 and they need to be 755, where in the upgrade scripts is this set.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: upgrade to xi 5 failes

Post by doneil326 »

i edited the install-html script to not chmod the directories and now i get this error

[Mon Oct 19 12:54:44 2015] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant COMPONENT_REQUIRES_VERSION - assumed 'COMPONENT_REQUIRES_VERSION' in /usr/local/nagiosxi/html/includes/components/massacknowledge/massacknowledge.inc.php on line 34

when i look at line 34 it says COMPONENT_REQUIRES_VERSION => 500

Not sure how it can be version 500, until the upgrade completes as my current version is 416. We are looking to buy this product and support, so it would be great if we could get some assistance in getting this resolved. This seems to be a bit of a difficult upgrade.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: upgrade to xi 5 failes

Post by hsmith »

How are you trying to do the upgrade? Are you doing it via the GUI or command line? Can you please attach your upgrade.log here for us to view?

Also something to note here would be each time you post again in the topic, it achieves the opposite effect of "bumping" it. We use a dashboard system here to monitor the forums, and it looks for age from oldest to newest. Once you post in your topic again, it will reset the time from '3 hours ago' to '5 minutes ago', moving your post to the bottom of the 'list'. If you have more information to add to a post, please edit the original post.
Former Nagios Employee.
me.
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

Re: upgrade to xi 5 failes

Post by doneil326 »

please close i was able to resolve myself.
Locked