Subcomponents installation failed - exiting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
igae_ucs
Posts: 2
Joined: Thu Jan 04, 2024 7:38 am

Subcomponents installation failed - exiting

Post by igae_ucs »

Dear all.

In order to perform a migration, I'm trying to install Nagios XI 5.8.9 in a fresh new server, but I find this problem (install.log attached)

I set manually nagios-8 repo and used a custom epel repo uploaded in satellite by infra team to subscription-manager

I had pre-installed nrpe and I removed it following these steps:
https://support.nagios.com/kb/article/n ... .html#RHEL

My installing method was: I downloaded xi-5.8.9.tar.gz, untared, and executed ./fullinstall

NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"

PROXY: YES

This is Test Summary Report:
Test Summary Report
-------------------
t/check_stuff.t (Wstat: 3328 Tests: 14 Failed: 13)
Failed tests: 1-12, 14
Non-zero exit status: 13
t/Nagios-Monitoring-Plugin-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 15 tests but ran 1.
t/Nagios-Monitoring-Plugin-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 103 tests but ran 1.
t/Nagios-Monitoring-Plugin-03.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 61 tests but ran 2.
t/Nagios-Monitoring-Plugin-04.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 2.
t/Nagios-Monitoring-Plugin-Functions-01.t (Wstat: 2048 Tests: 113 Failed: 8)
Failed tests: 2-5, 8-11
Non-zero exit status: 8
t/Nagios-Monitoring-Plugin-Getopt-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 76 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 14 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-03.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
t/Nagios-Monitoring-Plugin-Getopt-04.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 1.
t/Nagios-Monitoring-Plugin-Performance-02.t (Wstat: 1024 Tests: 4 Failed: 4)
Failed tests: 1-4
Non-zero exit status: 4
Parse errors: Bad plan. You planned 3 tests but ran 4.
t/Nagios-Monitoring-Plugin-Performance.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 231 tests but ran 1.
t/Nagios-Monitoring-Plugin-Range.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 151 tests but ran 1.
t/Nagios-Monitoring-Plugin-Threshold.t (Wstat: 65280 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 93 tests but ran 2.
Files=16, Tests=190, 1 wallclock secs ( 0.05 usr 0.02 sys + 1.07 cusr 0.18 csys = 1.32 CPU)
Result: FAIL
Failed 14/16 test programs. 37/190 subtests failed.
make: *** [Makefile:884: 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'
Could you help me?
You do not have the required permissions to view the files attached to this post.
User avatar
danderson
Posts: 111
Joined: Wed Aug 09, 2023 10:05 am

Re: Subcomponents installation failed - exiting

Post by danderson »

Thanks for reaching out @igae_ucs,

I notice a lot of issues with downloading metadata for the epel repo right at the top of the install log and as a result, necessary packages are not able to be installed. I would make sure this issue is resolved before trying to install again.
User avatar
lgute
Posts: 117
Joined: Mon Apr 06, 2020 2:49 pm

Re: Subcomponents installation failed - exiting

Post by lgute »

Hi @igae_ucs,

Going by the install.log, it looks like the fullinstall was executed 10 times, with the final failure being caused by a missing Perl module Class::Accessor::Fast.

You could manually install this module, but since you already installed and uninstalled NRPE and have been having so many issues, I would recommend starting with a clean install of RHEL 8.8.
Please let us know if you have any other questions or concerns.

-Laura
igae_ucs
Posts: 2
Joined: Thu Jan 04, 2024 7:38 am

Re: Subcomponents installation failed - exiting

Post by igae_ucs »

Thanks for your fast response!

I've followed your recommendations and restore a snapshot made before beginning nagiosxi installation. Unfortunately I cannot work on a 100% clean install because Unix admins works with corporative custom OS images with some security-essentials that cannot be avoided.

I don't know if there is any better way of installing nagiosxi in my case, let me know ;)

After several tries, finally nagiosxi could be installed after the manually-installation of missing Perl module

(New install.log attached)
danderson wrote: Thu Jan 04, 2024 12:11 pm Thanks for reaching out @igae_ucs,

I notice a lot of issues with downloading metadata for the epel repo right at the top of the install log and as a result, necessary packages are not able to be installed. I would make sure this issue is resolved before trying to install again.
I had to try several times to install nagiosxi because ./fullinstall installs and use epel-repos that cannot be reached from my server by security reasons, that's why EPEL repo is published via subscription-manager.

Problem is, installation raises an error, although all dependencies are correcly installed from my epel repo. I quote this extract from my new install.log
[...]

Ejecutando verificación de operación
Verificación de operación exitosa.
Ejecutando prueba de operaciones
Prueba de operación exitosa.
Ejecutando operación
Preparando : 1/1
Ejecutando scriptlet: epel-release-8-19.el8.noarch 1/1
Actualizando : epel-release-8-19.el8.noarch 1/2
Ejecutando scriptlet: epel-release-8-19.el8.noarch 1/2
Limpieza : epel-release-8-7.el8.noarch 2/2
advertencia:archivo /etc/yum.repos.d/epel-playground.repo: falló al eliminar: No existe el fichero o el directorio

Ejecutando scriptlet: epel-release-8-7.el8.noarch 2/2
Verificando : epel-release-8-19.el8.noarch 1/2
Verificando : epel-release-8-7.el8.noarch 2/2
Productos instalados actualizados.
Errors during downloading metadata for repository 'epel':
- Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... contentdir [Failed to connect to mirrors.fedoraproject.org port 443: Expiró el tiempo de conexión]

Actualizado:
epel-release-8-19.el8.noarch


¡Listo!
epel-release RPM installed OK
Repo configured OK
Installing prerequisites...
Actualización de repositorios de Subscription Management.
Extra Packages for Enterprise Linux 8 - x86_64 0.0 B/s | 0 B 05:59
Errors during downloading metadata for repository 'epel':
- Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... contentdir [Failed to connect to mirrors.fedoraproject.org port 443: Expiró el tiempo de conexión]
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... contentdir [Failed to connect to mirrors.fedoraproject.org port 443: Expiró el tiempo de conexión]

Actualización de repositorios de Subscription Management.
105 archivos eliminados

Actualización de repositorios de Subscription Management.
Extra Packages for Enterprise Linux 8 - x86_64 0.0 B/s | 0 B 05:59
Errors during downloading metadata for repository 'epel':
- Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... contentdir [Failed to connect to mirrors.fedoraproject.org port 443: Expiró el tiempo de conexión]
Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for https://mirrors.fedoraproject.org/metal ... contentdir [Failed to connect to mirrors.fedoraproject.org port 443: Expiró el tiempo de conexión]

Is there any way to manually define my epel repo in any installation config file?
lgute wrote: Thu Jan 04, 2024 1:24 pm Hi @igae_ucs,

Going by the install.log, it looks like the fullinstall was executed 10 times, with the final failure being caused by a missing Perl module Class::Accessor::Fast.

You could manually install this module, but since you already installed and uninstalled NRPE and have been having so many issues, I would recommend starting with a clean install of RHEL 8.8.
I've restored my snapshot and began installation from very beginning. After that, insstallation is interrupted several times and i have to re-launch it, skipping this phase because the dependencies were successfully installed, as I showd on my install.log extract above.

Is there any way to manually define my epel repo in any installation config file?

Is there also any way to manually define my proxy settings in any installation config file?
lgute wrote: Thu Jan 04, 2024 1:24 pm Hi @igae_ucs,

Going by the install.log, it looks like the fullinstall was executed 10 times, with the final failure being caused by a missing Perl module Class::Accessor::Fast.

You could manually install this module, but since you already installed and uninstalled NRPE and have been having so many issues, I would recommend starting with a clean install of RHEL 8.8.
Yes, this worked for me, I have to install manually this perl module and the test could have been init. And finally nagiosxi has installed, but my plan is to install nagiosxi the cleanest possible from my initial snapshot, so I still have some concerns about this:

- Define my proxy settings before begin installation
- Define my custom epel repo published in subscription-manager and avoid trying to reach it online.


Thank you very much, Nagios Team!
You do not have the required permissions to view the files attached to this post.
User avatar
lgute
Posts: 117
Joined: Mon Apr 06, 2020 2:49 pm

Re: Subcomponents installation failed - exiting

Post by lgute »

Hi @igae_ucs,

Our support team is likely the best way for you to get you up and running quickly. Please open a ticket (case) at the Nagios Answer Hub.
Please let us know if you have any other questions or concerns.

-Laura
Post Reply