Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed errors logs from OVA to master #2028

Conversation

c-bordon
Copy link
Member

Related issue
close #1971

Description

After various tests, I was able to detect that the fact that wazuh-manager service was active before the VM was exported generated this error in the logs.
I managed to avoid this error in the logs by adding this service to the provision.sh

Logs example

[wazuh-user@wazuh-server ~]$ journalctl -r -u wazuh-indexer.service | grep -i -E "error|critical|warning|fatal" 
ene 04 16:00:35 wazuh-server systemd-entrypoint[965]: WARNING: System::setSecurityManager will be removed in a future release
ene 04 16:00:35 wazuh-server systemd-entrypoint[965]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
ene 04 16:00:35 wazuh-server systemd-entrypoint[965]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
ene 04 16:00:35 wazuh-server systemd-entrypoint[965]: WARNING: A terminally deprecated method in java.lang.System has been called
ene 04 16:00:34 wazuh-server systemd-entrypoint[965]: WARNING: System::setSecurityManager will be removed in a future release
ene 04 16:00:34 wazuh-server systemd-entrypoint[965]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
ene 04 16:00:34 wazuh-server systemd-entrypoint[965]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
ene 04 16:00:34 wazuh-server systemd-entrypoint[965]: WARNING: A terminally deprecated method in java.lang.System has been called
[wazuh-user@wazuh-server ~]$ 

Tests

https://ci.wazuh.info/view/Packages/job/Packages_Builder_OVA/186/console

OVA: https://packages-dev.wazuh.com/trash/vm/wazuh-4.4.0.ova

@c-bordon c-bordon self-assigned this Jan 10, 2023
Copy link
Member

@rauldpm rauldpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alberpilot alberpilot merged commit efea678 into master Jan 11, 2023
@alberpilot alberpilot deleted the 1971-error-defining-attributes-in-wazuh-indexer-log-files-tomaster branch January 11, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error defining attributes in Wazuh indexer log files
3 participants