# Linux OS : Failed to create native process factories for Machine Learning

**URL:** <https://discuss.elastic.co/t/linux-os-failed-to-create-native-process-factories-for-machine-learning/134758>\
**Category:** Elasticsearch\
**Created:** [June 6, 2018, 8:28am UTC](https://discuss.elastic.co/t/linux-os-failed-to-create-native-process-factories-for-machine-learning/134758 "2018-06-06T08:28:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dkyle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkyle/32/59114_2.png) [@dkyle](https://discuss.elastic.co/u/dkyle)\
**Post date:** [June 6, 2018, 9:25am UTC](https://discuss.elastic.co/t/linux-os-failed-to-create-native-process-factories-for-machine-learning/134758/2 "2018-06-06T09:25:23Z")

</div>

Hi

> FileNotFoundException[/tmp/elasticsearch/controller\_log\_24991 (No such file or directory)];

Can you check if the directory `/tmp/elasticsearch` exists please. The user who you run elasticsearch as should have read, write and execute permission on that directory (mode 700), creating that directory may well solve your problem. Alternatively you can change the temporary directory elasticsearch uses by exporting the `ES_TMPDIR` variable before staring elasticsearch

> export ES\_TMPDIR=/my/temp/dir

I'd like to understand how this error happened. Which version of Linux and Elasticsearch are you using? Was elasticsearch running successfully before you installed x-pack?

Thanks

---

_[View the full topic](https://discuss.elastic.co/t/linux-os-failed-to-create-native-process-factories-for-machine-learning/134758)._
