Page 1 of 1
Error when running install.php
Posted: Mon Sep 20, 2021 3:17 pm
by mromans
We had to reinstall XI in our dev env. We wiped all the Nagios dirs removed the database and the custom httpd settings. (CentOS 7) Then reinstalled. Everything worked. When running install.php we get the following error after filling out out ID and Licence information...
Product installation error (NEC000NPID) please contact Nagios Support
It does this even if we go back and choose the free limited licence.
Re: Error when running install.php
Posted: Mon Sep 20, 2021 3:33 pm
by tgriep
When the Nagios folders were removed, it removed the unique ID that is needed to register the License key on the server.
To create the ID, run the following as root.
Code: Select all
uuidgen >> /usr/local/nagiosxi/var/xi-uuid
Then see if you can add the License to the Nagios server.
Thank you.
Re: Error when running install.php
Posted: Mon Sep 20, 2021 3:38 pm
by mromans
OK, I got it to create that file but now install.php just ends in a 500 error...
Re: Error when running install.php
Posted: Mon Sep 20, 2021 4:36 pm
by tgriep
Open a root ssh session to the Nagios server and run the following command.
Go in to the XI interface and try and install the license again.
Post all of the output from the ssh session running the tail command here so we can see that the error is.
A 500 error is a low level Apache error so we may need the Apache configuration files.
Get the following files from the server and post them.
Code: Select all
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
Thank you.
Re: Error when running install.php
Posted: Mon Sep 20, 2021 6:38 pm
by mromans
[Mon Sep 20 15:48:52.506495 2021] [:error] [pid 32512] [client 10.0.12.54:44854] PHP Fatal error: Encryption error: Key file at was empty or unable to be read by apache. in /usr/local/nagiosxi/html/includes/utilsl-helpers.inc.php on line 0, referer:
https://ne-vvadev-nagios-a01.cdc.nicusa ... nstall.php
I'm betting that's what you're looking for.
Re: Error when running install.php
Posted: Tue Sep 21, 2021 12:35 pm
by tgriep
The script is trying to save the encrypted key to a file and the permissions probably need to be set on the folders and files.
Run the following as root.
Code: Select all
chown -R nagios.nagios /usr/local/nagiosxi/var/keys
chmod 775 /usr/local/nagiosxi/var/keys
chmod 640 /usr/local/nagiosxi/var/keys/xi.key
Then see if you can add the License to the Nagios server.
Thank you.
Re: Error when running install.php
Posted: Wed Sep 22, 2021 7:51 am
by mromans
First the key dir was missing all together so we created that and touched the xi.key file not it still ends in a 500 error with the following log...
[Wed Sep 22 07:49:18.819383 2021] [:error] [pid 1426] [client 10.0.12.72:48906] PHP Fatal error: Encryption error: Key file at was empty or unable to be read by apache. in /usr/local/nagiosxi/html/includes/utilsl-helpers.inc.php on line 0, referer:
https://ne-vvadev-nagios-a01.cdc.nicusa ... nstall.php
Re: Error when running install.php
Posted: Wed Sep 22, 2021 8:28 am
by mromans
Is there a script that we can use to uninstall everything and start from scratch on CentOS 7? I tried this manually and feel I probably missed stuff. We just need to be able to start from scratch. That's what all of this has been about. This is an offline install BTW, not sure if I mentioned that before.
Re: Error when running install.php
Posted: Wed Sep 22, 2021 12:00 pm
by tgriep
There is not a script to remove XI from a server. The cleanest thing to do it to create a new clean operating system and re-install XI using the off-line procedure.
That way you know that the system is clean and does not have any leftover files, users, permission issues, etc.
When you reinstalled after removing the files, etc, I guess the install did not fully run so starting clean OS would be the way to go.
Thank you.