# Machine Learning: Could not create job

**URL:** <https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [March 1, 2018, 11:00am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037 "2018-03-01T11:00:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NOUR](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@NOUR](https://discuss.elastic.co/u/NOUR)\
**Post date:** [March 1, 2018, 11:00am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/1 "2018-03-01T11:00:50Z")

</div>

hello every one,

In fact i use the X pack 6.2.2 and i can't create any type of job(simple,adv,multi...)  
Can someone help me?

Thanks,

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50a0db5ff07a040695c21918f98c3d7e0f324edc.PNG)  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e385201b0a9a8846b240bb97db058eaa473609b7.PNG)  
NOUR

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [March 2, 2018, 12:36am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/2 "2018-03-02T00:36:37Z")

</div>

Hi Nour - can you look into elasticsearch.log file during the time that this error occurs? There's likely more detail there...

Post the relevant section of that log here...

---

<div class="post-metadata">

**Author:** ![NOUR](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@NOUR](https://discuss.elastic.co/u/NOUR)\
**Post date:** [March 5, 2018, 9:30am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/3 "2018-03-05T09:30:49Z")

</div>

Hi @richcollier,  
thanks for your answer,  
Well , i check the log file

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/2/9/2916a6b6a08d946aa800a4224e2ba30fd49c674e.PNG)

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [March 6, 2018, 3:52am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/4 "2018-03-06T03:52:26Z")

</div>

Communications between the elasticsearch JVM and the autodetect process (which ML runs) is done via named pipes, these pipes are created in /tmp. In the log there is a message that you posted, it mentions that a file in ES\_HOME/tmp cannot be read.

This /tmp directory must be readable, if it is mounted with no\_exec then autodetect cannot start.

/tmp is the default temporary directory the JVM uses but you can change this with the JVM option:

`-Djava.io.tmpdir=/var/data/elasticsearch/tmp`

You could try adding that setting to ES\_HOME/config/jvm.options without a suitable choice of tmpdir. This will required a restart of elasticsearch

---

<div class="post-metadata">

**Author:** ![NOUR](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@NOUR](https://discuss.elastic.co/u/NOUR)\
**Post date:** [March 6, 2018, 8:37am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/5 "2018-03-06T08:37:01Z")

</div>

Hello,

Finaly, it's work .  
thank your @richcollier for the solution.  
You helped me a lot .

NOUR.

---

<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:** [April 3, 2018, 8:37am UTC](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/6 "2018-04-03T08:37:11Z")

</div>

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