# ML job error : Failed to launch autodetect for job

**URL:** <https://discuss.elastic.co/t/ml-job-error-failed-to-launch-autodetect-for-job/260243>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [January 5, 2021, 4:49pm UTC](https://discuss.elastic.co/t/ml-job-error-failed-to-launch-autodetect-for-job/260243 "2021-01-05T16:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [January 6, 2021, 9:30pm UTC](https://discuss.elastic.co/t/ml-job-error-failed-to-launch-autodetect-for-job/260243/7 "2021-01-06T21:30:00Z")

</div>

Please see this for the possible solution:

> [@Machine Learning: Could not create job](https://discuss.elastic.co/t/machine-learning-could-not-create-job/122037/4):
>
> 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 cou…

---

_[View the full topic](https://discuss.elastic.co/t/ml-job-error-failed-to-launch-autodetect-for-job/260243)._
