Elastic Doesnt work after enabling security settings on ubuntu

Caused by: java.lang.reflect.InvocationTargetException

Caused by: org.elasticsearch.ElasticsearchException: failed to initialize a TrustManagerFactory

Caused by: java.nio.file.AccessDeniedException: /etc/elasticsearch/elastic-certificates.p12
[2019-11-06T18:59:19,626][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]

Caused by: java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]

Caused by: java.lang.reflect.InvocationTargetException

Caused by: org.elasticsearch.ElasticsearchException: failed to initialize a TrustManagerFactory

Caused by: java.nio.file.AccessDeniedException: /etc/elasticsearch/elastic-certificates.p12

It says AccessDenied exception for -

java.nio.file.AccessDeniedException: /etc/elasticsearch/elastic-certificates.p12

Can you check permission of this file.

Thanks

root@elastic-trial:/usr/share/elasticsearch/bin# ls -l /etc/elasticsearch/elastic-certificates.p12
-rw------- 1 root elasticsearch 3443 Nov 6 17:47 /etc/elasticsearch/elastic-certificates.p12

this is what I get when I look for permissions

change ownership as mentioned below and try again -

chown elasticsearch /etc/elasticsearch/elastic-certificates.p12

you need to be root to run this command.

Thanks a lot .. it helped

And also this link : https://www.server-world.info/en/note?os=CentOS_7&p=elasticstack7&f=12

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.