The script that failed was: './A-subcomponents'
The script that failed was: './A-subcomponents'
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
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'
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?
Code: Select all
cpan -i Params::ValidateBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: The script that failed was: './A-subcomponents'
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'
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'
You do not have the required permissions to view the files attached to this post.
Re: The script that failed was: './A-subcomponents'
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'
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'
You do not have the required permissions to view the files attached to this post.
Re: The script that failed was: './A-subcomponents'
It failed again.
You do not have the required permissions to view the files attached to this post.
Re: The script that failed was: './A-subcomponents'
Did you have mysql/mariadb "pre-installed" on this system?Hi, I'm trying to install nagios xi on a clean Debian 9 server.
Are you using a proxy?
I see this in the log:
Can you run the following command successfully?Ign:1 http://debian.csail.mit.edu/debian stretch InRelease
Code: Select all
apt-get updateBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: The script that failed was: './A-subcomponents'
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
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
You do not have the required permissions to view the files attached to this post.
Re: The script that failed was: './A-subcomponents'
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'
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
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
You do not have the required permissions to view the files attached to this post.
Re: The script that failed was: './A-subcomponents'
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:
These two commands should remove mysql and mariadb packages (if installed).
Also, remove your Nagios XI files from the custom location:
Try installing XI by running:
If the install fails again, post the new install.log on the forum.
Code: Select all
apt-get remove --purge 'mysql-.*'
apt-get purge --auto-remove mariadb-serverAlso, remove your Nagios XI files from the custom location:
Code: Select all
rm -rf /path/to/your/custom/directory/<nagios files>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
./fullinstallBe sure to check out our Knowledgebase for helpful articles and solutions!