# Machine Learning in Kibana - Jobs list could not be retrieved

**URL:** https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682
**Category:** Kibana
**Created:** [July 3, 2017, 6:29pm UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682 "2017-07-03T18:29:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jacaraba](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jacaraba](https://discuss.elastic.co/u/jacaraba)
#### Post date: [July 3, 2017, 6:29pm UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/1 "2017-07-03T18:29:02Z")

</div>

Hi guys,

I have installed Elasticsearch 5.4.3 and Kibana 5.4.3 in the same server. They are communicating through their ip address at ports 9200 and 5601 respectively. Kibana is being accessed behind a proxy.

I have created multiple machine learnings jobs from Elasticsearch ML APIs, and through Kibana’s UI. However, at the time of listing the jobs I get errors such as “Jobs list could not be retrieved”, “undefined”, “datafeeds list could not be retrieved”, “Job details could not be retrieved”.

I need to note that I have created jobs from kibana’s UI, but they cannot be  
retrieved at the Machine Learning Tab, even when they can be listed after created in elasticsearch. I am logging in into Kibana as “elastic” superuser, and have also tried “kibana”; but both of them raise the same error.

Based on some Google forums I have attempted the below  
implementations:

- Restart the cluster: I have restarted many times and there is no difference. [https://www.elastic.co/guide/en/x-pack/current/ml-troubleshooting.html](https://www.elastic.co/guide/en/x-pack/current/ml-troubleshooting.html)

- Possible basePath error at kibana’s configuration: This link ([https://github.com/elastic/kibana/issues/11950](https://github.com/elastic/kibana/issues/11950)) represents the same issue that I have. However, they mention that the issue was fixed in version 5.4.1. I am running kibana behind a proxy and I cannot remove the basePath “/kibana” because it would not be practical for a production proxy.  
Related to this advice, I found some logs that might be interesting.  
**Note:** The only errors that I see at /var/log/kibana/kibana.stdout is a 404 request where there is a double “/” at the url.

{"type":"response","@timestamp":"2017-07-03T16:45:27Z","tags":[],"pid":11938,"method":"get","statusCode":404,"req":{"url":"//api/ml/datafeeds","method":"get","headers":{"host":"ip\_address:5601","accept":"application/json,  
text/plain,  
_/_","kbn-system-api":"true","kbn-version":"5.4.3","user-agent":"Mozilla/5.0  
(X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115  
Safari/537.36","referer":"[https://www-proxy/kibana/app/ml","accept-encoding":"gzip](https://www-proxy/kibana/app/ml%22,%22accept-encoding%22:%22gzip),  
deflate, br","accept-language":"en-US,en;q=0.8","x-forwarded-for":"  
ip\_address","x-forwarded-host":"www-proxy ","x-forwarded-server":"www-proxy  
","connection":"Keep-Alive"},"remoteAddress":"  
ip\_address ","userAgent":" ip\_address ","referer":"[https://www-proxy](https://www-proxy) /kibana/app/ml"},"res":{"statusCode":404,"responseTime":10,"contentLength":9},"message":"GET //api/ml/datafeeds  
404 10ms - 9.0B"}

- Used the Dev Tools Tab from Kibana’s UI and typed: “ **GET \_xpack/ml/anomaly\_detectors/** ” and was able to view all the machine learning jobs that are listed in elasticsearch without any problem.

{  
"count": 4,  
"jobs": [  
{  
"job\_id": "apache\_logs\_3july",  
"job\_type": "anomaly\_detector",  
"description": "example advanced",  
"create\_time": 1499091675682,  
"analysis\_config": {  
"bucket\_span": "30m",  
...........

I would like to get some advice related to this issue. Please let me know if I need to provide more information. More configuration details can be sent as requested.

Thanks in advance,

- Jordan

---

<div class="post-metadata">

### Author: ![James\_Gowdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_gowdy/32/74175_2.png) [@James\_Gowdy](https://discuss.elastic.co/u/James_Gowdy)
#### Post date: [July 4, 2017, 9:13am UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/2 "2017-07-04T09:13:45Z")

</div>

Hi @jacaraba,

ML in Kibana 5.4.x has a known issue when running from behind a proxy.  
This has been fixed in version 5.5, so I would recommend upgrading once it has been released.

James

---

<div class="post-metadata">

### Author: ![jacaraba](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jacaraba](https://discuss.elastic.co/u/jacaraba)
#### Post date: [July 5, 2017, 12:13am UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/3 "2017-07-05T00:13:27Z")

</div>

Hi @James_Gowdy,

Thanks for the awesome reply! I am currently a summer intern, so I have a time frame to finish my project and I would love to get Kibana showing pretty machine learning graphs.

For I ask, do you think that cloning version 5.5 of elasticsearch and kibana from their git branches would work for now? ([https://github.com/elastic/elasticsearch/tree/5.5](https://github.com/elastic/elasticsearch/tree/5.5) and [https://github.com/elastic/kibana/tree/5.5](https://github.com/elastic/kibana/tree/5.5)) Or is there a temporary way to work around this kibana issue?

If so, any recommendation will be highly appreciated!

Thanks in advance,

- Jordan

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 5, 2017, 3:48am UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/4 "2017-07-05T03:48:42Z")

</div>

There's no way to work around this sorry, you need to wait for the release of 5.5 with X-Pack.

---

<div class="post-metadata">

### Author: ![jacaraba](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jacaraba](https://discuss.elastic.co/u/jacaraba)
#### Post date: [July 5, 2017, 2:48pm UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/5 "2017-07-05T14:48:03Z")

</div>

Thanks for the reply!

- Jordan

---

<div class="post-metadata">

### Author: ![jacaraba](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jacaraba](https://discuss.elastic.co/u/jacaraba)
#### Post date: [July 7, 2017, 2:30pm UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/6 "2017-07-07T14:30:22Z")

</div>

Hi all,

Thanks for your replies! Version 5.5 worked perfectly!

-Jordan

---

<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, 2:30pm UTC](https://discuss.elastic.co/t/machine-learning-in-kibana-jobs-list-could-not-be-retrieved/91682/7 "2017-08-04T14:30:29Z")

</div>

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