# Not able to start elasticsearch service

**URL:** <https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761>\
**Category:** Elasticsearch\
**Created:** [August 28, 2020, 12:46pm UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761 "2020-08-28T12:46:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [August 28, 2020, 12:46pm UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/1 "2020-08-28T12:46:58Z")

</div>

```
 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
```

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [August 28, 2020, 12:48pm UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/2 "2020-08-28T12:48:19Z")

</div>

Can anyone suggest where it is getting wrong?

---

<div class="post-metadata">

**Author:** ![Steve\_Mushero](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_mushero/32/22441_2.png) [@Steve\_Mushero](https://discuss.elastic.co/u/Steve_Mushero)\
**Post date:** [August 29, 2020, 6:46am UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/3 "2020-08-29T06:46:21Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2020, 2:07am UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/4 "2020-08-31T02:07:20Z")

</div>

> [@nidhi1](#):
>
> ```auto
> java.nio.file.AccessDeniedException: /etc/elasticsearch/elasticsearch.keystore.tmp
> 
> ```

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

---

<div class="post-metadata">

**Author:** ![nidhi1](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nidhi1](https://discuss.elastic.co/u/nidhi1)\
**Post date:** [September 11, 2020, 12:53pm UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/5 "2020-09-11T12:53:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2020, 12:53pm UTC](https://discuss.elastic.co/t/not-able-to-start-elasticsearch-service/246761/6 "2020-10-09T12:53:18Z")

</div>

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