-
Notifications
You must be signed in to change notification settings - Fork 96
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
Bug on wazuh-indexer startup while installing Wazuh 4.3 on Ubuntu 20 #1522
Comments
Hello @jimmynarula I have migrated the issue to the wazuh-packages repository, since it is in this repository where the Wazuh indexer package is created and configured, the url of the issue you opened in the wazuh repository will automatically redirect to this issue. Regarding the error, thanks for the contribution of the fix, we will investigate it and consider if we modify the default path of the java temporary directory. About the cause, can you tell me something about your environment? Do you have Elasticsearch or Cassandra installed on the system? Was it a clean environment? From what I have been able to investigate, the error I will continue to investigate this issue while I wait for your response. Regards, Raúl. |
Hello @rauldpm Thanks for looking into this bug, I would like to confirm that I was using a clean install of Wazuh 4.3, there was no Elasticsearch or Cassandra was already installed in the server because it was a fresh new EC2. |
Hello @jimmynarula Could you tell me which ami you are using (ami id) to see if I can reproduce the problem on the same system? Also, i could you run this command and show me the full output?
An example of output within the file would be the following:
By default, the temporary directory that java assigns during execution is /tmp/ as you can see in the output that I have shared:
Once we know the directory where it was trying to mount the directory, we need to check if it has the noexec flag set, this can be checked with the command
I wait your answer. |
Hello @rauldpm We are using the following API for our WAZUH server: I tried to find the log you requested but it fetched no results back. Do you want me to look anywhere else? I also check the permissions on /tmp/ folder and it's same as you have mentioned in the last message and after that I checked for noexec flag set, and I found that /tmp/ folder has been set as one.
Regards, |
Hello @jimmynarula Using the AMI that you have indicated, I have been able to reproduce your problem, effectively, the partition mounted in /tmp has the noexec flag, which prevents a correct installation since certain files are downloaded in that directory. Removing the noexec flag from fstab, leaving it as follows:
The installation carried out with the installer assistant has been satisfactory and functional. It is true that for security it is possible that the /tmp directory has this flag to avoid unwanted execution, having said that, I have opened this issue: #1539, to carry out a check in that directory and change it to avoid this problem without affecting this security measure that the user may have done if necessary. That said, the solution to your problem would be to remove the noexec flag from the /tmp directory (by editing the fstab file) or by changing the directory that java uses as you indicated at the beginning. Regards, Raúl. |
Hello @rauldpm Thanks for your help. Regards, |
I proceed to close this issue, please don't hesitate to re-open it. |
I am continuously facing a bug while installing the Wazuh 4.3 release. I have tried both Wazuh assistant & step by step installation methods. In both cases, the Wazuh-Indexer service was unable to get started. Later, when I checked the log I found the following error in the logs:
After a bit of research, I found a temporary fix by updating the following value in the file
/etc/wazuh-indexer/jvm.options
-Djava.io.tmpdir=/var/log/wazuh-indexer
The text was updated successfully, but these errors were encountered: