Not able to start elasticsearch service

 Unit elasticsearch.service entered failed state.
 systemd[1]: elasticsearch.service failed.
 Unregistered Authentication Agent for u (system bus name :1.89340, object path 
 /org/freedesktop/Po
 polkitd[1243]: Registered Authentication Agent for unix-process:21043:460024082 
 (system bus name :1.89341 [/usr/bin/pkttyagent --notify-fd 5
  systemd[1]: Starting Elasticsearch...
 Subject: Unit elasticsearch.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit elasticsearch.service has begun starting up.
 systemd-entrypoint[21049]: Exception in thread "main" 
org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.cli.UserException: u
Aug 28 13:44:12 blp13483011 systemd-entrypoint[21049]: Likely root cause: 
java.nio.file.AccessDeniedException: /etc/elasticsearch/elasticsearch.keystore.tmp

Can anyone suggest where it is getting wrong?

Well, does it have the access rights it complains about? on /etc/elasticsearch, etc.?

What platform is this on? No Docker, etc.?

What are the permissions on the /etc/elasticsearch directory?

Hi,

Thanks for the reply!!!!

It is solved .
$JAVA_HOME path was not correct, that's why the error was coming.
So, i corrected the JAVA_HOME path and the issue got resolved.

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