# Elasticsearch-service-x64 failed starting

**URL:** <https://discuss.elastic.co/t/elasticsearch-service-x64-failed-starting/50687>\
**Category:** Elasticsearch\
**Created:** [May 23, 2016, 9:57am UTC](https://discuss.elastic.co/t/elasticsearch-service-x64-failed-starting/50687 "2016-05-23T09:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonard\_Larios\_Chan](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@Leonard\_Larios\_Chan](https://discuss.elastic.co/u/Leonard_Larios_Chan)\
**Post date:** [May 23, 2016, 9:57am UTC](https://discuss.elastic.co/t/elasticsearch-service-x64-failed-starting/50687/1 "2016-05-23T09:57:06Z")

</div>

Hi all,

I'm running windows server 2012 and I can't seem to get the service running. It throws me a "refer to service-specific error code 1"

I have pointed JAVA\_HOME to the proper environment C:\Program Files\Java\jdk1.8.0\_91 is what I have.

What am I not doing right?

It will install but when I go to the service manager it will not start.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [May 24, 2016, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-service-x64-failed-starting/50687/2 "2016-05-24T13:17:43Z")

</div>

Hi @Leonard_Larios_Chan,

very hard to tell what's going wrong. Can you check the logs? You can also try to start Elasticsearch normally (i.e. not as a service) from the command line. This should reveal the root cause.

You can also check the reference docs on [running ES as a Windows service](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service-win.html) and the [directory layout](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html).

Daniel

---

<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 5, 2017, 10:49pm UTC](https://discuss.elastic.co/t/elasticsearch-service-x64-failed-starting/50687/3 "2017-07-05T22:49:30Z")

</div>


