# The Elasticsearch 2.4.1 (elasticsearch-service-x64) service terminated with the following service-specific error: Incorrect function

**URL:** <https://discuss.elastic.co/t/the-elasticsearch-2-4-1-elasticsearch-service-x64-service-terminated-with-the-following-service-specific-error-incorrect-function/151314>\
**Category:** Elasticsearch\
**Created:** [October 6, 2018, 11:11am UTC](https://discuss.elastic.co/t/the-elasticsearch-2-4-1-elasticsearch-service-x64-service-terminated-with-the-following-service-specific-error-incorrect-function/151314 "2018-10-06T11:11:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KevinB](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@KevinB](https://discuss.elastic.co/u/KevinB)\
**Post date:** [October 6, 2018, 11:11am UTC](https://discuss.elastic.co/t/the-elasticsearch-2-4-1-elasticsearch-service-x64-service-terminated-with-the-following-service-specific-error-incorrect-function/151314/1 "2018-10-06T11:11:54Z")

</div>

I an running Windows 10 on a 64 bit machine.

I am trying to start the elasticsearch service.

I get this message in the log

The data area passed to a system call is too small.

Anyone help?

I am running bin\service start

( should it be bin\elastic-search-service start ? - I don't have this batch file?)

I have JAVA\_HOME set to C:\Program Files (x86)\Java\jdk1.7.0\_79  
(I tried C:\Program Files (x86)\Java\jdk1.7.0\_79\jre)

Nothing I will allow it to run.

Why do I need this to run TFS in windows.  
I didn't on my previous machine.  
Is there any way I can run TFS without it?

---

<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:** [November 3, 2018, 11:22am UTC](https://discuss.elastic.co/t/the-elasticsearch-2-4-1-elasticsearch-service-x64-service-terminated-with-the-following-service-specific-error-incorrect-function/151314/2 "2018-11-03T11:22:34Z")

</div>

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