-
Notifications
You must be signed in to change notification settings - Fork 97
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
Error defining attributes in Wazuh indexer log files #1971
Comments
Research SummaryI was carrying out various tests and I was not able to replicate these errors in the logs, outside of the OVA, creating VMs from the OVA always gave me an error, but when I install the service directly by packages or using Wazuh installation assistant these logs did not appear. I generated a new OVA in the 4.4 branch, and with this new OVA the errors do not appear in the logs:
ConclusionApparently in the process of creating the OVA we had some problem that generated the errors in the logs, we will have to wait for the creation of the OVA alpha 2 or RC1 to validate that the errors do not appear |
On hold by Alpha2 tests. |
New tests are carried out with the OVA created for Alpha 2 and the error is detected again in the logs: A new OVA is re-made locally using the generate_ova.sh script and the error does not exist: [root@wazuh-server ~]# journalctl -r -u wazuh-indexer.service | grep -i -E "error|critical|warning|fatal"
dic 26 12:54:47 wazuh-server systemd-entrypoint[734]: WARNING: System::setSecurityManager will be removed in a future release
dic 26 12:54:47 wazuh-server systemd-entrypoint[734]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
dic 26 12:54:47 wazuh-server systemd-entrypoint[734]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
dic 26 12:54:47 wazuh-server systemd-entrypoint[734]: WARNING: A terminally deprecated method in java.lang.System has been called
dic 26 12:54:46 wazuh-server systemd-entrypoint[734]: WARNING: System::setSecurityManager will be removed in a future release
dic 26 12:54:46 wazuh-server systemd-entrypoint[734]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
dic 26 12:54:46 wazuh-server systemd-entrypoint[734]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
dic 26 12:54:46 wazuh-server systemd-entrypoint[734]: WARNING: A terminally deprecated method in java.lang.System has been called The unattended script is also tested in a VM with Centos 7 and it works correctly. An additional test was carried out on a Centos 7 VM using the provision.sh script and the installation was also detected without problems: [root@centos72 ova]# journalctl -r -u wazuh-indexer.service | grep -i -E "error|critical|warning|fatal"
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: System::setSecurityManager will be removed in a future release
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: A terminally deprecated method in java.lang.System has been called
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: System::setSecurityManager will be removed in a future release
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/wazuh-indexer/lib/opensearch-2.4.1.jar)
dic 26 17:52:50 wazuh-server systemd-entrypoint[15643]: WARNING: A terminally deprecated method in java.lang.System has been called
A new OVA is created again to confirm this while I analyze where this error could be generated: https://ci.wazuh.info/view/Packages/job/Packages_Builder_OVA/185/console I'm also trying to replicate the process with the AMI used to create the OVA on EC2, although I still have no conclusions about what can make the error |
Update ReportTasks
Next steps:
|
Update ReportTasks
[root@wazuh-server ~]# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.3.0"
WAZUH_REVISION="40310"
WAZUH_TYPE="server"
[root@wazuh-server ~]# journalctl -r -u wazuh-indexer.service | grep -i -E "error|critical|warning|fatal"
dic 28 12:27:27 wazuh-server systemd-entrypoint[901]: WARNING: All illegal access operations will be denied in a future release
dic 28 12:27:27 wazuh-server systemd-entrypoint[901]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
dic 28 12:27:27 wazuh-server systemd-entrypoint[901]: WARNING: Please consider reporting this to the maintainers of io.protostuff.runtime.PolymorphicThrowableSchema
dic 28 12:27:27 wazuh-server systemd-entrypoint[901]: WARNING: Illegal reflective access by io.protostuff.runtime.PolymorphicThrowableSchema (file:/usr/share/wazuh-indexer/plugins/opensearch-anomaly-detection/protostuff-runtime-1.7.4.jar) to field java.lang.Throwable.cause
dic 28 12:27:27 wazuh-server systemd-entrypoint[901]: WARNING: An illegal reflective access operation has occurred
Conlusion
|
It goes to on Hold due to priority over this issue |
In progress again: Testing OVAs with Opensearch packages |
Update ReportTasks
[root@wazuh-server ~]# systemctl start opensearch
[root@wazuh-server ~]# systemctl start opensearch-dashboards
[root@wazuh-server ~]# journalctl -r -u opensearch.service | grep -i -E "error|critical|warning|fatal"
ene 03 14:41:15 wazuh-server systemd-entrypoint[429]: WARNING: System::setSecurityManager will be removed in a future release
ene 03 14:41:15 wazuh-server systemd-entrypoint[429]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
ene 03 14:41:15 wazuh-server systemd-entrypoint[429]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/opensearch/lib/opensearch-2.4.1.jar)
ene 03 14:41:15 wazuh-server systemd-entrypoint[429]: WARNING: A terminally deprecated method in java.lang.System has been called
ene 03 14:41:14 wazuh-server systemd-entrypoint[429]: WARNING: System::setSecurityManager will be removed in a future release
ene 03 14:41:14 wazuh-server systemd-entrypoint[429]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
ene 03 14:41:14 wazuh-server systemd-entrypoint[429]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/opensearch/lib/opensearch-2.4.1.jar)
ene 03 14:41:14 wazuh-server systemd-entrypoint[429]: WARNING: A terminally deprecated method in java.lang.System has been called
|
From 3 points to 5 points. |
The error was found again in the OVA of RC1wazuh/wazuh#16148 (comment) |
UPDATEApply possible fix by deleting logs before exporting OVA. |
UpdateFixed error from the last comment in 7f6d88a. Generate new OVA locally and check that the mentioned error does not appear and that everything is running correctly.
|
Description
During the OVA v4.4.0 Alpha 1 analysis (wazuh/wazuh#15513 (comment)), the following error log was found in the Wazuh indexer
journalctl
output:When checking these files, they exist with the following permissions:
Apparently, these error logs do not always appear, so it is necessary to identify when these logs appear, and if it is a problem with the SPECS files.
Tasks
Validation
The text was updated successfully, but these errors were encountered: