wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
104 stars 94 forks source link

Issue with the ossec.log file in macOS 4.3.11 packages #2169

Closed c-bordon closed 1 year ago

c-bordon commented 1 year ago

Description

Performing tests on the package https://packages-dev.wazuh.com/warehouse/pullrequests/4.3/macos/wazuh-agent-4.3.11-0.commitf45f0ff.pkg errors were found in the install tests, particularly the logs showing an erroneous configuration in the ossec.conf. It is checked that these logs already come in the package, so we must analyze what is causing the package to be created with these logs.

https://ci.wazuh.info/job/Test_install/120746/console

14:36:04  ----------------------------- Captured stdout call -----------------------------
14:36:04  2023/04/19 18:36:14 wazuh-agentd: ERROR: (4112): Invalid server address found: 'MANAGER_IP'
14:36:04  2023/04/19 18:36:14 wazuh-agentd: CRITICAL: (1215): No client configured. Exiting.
14:36:04  2023/04/19 10:32:28 wazuh-execd: INFO: Started (pid: 1336).
14:36:04  2023/04/19 10:32:29 wazuh-agentd: INFO: (1410): Reading authentication keys file.
c-bordon commented 1 year ago

Upgrade report

The error cannot be reproduced on a new build of the package, it is tested in a test install which does not fail because of the logs, it fails after removing the vagrant box after finishing the test

build: https://ci.wazuh.info/view/Packages/job/Packages_builder_macos/9494/ package: https://packages-dev.wazuh.com/warehouse/test/4.3/macos/wazuh-agent-4.3.11-0.40300.20230419.pkg install: https://ci.wazuh.info/view/Tests/job/Test_install/120764/console

c-bordon commented 1 year ago

As the error could not be reproduced, we closed the issue, but in case it appears again we will have to analyze this error in depth