# Could not start datafeed for Jobname\[status\_exception\] cannot start datafeed \[datafeed-Jobname\] because job \[Jobname\] is not open

**URL:** <https://discuss.elastic.co/t/could-not-start-datafeed-for-jobname-status-exception-cannot-start-datafeed-datafeed-jobname-because-job-jobname-is-not-open/92104>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 6, 2017, 1:13pm UTC](https://discuss.elastic.co/t/could-not-start-datafeed-for-jobname-status-exception-cannot-start-datafeed-datafeed-jobname-because-job-jobname-is-not-open/92104 "2017-07-06T13:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivasahit](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sivasahit](https://discuss.elastic.co/u/sivasahit)\
**Post date:** [July 6, 2017, 1:13pm UTC](https://discuss.elastic.co/t/could-not-start-datafeed-for-jobname-status-exception-cannot-start-datafeed-datafeed-jobname-because-job-jobname-is-not-open/92104/1 "2017-07-06T13:13:00Z")

</div>

I am getting below errors while trying to create a single metric Job in machine learning tab of Kibana.

Errors:  
Could not start datafeed for Jobname [status\_exception] cannot start datafeed [datafeed-Jobname] because job [Jobname] is not open

Could not start datafeed: [status\_exception] cannot start datafeed [datafeed-Jobname] because job [Jobname] is not open

Note:Earlier it worked properly,but suddenly the above issue started.

I have used the sample data provided by the elastic team.

Can any one help me on this issue.

---

<div class="post-metadata">

**Author:** ![droberts195](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/droberts195/32/17692_2.png) [@droberts195](https://discuss.elastic.co/u/droberts195)\
**Post date:** [July 7, 2017, 10:42am UTC](https://discuss.elastic.co/t/could-not-start-datafeed-for-jobname-status-exception-cannot-start-datafeed-datafeed-jobname-because-job-jobname-is-not-open/92104/2 "2017-07-07T10:42:13Z")

</div>

In terms of the underlying API, a job must first be opened and then, once the job is open the datafeed can be started.

The UI is supposed to perform both actions when you click the "start" button. It seems that something is not working with the initial "open job" step.

To troubleshoot this, first look at the jobs list. What does this say the job status is? For example, it could be "closed", "closing", "failed". The next step depends on what the current status is.

If the job is "closed", try opening it using the REST API - see [https://www.elastic.co/guide/en/elasticsearch/reference/5.5/ml-open-job.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/ml-open-job.html). This will probably fail, but by calling the REST endpoint directly you'll hopefully see a more detailed error message about what's going wrong.

If the job is "failed", try force-closing it using the REST API - see [https://www.elastic.co/guide/en/elasticsearch/reference/5.5/ml-close-job.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/ml-close-job.html) and be sure to use `force=true` on the request. You could also look in the main Elasticsearch log file to see if there is any indication of what caused the job to fail.

---

<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:** [August 4, 2017, 10:42am UTC](https://discuss.elastic.co/t/could-not-start-datafeed-for-jobname-status-exception-cannot-start-datafeed-datafeed-jobname-because-job-jobname-is-not-open/92104/3 "2017-08-04T10:42:22Z")

</div>

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