Java access denied when starting elasticsearch

Hi,

I'm following this tutorial to install ELK stack How to install Elastic SIEM and Elastic EDR - On The Hunt but after adding certificates, I try to restart the service but I get this:

I downloaded elastic today on my Linux machine which I try to set everything up on. I have this version:
/usr/share/elasticsearch/bin/elasticsearch -V
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Version: 8.5.1, Build: deb/c1310c45fc534583afe2c1c03046491efba2bba2/2022-11-09T21:02:20.169855900Z, JVM: 19.0.1

My java version:
java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment (build 17.0.5+8-Debian-2)
OpenJDK 64-Bit Server VM (build 17.0.5+8-Debian-2, mixed mode, sharing)

Anyone have some thoughts how I can fix this?

Hi @johnny1891 The problem with following on outside blog tutorial is they do not get updated and that blog is / was not written for 8.x

8.X Configured Authentication and TLS on elasticsearch by default... so the vast majority of that blog is out of date!

8.x Elastic and Kibana does it all automatically you do not need to set any setting except perhaps 'in the

elastcisearch.yml
network.host: <elasticsearch_ip>

and kibana.yml
server.host: "0.0.0.0"

If you just followed the default install it would all work magically.

My Suggestion would be to clean out everything you have done, including the data directories follow the Official Documentation

and Kibana

1 Like

Thank you, that worked bettter!