# Not able to start machine learning job

**URL:** <https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [January 9, 2020, 4:36pm UTC](https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467 "2020-01-09T16:36:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SathishPrakasam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathishprakasam/32/46290_2.png) [@SathishPrakasam](https://discuss.elastic.co/u/SathishPrakasam)\
**Post date:** [January 9, 2020, 4:36pm UTC](https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467/1 "2020-01-09T16:36:56Z")

</div>

We are configuring a ML job in our cluster.  
After creating the ML job, tried to start the ML jobs and am getting below error,

Caused by: java.nio.file.NoSuchFileException: /tmp/elasticsearch-6776145032467540758/limitconfig1253236941500878778.conf  
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:?]  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]  
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:?]  
at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0\_171]  
at java.nio.file.Files.createFile(Files.java:632) ~[?:1.8.0\_171]  
at java.nio.file.TempFileHelper.create(TempFileHelper.java:138) ~[?:1.8.0\_171]  
at java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:161) ~[?:1.8.0\_171]  
at java.nio.file.Files.createTempFile(Files.java:852) ~[?:1.8.0\_171]  
at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectBuilder.buildLimits(AutodetectBuilder.java:274) ~[?:?]  
at org.elasticsearch.xpack.ml.job.process.autodetect.AutodetectBuilder.build(AutodetectBuilder.java:182) ~[?:?]  
at org.elasticsearch.xpack.ml.job.process.autodetect.NativeAutodetectProcessFactory.createNativeProcess(NativeAutodetectProcessFactory.java:109) ~[?:?]

Looks like it’s a known error, the solution suggested is to update the -Djava.io.tempdir to a constant value, after the change restarted master nodes to take effect.  
In jvm process tempdir is updated as /tmp/elasticsearch-4034599267312088687.  
However while starting the ML job its complaining a different directory elasticsearch-6776145032467540758/limitconfig1253236941500878778.conf is not available.

Can someone help me in cracking this issue?

---

<div class="post-metadata">

**Author:** ![SathishPrakasam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathishprakasam/32/46290_2.png) [@SathishPrakasam](https://discuss.elastic.co/u/SathishPrakasam)\
**Post date:** [January 10, 2020, 10:08am UTC](https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467/2 "2020-01-10T10:08:11Z")

</div>

After updating ES\_TMPDIR=/tmp/elasticsearch-4034599267312088687 i managed to get rid of the directory.  
But everytime its looking for random limitconfig file For example first time when i started the job its looking in the directory /tmp/elasticsearch-4034599267312088687 for the file limitconfig4206780411356268755.conf.  
Second time when i started the ML job its looking for the file limitconfig7936535717952102862.conf inside the directory /tmp/elasticsearch-4034599267312088687.

Can someone please help on this.

---

<div class="post-metadata">

**Author:** ![edsavage](https://avatars.discourse-cdn.com/v4/letter/e/c67d28/32.png) [@edsavage](https://discuss.elastic.co/u/edsavage)\
**Post date:** [January 15, 2020, 2:57pm UTC](https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467/3 "2020-01-15T14:57:41Z")

</div>

Hi Sathishkumar,

yes, I will pick this query up and ensure you receive a response to it shortly.

In the meantime could you please obtain, package up and provide the log files from every ML node in the cluster. Sending to me using a direct message on here is secure and a good way of doing this.

Best wishes,

Ed

---

<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:** [February 12, 2020, 2:57pm UTC](https://discuss.elastic.co/t/not-able-to-start-machine-learning-job/214467/4 "2020-02-12T14:57:44Z")

</div>

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