Can not create Machine learning job in Kibana

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?

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] (
    at Array.forEach (<anonymous>)
    at showResults (

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.


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