Page 1 of 1
The script that failed was: './A-subcomponents'
Posted: Wed Mar 20, 2019 2:11 pm
by neshelman
Hi, I'm trying to install nagios xi on a clean Debian 9 server. The installation fails with:
Result: FAIL
Failed 16/16 test programs. 32/33 subtests failed.
Makefile:870: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
ERROR: Subcomponent 'extraplugins' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './A-subcomponents'
Thanks --Nicholas
Re: The script that failed was: './A-subcomponents'
Posted: Wed Mar 20, 2019 2:55 pm
by lmiltchev
It seems like Nagios-Monitoring-Plugin didn't install because of a missing perl module. Can you try installing the module manually via cpan?
Can you complete the install now?
Re: The script that failed was: './A-subcomponents'
Posted: Wed Mar 20, 2019 3:36 pm
by neshelman
Hi, This time it failed like thisa:
NOTE: If prompted, enter the MySQL root password
ERROR 1396 (HY000) at line 3: Operation CREATE USER failed for 'ndoutils'@'localhost'
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './A-subcomponents'
Re: The script that failed was: './A-subcomponents'
Posted: Wed Mar 20, 2019 3:44 pm
by neshelman
Hi, This time it failed with: NOTE: If prompted, enter the MySQL root password
ERROR 1396 (HY000) at line 3: Operation CREATE USER failed for 'ndoutils'@'localhost'
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './A-subcomponents'
Re: The script that failed was: './A-subcomponents'
Posted: Thu Mar 21, 2019 8:20 am
by neshelman
It failed again.
Re: The script that failed was: './A-subcomponents'
Posted: Thu Mar 21, 2019 11:25 am
by lmiltchev
Hi, I'm trying to install nagios xi on a clean Debian 9 server.
Did you have mysql/mariadb "pre-installed" on this system?
Are you using a proxy?
I see this in the log:
Can you run the following command successfully?
Are you running the installer from /tmp directory as root or from some other "custom" location?
Re: The script that failed was: './A-subcomponents'
Posted: Fri Mar 22, 2019 12:55 pm
by neshelman
Hi, I found that there were errors in these sql files:
nagiosxi/subcomponents/ccm/db/create_db.sql
nagiosxi/subcomponents/ndoutils/mods/create_db.sql
nagiosxi/nagiosxi/nagiosxi-db/ nagiosxi_db.sql
I had to change them from this:
CREATE DATABASE `nagios` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ndoutils'@'localhost' IDENTIFIED BY 'n@gweb';
GRANT USAGE ON * . * TO 'ndoutils'@'localhost' IDENTIFIED BY 'n@gweb' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT ALL PRIVILEGES ON `nagios` . * TO 'ndoutils'@'localhost' WITH GRANT OPTION ;
to this:
CREATE DATABASE `nagios` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ndoutils' IDENTIFIED BY 'n@gweb';
GRANT USAGE ON * . * TO ndoutils@localhost IDENTIFIED BY 'n@gweb' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT ALL PRIVILEGES ON `nagios` . * TO ndoutils WITH GRANT OPTION ;
However, the installation still fails here:
Saving to: ‘phantomjs-1.9.8-linux-x86_64.tar’
0K .... 15.0M=0s
2019-03-22 13:28:02 (15.0 MB/s) - ‘phantomjs-1.9.8-linux-x86_64.tar’ saved [4961]
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
RESULT=2
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './B-installxi'
Thanks --Nicholas
Re: The script that failed was: './A-subcomponents'
Posted: Fri Mar 22, 2019 1:01 pm
by neshelman
I don't know if mariadb was part of my base installation. I'm not using a proxy. apt-get update works. I'm running is from a custom location.
Re: The script that failed was: './A-subcomponents'
Posted: Fri Mar 22, 2019 1:33 pm
by neshelman
I uninstalled MariaDB and ran the script from /tmp. I didn't get any mysql errors, but it still failed:
2019-03-22 14:30:24 (8.95 MB/s) - ‘phantomjs-1.9.8-linux-x86_64.tar’ saved [4961]
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
RESULT=2
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './B-installxi'
Thanks --Nicholas
Re: The script that failed was: './A-subcomponents'
Posted: Fri Mar 22, 2019 1:42 pm
by lmiltchev
I have installed Nagios XI on Debian 9 numerous times, and never had an issue... Having mylsq or mariadb pre-installed on the server can break the install process though. As I am not sure which one you had (if any), let's try this:
Code: Select all
apt-get remove --purge 'mysql-.*'
apt-get purge --auto-remove mariadb-server
These two commands should remove mysql and mariadb packages (if installed).
Also, remove your Nagios XI files from the custom location:
Code: Select all
rm -rf /path/to/your/custom/directory/<nagios files>
Try installing XI by running:
Code: Select all
cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.11.tar.gz
tar xvf xi-5.5.11.tar.gz
cd nagiosxi
./fullinstall
If the install fails again, post the new install.log on the forum.