# Kibana “Failed to load indices” and “Failed to load remote clusters”

**URL:** <https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840>\
**Category:** Kibana\
**Created:** [October 16, 2019, 1:03pm UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840 "2019-10-16T13:03:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab2obek](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@ab2obek](https://discuss.elastic.co/u/ab2obek)\
**Post date:** [October 16, 2019, 1:03pm UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/1 "2019-10-16T13:03:36Z")

</div>

Hi everyone,

I recently installed an Elasticsearch cluster (3 mdi machines), Kibana (1 machine), both on v7.3.0 and everything seems to be working.

My problem is that when I click on "Create Index Pattern" from Kibana's management tab, it notifys "Failed to load indices" and "Failed to load remote clusters" but i can see all indexes on the index pattern form, I can load them and create a pattern.

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a6871f9a72b574706a5839af7e8bf5b6683e9f85.png)

The failed to load error :

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c24d7d558de54bc9ccf36bcb34dafffa66ecc208.png)

In the "network" tab of page inspection on chrome I can see two requests that goes into a `"http 500 error"`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb8a3910cf4abbf4671796bd8236493cce73ee28.png)

The urls are :  
`https://our_fqdn/kibana/beta/elasticsearch/*/_search?ignore_unavailable=true`  
`https://our_fqdn/kibana/beta/elasticsearch/*%3A*/_search?ignore_unavailable=true`

**Some infos about my setup**

FQDN \*\* ----\> \*\* httpd\*\* ----\>\*\* Kibana / Elastic (port 5601)

**The config files :**

elasticsearch.yml

> network.host: 127.0.0.1, eth2\_ip  
> http.port: 9200  
> transport.port: 9300  
> discovery.seed\_hosts: ip\_of\_master1,ip\_of\_master2,ip\_of\_master3  
> indices.fielddata.cache.size: 50%  
> reindex.remote.whitelist: "master1:9200, master2:9200, master3:9200"

**kibana.yml**

> server.port: "5601"  
> server.host: "IP\_of\_the\_server"  
> server.basePath: "/kibana/beta"  
> server.rewriteBasePath: false  
> elasticsearch.hosts: "[http://localhost:9200](http://localhost:9200)"  
> elasticsearch.username: "user"  
> elasticsearch.password: "pass"

**httpd config**

> \<Location /kibana/beta\>  
> ProxyPass http://kibana\_ip:90  
> ProxyPassReverse http://kibana\_ip:90  
> \</Location\>

**I really can't find what is wrong so that i'm getting this error**.  
What i've tried :

- I tried to activate the rewrite.Path (negative)
- I tried the to comment reindex.remote.whitelist: "master1:9200, master2:9200, master3:9200" (negative)
- I tried the curl locally and the only curl seems to work is  
` curl -XPOST "http://localhost:9200/elasticsearch/*/_search?ignore_unavailable=true"`  
So maybe the base request should be  
`https://our_fqdn/elasticsearch/*/_search?ignore_unavailable=true` without the `"kibana/beta"` part ?

If anyone got an idea it would be greatly appreciated.

PS: For confidentiality issues I replaced all the IPs with some names like for "master1", "master2" but in my config file it's actually IP addresses 🙂

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 16, 2019, 5:35pm UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/2 "2019-10-16T17:35:08Z")

</div>

Hmm, are you seeing any errors in the Kibana server console?

You mentioned `curl -XPOST "http://localhost:9200/elasticsearch/*/_search?ignore_unavailable=true"` is successful, but do you really mean `http://localhost:9200/*/_search?ignore_unavailable=true"`(without the `elasticsearch` portion)? If the former is working for you then that is certainly confusing.

---

<div class="post-metadata">

**Author:** ![ab2obek](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@ab2obek](https://discuss.elastic.co/u/ab2obek)\
**Post date:** [October 17, 2019, 10:13am UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/3 "2019-10-17T10:13:07Z")

</div>

Hi Lukas,

Actually the curl that worked in the Kibana console is the one sent as a POST when i try to create an index pattern. Here is the result in Kibana console :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b864a686d0e5e2a1b6d0dc1ce4fb87c19c684a9.png)

There is no HTTP 500 in Kibana logs when I try to create an Index pattern but I can see the HTTP 500 in httpd\_logs :

`ip_address - - [17/Oct/2019:12:09:19 +0200] *"POST /kibana/beta/elasticsearch/*%3A*/_search?ignore_unavailable=true HTTP/1.1" 500* 7328 "https://our_fqdn/kibana/beta/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"`

`ip_address - - [17/Oct/2019:12:09:19 +0200] "POST /kibana/beta/elasticsearch/*/_search?ignore_unavailable=true HTTP/1.1" 500 7328 "https://our_fqdn/kibana/beta/app/kibana" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36"`

So is the request from Kibana App wrong ? Is it a rewriting problem of the url ?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 18, 2019, 12:07am UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/4 "2019-10-18T00:07:41Z")

</div>

What happens when you manually do a GET request on [http://localhost:5601/kibana/beta/elasticsearch/\*/\_search](http://localhost:5601/kibana/beta/elasticsearch/*/_search) ?

---

<div class="post-metadata">

**Author:** ![ab2obek](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@ab2obek](https://discuss.elastic.co/u/ab2obek)\
**Post date:** [October 18, 2019, 7:30am UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/5 "2019-10-18T07:30:22Z")

</div>

> [root@kibanamachine ~]# curl -v -u kibana:kibana "[http://localhost:5601/kibana/beta/elasticsearch/\*%3A\*/\_search?ignore\_unavailable=true](http://localhost:5601/kibana/beta/elasticsearch/*%3A*/_search?ignore_unavailable=true)"
> 
> - About to connect() to localhost port 5601 (#0)
> - Trying localhost..
> - Connected to 127.0.0.1 port 5601 (#0)
> - Server auth using Basic with user 'kibana'
> 
> > GET /kibana/beta/elasticsearch/_%3A_/\_search?ignore\_unavailable=true HTTP/1.1  
> > Authorization: Basic a2liYW5hOmtpYmFuYQ==  
> > User-Agent: curl/7.29.0  
> > Host: 127.0.0.1  
> > Accept: _/_
> 
> \< HTTP/1.1 302 Found  
> \< location: /kibana/beta/login?next=/kibana/beta/kibana/beta/elasticsearch/_:_/\_search  
> \< kbn-name: kibana

I forgot to mention that I have a readonlyrest plug-in installed for the basic auth but even when I deploy everything without including the RoR plugin, the 500 Error is here and when I try from the kibana machine i get a 302.

---

<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:** [November 15, 2019, 7:30am UTC](https://discuss.elastic.co/t/kibana-failed-to-load-indices-and-failed-to-load-remote-clusters/203840/6 "2019-11-15T07:30:34Z")

</div>

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