Merge 4.8.2 into master #2751
Merged
Merge 4.8.2 into master #2751
Wazuh CI / All In One - Amazonlinux 2_base installation
failed
Jan 8, 2024 in 4m 26s
Test_unattended
Below you have the stage output
Details
Amazonlinux 2_base log
curl: (22) The requested URL returned error: 404
--------------------------------
08/01/2024 17:47:11 DEBUG: Checking root permissions.
08/01/2024 17:47:11 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
08/01/2024 17:47:11 INFO: Verbose logging redirected to /var/log/wazuh-install.log
08/01/2024 17:47:11 DEBUG: YUM package manager will be used.
08/01/2024 17:47:11 DEBUG: Installing check dependencies.
08/01/2024 17:47:17 DEBUG: Checking system distribution.
08/01/2024 17:47:17 DEBUG: Detected distribution name: amzn
08/01/2024 17:47:17 DEBUG: Detected distribution version: 2
08/01/2024 17:47:17 DEBUG: Checking Wazuh installation.
08/01/2024 17:47:19 DEBUG: Checking system architecture.
08/01/2024 17:47:19 INFO: Verifying that your system meets the recommended minimum hardware requirements.
08/01/2024 17:47:19 DEBUG: CPU cores detected: 2
08/01/2024 17:47:19 DEBUG: Free RAM memory detected: 7869
08/01/2024 17:47:19 INFO: Wazuh web interface port will be 443.
08/01/2024 17:47:19 DEBUG: Checking ports availability.
08/01/2024 17:47:20 DEBUG: Installing prerequisites dependencies.
08/01/2024 17:47:21 DEBUG: Checking curl tool version.
08/01/2024 17:47:21 DEBUG: Adding the Wazuh repository.
[wazuh]
gpgcheck=1
gpgkey=https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH
enabled=1
name=EL-${releasever} - Wazuh
baseurl=https://packages-dev.wazuh.com/staging/yum/
protect=1
08/01/2024 17:47:21 INFO: Wazuh development repository added.
08/01/2024 17:47:21 INFO: --- Configuration files ---
08/01/2024 17:47:21 INFO: Generating configuration files.
08/01/2024 17:47:21 DEBUG: Creating Wazuh certificates.
08/01/2024 17:47:21 DEBUG: Reading configuration file.
08/01/2024 17:47:22 DEBUG: Creating the root certificate.
Generating a 2048 bit RSA private key
............................................................+++
..................+++
writing new private key to '/tmp/wazuh-certificates//root-ca.key'
-----
08/01/2024 17:47:22 DEBUG: Generating Admin certificates.
Generating RSA private key, 2048 bit long modulus
......................+++
................+++
e is 65537 (0x10001)
Signature ok
subject=/C=US/L=California/O=Wazuh/OU=Wazuh/CN=admin
Getting CA Private Key
08/01/2024 17:47:22 DEBUG: Generating Wazuh indexer certificates.
08/01/2024 17:47:22 DEBUG: Creating the Wazuh indexer certificates.
08/01/2024 17:47:22 DEBUG: Generating certificate configuration.
Generating a 2048 bit RSA private key
....................+++
.............................................................................................................+++
writing new private key to '/tmp/wazuh-certificates//wazuh-indexer-key.pem'
-----
Signature ok
subject=/C=US/L=California/O=Wazuh/OU=Wazuh/CN=wazuh-indexer
Getting CA Private Key
08/01/2024 17:47:22 DEBUG: Generating Filebeat certificates.
08/01/2024 17:47:22 DEBUG: Creating the Wazuh server certificates.
08/01/2024 17:47:22 DEBUG: Generating certificate configuration.
Generating a 2048 bit RSA private key
....................+++
.................................................................................+++
writing new private key to '/tmp/wazuh-certificates//wazuh-server-key.pem'
-----
Signature ok
subject=/C=US/L=California/O=Wazuh/OU=Wazuh/CN=wazuh-server
Getting CA Private Key
08/01/2024 17:47:22 DEBUG: Generating Wazuh dashboard certificates.
08/01/2024 17:47:22 DEBUG: Creating the Wazuh dashboard certificates.
08/01/2024 17:47:22 DEBUG: Generating certificate configuration.
Generating a 2048 bit RSA private key
........................+++
.............+++
writing new private key to '/tmp/wazuh-certificates//wazuh-dashboard-key.pem'
-----
Signature ok
subject=/C=US/L=California/O=Wazuh/OU=Wazuh/CN=wazuh-dashboard
Getting CA Private Key
08/01/2024 17:47:22 DEBUG: Cleaning certificate files.
08/01/2024 17:47:22 DEBUG: Generating password file.
08/01/2024 17:47:22 DEBUG: Generating random passwords.
08/01/2024 17:47:22 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
08/01/2024 17:47:22 DEBUG: Extracting Wazuh configuration.
08/01/2024 17:47:22 DEBUG: Reading configuration file.
08/01/2024 17:47:23 INFO: --- Wazuh indexer ---
08/01/2024 17:47:23 INFO: Starting Wazuh indexer installation.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Resolving Dependencies --> Running transaction check ---> Package wazuh-indexer.x86_64 0:4.9.0-1 will be installed --> Finished D
ependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size =======================================
========================================= Installing: wazuh-indexer x86_64 4.9.0-1 wazuh 673 M Transaction Summary ================================================================================ Inst
all 1 Package Total download size: 673 M Installed size: 930 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wazu
h-indexer-4.9.0-1.x86_64 1/1 Created opensearch keystore in /etc/wazuh-indexer/opensearch.keystore Verifying : wazuh-indexer-4.9.0-1.x86_64 1/1 Installed: wazuh-indexer.x86_64 0:4.9.0-1 Complete!
08/01/2024 17:48:40 DEBUG: Checking Wazuh installation.
08/01/2024 17:48:42 DEBUG: There are Wazuh indexer remaining files.
08/01/2024 17:48:53 INFO: Wazuh indexer installation finished.
08/01/2024 17:48:53 DEBUG: Configuring Wazuh indexer.
08/01/2024 17:48:53 DEBUG: Copying Wazuh indexer certificates.
08/01/2024 17:48:53 INFO: Wazuh indexer post-install configuration finished.
08/01/2024 17:48:53 INFO: Starting service wazuh-indexer.
Created symlink from /etc/systemd/system/multi-user.target.wants/wazuh-indexer.service to /usr/lib/systemd/system/wazuh-indexer.service.
08/01/2024 17:49:14 INFO: wazuh-indexer service started.
08/01/2024 17:49:14 INFO: Initializing Wazuh indexer cluster security settings.
**************************************************************************
** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755 **
**************************************************************************
Security Admin v7
Will connect to 127.0.0.1:9200 ... done
Connected as "CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US"
OpenSearch Version: 2.8.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: wazuh-cluster
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index does not exists, attempt to create it ... done (0-all replicas)
Populate config from /etc/wazuh-indexer/opensearch-security/
Will update '/config' with /etc/wazuh-indexer/opensearch-security/config.yml
SUCC: Configuration for 'config' created or updated
Will update '/roles' with /etc/wazuh-indexer/opensearch-security/roles.yml
SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /etc/wazuh-indexer/opensearch-security/roles_mapping.yml
SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /etc/wazuh-indexer/opensearch-security/internal_users.yml
SUCC: Configuration for 'internalusers' created or updated
Will update '/actiongroups' with /etc/wazuh-indexer/opensearch-security/action_groups.yml
SUCC: Configuration for 'actiongroups' created or updated
Will update '/tenants' with /etc/wazuh-indexer/opensearch-security/tenants.yml
SUCC: Configuration for 'tenants' created or updated
Will update '/nodesdn' with /etc/wazuh-indexer/opensearch-security/nodes_dn.yml
SUCC: Configuration for 'nodesdn' created or updated
Will update '/whitelist' with /etc/wazuh-indexer/opensearch-security/whitelist.yml
SUCC: Configuration for 'whitelist' created or updated
Will update '/audit' with /etc/wazuh-indexer/opensearch-security/audit.yml
SUCC: Configuration for 'audit' created or updated
Will update '/allowlist' with /etc/wazuh-indexer/opensearch-security/allowlist.yml
SUCC: Configuration for 'allowlist' created or updated
SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"],"updated_config_siz
e":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"]) due to: null
Done with success
bash: /usr/share/wazuh-indexer/bin/indexer-ism-init.sh: No such file or directory
08/01/2024 17:49:25 INFO: The Wazuh indexer cluster ISM initialized.
08/01/2024 17:49:25 INFO: Wazuh indexer cluster initialized.
08/01/2024 17:49:25 INFO: --- Wazuh server ---
08/01/2024 17:49:25 INFO: Starting the Wazuh manager installation.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Resolving Dependencies --> Running transaction check ---> Package wazuh-manager.x86_64 0:4.9.0-1 will be installed --> Finished D
ependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size =======================================
========================================= Installing: wazuh-manager x86_64 4.9.0-1 wazuh 187 M Transaction Summary ================================================================================ Inst
all 1 Package Total download size: 187 M Installed size: 672 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wazu
h-manager-4.9.0-1.x86_64 1/1 Verifying : wazuh-manager-4.9.0-1.x86_64 1/1 Installed: wazuh-manager.x86_64 0:4.9.0-1 Complete!
08/01/2024 17:49:46 DEBUG: Checking Wazuh installation.
08/01/2024 17:49:47 DEBUG: There are Wazuh remaining files.
08/01/2024 17:49:47 DEBUG: There are Wazuh indexer remaining files.
08/01/2024 17:49:58 INFO: Wazuh manager installation finished.
08/01/2024 17:49:58 INFO: Starting service wazuh-manager.
Created symlink from /etc/systemd/system/multi-user.target.wants/wazuh-manager.service to /usr/lib/systemd/system/wazuh-manager.service.
08/01/2024 17:50:15 INFO: wazuh-manager service started.
08/01/2024 17:50:15 INFO: Starting Filebeat installation.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Resolving Dependencies --> Running transaction check ---> Package filebeat.x86_64 0:7.10.2-1 will be installed --> Finished Depen
dency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ===========================================
===================================== Installing: filebeat x86_64 7.10.2-1 wazuh 21 M Transaction Summary ================================================================================ Install 1 Pac
kage Total download size: 21 M Installed size: 70 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : filebeat-7.10.2
-1.x86_64 1/1 Verifying : filebeat-7.10.2-1.x86_64 1/1 Installed: filebeat.x86_64 0:7.10.2-1 Complete!
08/01/2024 17:50:22 DEBUG: Checking Wazuh installation.
08/01/2024 17:50:23 DEBUG: There are Wazuh remaining files.
08/01/2024 17:50:23 DEBUG: There are Wazuh indexer remaining files.
08/01/2024 17:50:34 DEBUG: There are Filebeat remaining files.
08/01/2024 17:50:35 INFO: Filebeat installation finished.
08/01/2024 17:50:35 DEBUG: Configuring Filebeat.
08/01/2024 17:50:35 ERROR: Error downloading wazuh-template.json file.
08/01/2024 17:50:35 INFO: --- Removing existing Wazuh installation ---
08/01/2024 17:50:35 INFO: Removing Wazuh manager.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package wazuh-manager.x86_64 0:4.9.0-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
wazuh-manager x86_64 4.9.0-1 @wazuh 672 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 672 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : wazuh-manager-4.9.0-1.x86_64 1/1
warning: /var/ossec/etc/ossec.conf saved as /var/ossec/etc/ossec.conf.rpmsave
Verifying : wazuh-manager-4.9.0-1.x86_64 1/1
Removed:
wazuh-manager.x86_64 0:4.9.0-1
Complete!
08/01/2024 17:50:42 INFO: Wazuh manager removed.
08/01/2024 17:50:42 INFO: Removing Wazuh indexer.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package wazuh-indexer.x86_64 0:4.9.0-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
wazuh-indexer x86_64 4.9.0-1 @wazuh 930 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 930 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Stopping wazuh-indexer service... OK
Erasing : wazuh-indexer-4.9.0-1.x86_64 1/1
warning: /etc/wazuh-indexer/opensearch.yml saved as /etc/wazuh-indexer/opensearch.yml.rpmsave
warning: /etc/wazuh-indexer/jvm.options saved as /etc/wazuh-indexer/jvm.options.rpmsave
Verifying : wazuh-indexer-4.9.0-1.x86_64 1/1
Removed:
wazuh-indexer.x86_64 0:4.9.0-1
Complete!
08/01/2024 17:50:45 INFO: Wazuh indexer removed.
08/01/2024 17:50:45 INFO: Removing Filebeat.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package filebeat.x86_64 0:7.10.2-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
filebeat x86_64 7.10.2-1 @wazuh 70 M
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 70 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : filebeat-7.10.2-1.x86_64 1/1
Verifying : filebeat-7.10.2-1.x86_64 1/1
Removed:
filebeat.x86_64 0:7.10.2-1
Complete!
08/01/2024 17:50:47 INFO: Filebeat removed.
08/01/2024 17:50:47 DEBUG: Removing GPG key from system.
08/01/2024 17:50:47 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.
Loading