# Can not create Machine learning job in Kibana

**URL:** <https://discuss.elastic.co/t/can-not-create-machine-learning-job-in-kibana/247622>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [September 5, 2020, 8:54am UTC](https://discuss.elastic.co/t/can-not-create-machine-learning-job-in-kibana/247622 "2020-09-05T08:54:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![le\_ba\_nam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_ba_nam/32/75148_2.png) [@le\_ba\_nam](https://discuss.elastic.co/u/le_ba_nam)\
**Post date:** [September 5, 2020, 8:55am UTC](https://discuss.elastic.co/t/can-not-create-machine-learning-job-in-kibana/247622/1 "2020-09-05T08:55:00Z")

</div>

I tried to create machine learning job in Kibana, but I got an error when start datafeed, so I can start any job. What is problem?  
I met this error in both two disperate server. I wonder whether I miss something which shoud be installed?  
Thanks.

```auto
Error: "{\"error\":{\"root_cause\":[{\"type\":\"exception\",\"reason\":\"Unexpected job state [failed] while waiting for job to be opened\"}],\"type\":\"exception\",\"reason\":\"Unexpected job state [failed] while waiting for job to be opened\"},\"status\":500}"
    at Object.errorNotify [as error] (http://10.58.71.184:9988/bundles/ml.bundle.js:8:54192)
    at http://10.58.71.184:9988/bundles/ml.bundle.js:3:360661
    at Array.forEach (<anonymous>)
    at showResults (http://10.58.71.184:9988/bundles/ml.bundle.js:3:360594)
    at http://10.58.71.184:9988/bundles/ml.bundle.js:3:358974

```

---

<div class="post-metadata">

**Author:** ![sophie\_chang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sophie_chang/32/18008_2.png) [@sophie\_chang](https://discuss.elastic.co/u/sophie_chang)\
**Post date:** [September 7, 2020, 8:46am UTC](https://discuss.elastic.co/t/can-not-create-machine-learning-job-in-kibana/247622/2 "2020-09-07T08:46:35Z")

</div>

Hi @le_ba_nam

Before starting the datafeed, the code will try to open the job. The error message from the job open step should contain more useful information. To narrow down troubleshooting, please try to just open/close the job; rather than start the datafeed as well.

Where there any Kibana UI toast error messages when you tried to start/open the job?  
Is the job state set to `FAILED` in the job list? If so, please try to force close it and open it again.  
Are there any error messages in the Job Messages tab?  
Do you have access to the elasticsearch logs? and if you do, are there any error messages which explain why the job entered a failed state.

To help with any further troubleshooting, please let us know what version of elasticsearch you are using.

Regards  
Sophie

---

<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:** [October 5, 2020, 8:46am UTC](https://discuss.elastic.co/t/can-not-create-machine-learning-job-in-kibana/247622/3 "2020-10-05T08:46:40Z")

</div>

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