# Elastics search .bat not opening after downloading

**URL:** https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422
**Category:** Elasticsearch
**Created:** [June 25, 2019, 7:28pm UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422 "2019-06-25T19:28:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ansh\_Chaudhary](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ansh_chaudhary/32/45433_2.png) [@Ansh\_Chaudhary](https://discuss.elastic.co/u/Ansh_Chaudhary)
#### Post date: [June 25, 2019, 7:28pm UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422/1 "2019-06-25T19:28:32Z")

</div>

I have just installed the ELK stack and I am trying to launch the elasticseatch.bat file like it says in the setup guide. However when try to open the file a command script opens for a a split second and then closes. Has anyone had an error like this in the past?

---

<div class="post-metadata">

### Author: ![aravindputrevu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravindputrevu/32/24816_2.png) [@aravindputrevu](https://discuss.elastic.co/u/aravindputrevu)
#### Post date: [June 26, 2019, 3:43am UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422/2 "2019-06-26T03:43:53Z")

</div>

Welcome to Elastic forum!

I believe you are double-clicking the `bat` file. Kindly launch it from a shell/terminal like

> ./elasticsearch.bat

---

<div class="post-metadata">

### Author: ![Ansh\_Chaudhary](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ansh_chaudhary/32/45433_2.png) [@Ansh\_Chaudhary](https://discuss.elastic.co/u/Ansh_Chaudhary)
#### Post date: [June 26, 2019, 3:27pm UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422/3 "2019-06-26T15:27:57Z")

</div>

So when I started it via the command prompt I got this error.

 ![elasticsc1](https://us1.discourse-cdn.com/elastic/original/3X/9/9/99c1a500c09a75fca3e8f3360877dfa7b670a32f.png)

---

<div class="post-metadata">

### Author: ![aravindputrevu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aravindputrevu/32/24816_2.png) [@aravindputrevu](https://discuss.elastic.co/u/aravindputrevu)
#### Post date: [June 28, 2019, 4:17pm UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422/4 "2019-06-28T16:17:04Z")

</div>

As the error message states, elasticsearch is unable to start as the file already exists.

Kindly copy the file and delete from existing location.  
Start `elasticsearch` . If it doesn't start kindly create it again using this [link](https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html#creating-keystore)

---

<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: [July 26, 2019, 4:17pm UTC](https://discuss.elastic.co/t/elastics-search-bat-not-opening-after-downloading/187422/5 "2019-07-26T16:17:09Z")

</div>

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