ubuntu 22.04 VM
elasticsearch,kibana,filebeat8.4.1 ,elastalert,suricata
i have this error in the log of elasticsearch when i try to start elasticsearch it failed to start
Failed to get the temporary directory; falling back to: /tmp
[2022-09-23T20:38:58,847][ERROR][o.e.b.Elasticsearch ] [elastic] fatal exception while booting Elasticsearch
java.security.AccessControlException: access denied ("java.io.FilePermission" "/tmp" "read")
May be you need to check what user is being used for Elasticsearch. Try find the user from the Elasticsearch service unit file. and then run the command provided by stephenb from that user. you can simply do
sudo -u {USER} chmod 1777 /tmp
@Akhtar_Zaman thanks for the response
how to check the user used by elastic what cmd?
I think you mean the user that i used to access elastic from kibana is "elastic"
i try to do what you told but this is the result
elastic@elastic:~$ sudo -u elastic chmod 1777 /tmp
chmod: changing permissions of '/tmp': Operation not permitted
No but i used a solution last month it worked with me but now when I used it it did not work see if it work for you
the solution is to decrease the the amount of the ram here , you will find 4g change it to 1g or 512m
to enter to this file of configyou can use : sudo nano /etc/elasticsearch/jvm.options
then save the config and restart elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.