# Cannot start ElasticSearch

**URL:** <https://discuss.elastic.co/t/cannot-start-elasticsearch/129779>\
**Category:** Elasticsearch\
**Created:** [April 27, 2018, 7:21am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779 "2018-04-27T07:21:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![No\_Executable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_executable/32/29075_2.png) [@No\_Executable](https://discuss.elastic.co/u/No_Executable)\
**Post date:** [April 27, 2018, 7:21am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/1 "2018-04-27T07:21:20Z")

</div>

We have previously set up ELKStack and it has worked without error for several weeks but since yesterday we cannot start ElasticSearch. Logstash, Filebeat and Kibana works like they should.

But when we try to start ES we get an instant error saying "\Common was unexpected at this time." in the cmd prompt.

We have not made any conscious changes to any part of the configuration and we suspect a Windows update is to blame.

Could this be it and if so, what should we do to fix it?

---

<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:** [April 27, 2018, 7:37am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/2 "2018-04-27T07:37:15Z")

</div>

Please share the command you are running, the output it provides, any logs and the version you are running.

---

<div class="post-metadata">

**Author:** ![No\_Executable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_executable/32/29075_2.png) [@No\_Executable](https://discuss.elastic.co/u/No_Executable)\
**Post date:** [April 27, 2018, 7:40am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/3 "2018-04-27T07:40:32Z")

</div>

Running ES 6.2.2

trying to launch the elasticsearch.bat file gives us this:

```
C:\Users\testuser\Desktop\ElasticSearch\elasticsearch-6.2.2\bin>elasticsearch

\Common was unexpected at this time.

```

We do not get any logs.

Issue persists on different users with copies of the same config.

---

<div class="post-metadata">

**Author:** ![No\_Executable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_executable/32/29075_2.png) [@No\_Executable](https://discuss.elastic.co/u/No_Executable)\
**Post date:** [May 2, 2018, 7:25am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/4 "2018-05-02T07:25:51Z")

</div>

It was the latest Java update that caused the issue. Reverted to older version and it worked, hope for a fix.

---

<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:** [May 2, 2018, 8:31am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/5 "2018-05-02T08:31:50Z")

</div>

What version did you upgrade to and from\>

---

<div class="post-metadata">

**Author:** ![No\_Executable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/no_executable/32/29075_2.png) [@No\_Executable](https://discuss.elastic.co/u/No_Executable)\
**Post date:** [May 2, 2018, 8:57am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/6 "2018-05-02T08:57:28Z")

</div>

We ran it on Java 8 Update 161 and updated to 171, which didn't work, so we reverted to 161.

---

<div class="post-metadata">

**Author:** ![teoman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teoman/32/32372_2.png) [@teoman](https://discuss.elastic.co/u/teoman)\
**Post date:** [May 2, 2018, 3:59pm UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/7 "2018-05-02T15:59:40Z")

</div>

I am having same issue on WinServer 2016.  
JAVA\_HOME=C:\Program Files\Java\jdk-10.0.1

---

<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:** [May 2, 2018, 10:40pm UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/8 "2018-05-02T22:40:07Z")

</div>

We don't support Java 10 at this stage.

---

<div class="post-metadata">

**Author:** ![TomReynaert](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@TomReynaert](https://discuss.elastic.co/u/TomReynaert)\
**Post date:** [May 4, 2018, 8:56am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/9 "2018-05-04T08:56:21Z")

</div>

Hi,  
I had the same issue today, but for me it wasnt really caused by the Java version.  
In my PATH environment variable on windows i had something like "C:\Program Files (x86)\Common Files\Oracle\Java\javapath" to point to the java version.  
After replacing this with the direct path to the JRE bin directory, it started fine for me even with Java 8u172.

Grts,

Tom

---

<div class="post-metadata">

**Author:** ![RyanOConnor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryanoconnor/32/31308_2.png) [@RyanOConnor](https://discuss.elastic.co/u/RyanOConnor)\
**Post date:** [May 17, 2018, 7:53am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/10 "2018-05-17T07:53:50Z")

</div>

Thanks Tom, I had the same problem after updating to Java 8 r171. I had the same path in my system environment variables, but found java.exe in my windows folder. So I simply deleted C:\Program Files (x86)\Common Files\Oracle\Java\javapath from my PATH and elasticsearch fires up now.

Annoyingly I arrived at this situation because I didn't have a recent enough version of Java for elastic search initially!

---

<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:** [June 14, 2018, 7:53am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/11 "2018-06-14T07:53:52Z")

</div>

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