# Machine Lerning Tab giving error

**URL:** <https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [February 21, 2021, 4:13pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990 "2021-02-21T16:13:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tombal](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Tombal](https://discuss.elastic.co/u/Tombal)\
**Post date:** [February 21, 2021, 4:13pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/1 "2021-02-21T16:13:12Z")

</div>

Hello, After i seperated my ml nodes, i realised my machine learning tab at kibana not working as expected.

Probably it is about some other reason but couldn't find out how to fix this.  
I don't know whether something is deleted.

I disabled ml on each ml node restarted, and rechanged them to true and restarted again to see if any change. "xpack.ml.enabled: true"

When i enter ML tab i see;

```
An error occurred getting the anomaly detection jobs list.
Incorrect HTTP method for uri [/_ml/calendars/] and method [GET], allowed: [POST]

An error occurred getting the data frame analytics list.
no handler found for uri [/_ml/data_frame/analytics/_all?size=1000] and method [GET]

```

Checked from dev\_tools:  
POST \_ml/datafeeds/\_all/\_stop  
"error" : "no handler found for uri [/\_ml/datafeeds/\_all/\_stop?pretty=true] and method [POST]"

Another thing i got stuck is , my node.ml:true and xpack.ml.enabled: true on "ML" nodes but when i check from "GET \_xpack".

```
   "ml" : {
  "available" : true,
  "enabled" : false,
  "native_code_info" : {
    "version" : "N/A",
    "build_hash" : "N/A"
  }
```

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [February 21, 2021, 5:37pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/2 "2021-02-21T17:37:58Z")

</div>

In addition to setting  
`xpack.ml.enabled: true`

You also need to make sure the node has the ml role assigned to it:  
`node.roles: [ml]`

See: [Machine learning settings in Elasticsearch | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-settings.html)

Have you done this?

---

<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:** [February 21, 2021, 5:55pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/3 "2021-02-21T17:55:57Z")

</div>

I am pretty sure you have `xpack.ml.enabled: false` on the node that Kibana is connected to.

You need `xpack.ml.enabled: true` on all ML nodes, all master eligible nodes and all nodes that a client (e.g. Kibana) might call an ML API on. By far the easiest way to ensure this is just to have `xpack.ml.enabled: true` on every node in the cluster when you are using ML in any way.

---

<div class="post-metadata">

**Author:** ![Tombal](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Tombal](https://discuss.elastic.co/u/Tombal)\
**Post date:** [February 21, 2021, 6:20pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/4 "2021-02-21T18:20:41Z")

</div>

Hello Rich,  
Of course node.role is set.

node.data: false  
node.master: false  
node.ingest: false  
node.ml: true  
xpack.ml.enabled: true

---

<div class="post-metadata">

**Author:** ![Tombal](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Tombal](https://discuss.elastic.co/u/Tombal)\
**Post date:** [February 21, 2021, 6:25pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/5 "2021-02-21T18:25:29Z")

</div>

Hello Droberts,  
It is possible my kibana.yml hosts lists include all elastic hosts 12 machines but only 3 is ml and xpack.ml.enabled: true is only on ml nodes. I will make the changes on others and check again.

---

<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:** [March 21, 2021, 6:26pm UTC](https://discuss.elastic.co/t/machine-lerning-tab-giving-error/264990/6 "2021-03-21T18:26:14Z")

</div>

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