# Kibana Timeout on visualization edit

**URL:** <https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471>\
**Category:** Kibana\
**Created:** [June 4, 2018, 5:57pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471 "2018-06-04T17:57:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 4, 2018, 5:57pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/1 "2018-06-04T17:57:26Z")

</div>

Hello guys,

I'm having troubles when creating, updating and deleting dashboards and/or visualizations. When opening the same dashboards and visualizations I have no problem whatsoever. I have a nearly empty database. This problem appeared after updating from 6.1 to 6.2.4.

After changing timeout 30000 in Kibana, I started getting instead a 504 Response socket hang up:

{"type":"log","@timestamp":"2018-06-04T17:54:03Z","tags":["error","elasticsearch","admin"],"pid":30905,"message":"Request error, retrying\nPOST [http://localhost:9200/.kibana/doc/visualization%3AEvents\_Clients-slash-Hour?refresh=wait\_for](http://localhost:9200/.kibana/doc/visualization%3AEvents_Clients-slash-Hour?refresh=wait_for) =\> socket hang up"}

Have nothing in Elasticsearch log. Did anybody went through the same?

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [June 4, 2018, 7:32pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/2 "2018-06-04T19:32:12Z")

</div>

Hi,

Did you update your ES to 6.2.4 too? Can you please check that?  
Also whats the output of this: [http://localhost:9200/.kibana](http://localhost:9200/.kibana)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 4, 2018, 8:27pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/3 "2018-06-04T20:27:23Z")

</div>

Hi,

Thanks for your feedback. I've updated through normal apt-get upgrade. It does update all stack, correct?

Bellow the output:

> curl -XGET 'localhost:9200/.kibana' {".kibana":{"aliases":{},"mappings":{"doc":{"dynamic":"strict","properties":{"config":{"dynamic":"true","properties":{"buildNum":{"type":"keyword"},"defaultIndex":{"type":"text","fields":{"keyword":{"type":"keyword","ignore\_above":256}}}}},"dashboard":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"optionsJSON":{"type":"text"},"panelsJSON":{"type":"text"},"refreshInterval":{"properties":{"display":{"type":"keyword"},"pause":{"type":"boolean"},"section":{"type":"integer"},"value":{"type":"integer"}}},"timeFrom":{"type":"keyword"},"timeRestore":{"type":"boolean"},"timeTo":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"}}},"graph-workspace":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"numLinks":{"type":"integer"},"numVertices":{"type":"integer"},"title":{"type":"text"},"version":{"type":"integer"},"wsState":{"type":"text"}}},"index-pattern":{"properties":{"fieldFormatMap":{"type":"text"},"fields":{"type":"text"},"intervalName":{"type":"keyword"},"notExpandable":{"type":"boolean"},"sourceFilters":{"type":"text"},"timeFieldName":{"type":"keyword"},"title":{"type":"text"}}},"search":{"properties":{"columns":{"type":"keyword"},"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"sort":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"server":{"properties":{"uuid":{"type":"keyword"}}},"timelion-sheet":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"timelion\_chart\_height":{"type":"integer"},"timelion\_columns":{"type":"integer"},"timelion\_interval":{"type":"keyword"},"timelion\_other\_interval":{"type":"keyword"},"timelion\_rows":{"type":"integer"},"timelion\_sheet":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"}}},"type":{"type":"keyword"},"updated\_at":{"type":"date"},"url":{"properties":{"accessCount":{"type":"long"},"accessDate":{"type":"date"},"createDate":{"type":"date"},"url":{"type":"text","fields":{"keyword":{"type":"keyword","ignore\_above":2048}}}}},"visualization":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"savedSearchId":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"},"visState":{"type":"text"}}}}}},"settings":{"index":{"refresh\_interval":"-1","number\_of\_shards":"1","provided\_name":".kibana","creation\_date":"1510847841851","number\_of\_replicas":"0","uuid":"T8uTFtgYQ7KJ0eW9yrs\_UA","version":{"created":"6000099","upgraded":"6020499"}}}}}

One thing I question myself about is the elasticsearch jvm.options file. Not sure if I didn't went wrong keeping previous file on update, even doing diffs with the new configurations. Can it be anyhow related to it?

Thanks again,  
Gonçalo

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [June 4, 2018, 9:17pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/4 "2018-06-04T21:17:43Z")

</div>

HI,

Can you reach elasticsearch through your Kibana?  
Query your cluster data through devtools and console in Kibana?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 4, 2018, 9:52pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/5 "2018-06-04T21:52:02Z")

</div>

Hi,

Yes, I'm attaching an example, to see if this is what you meant. Sorry for the blank square in the middle for anonymization.

 ![anon_indices](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d91a8b927144c08a5696fc47cf386060aca30c6a.png)

Despite the timeout or 504 errors, all visualizations and dashboards I try to edit, get created after a while (even though it takes long) and when accessing them, all works perfectly.

I've detected this because the users were clicking frenetically over the save button, due to the fact that kibana didn't respond to those changes submissions. After 5 minutes I had 10 times the same visualization created. 😖

This is a simple setup, a fresh install is an option, if nothing else comes to your mind. Let me know if it does, though.

Thanks again for your time and availability.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [June 5, 2018, 3:01pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/6 "2018-06-05T15:01:17Z")

</div>

@timroes can you please take a look at this?

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)\
**Post date:** [June 5, 2018, 3:22pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/7 "2018-06-05T15:22:59Z")

</div>

Looks more like an issue with the Kibana/ES connection rather than anything visualization/dashboard specific. Maybe @tylersmalley could help with that one?

---

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 8, 2018, 9:56am UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/8 "2018-06-08T09:56:46Z")

</div>

@tylersmalley, did you have the opportunity to have a look at this?

Thanks!  
Gonçalo

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [June 8, 2018, 5:11pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/9 "2018-06-08T17:11:58Z")

</div>

@ramaro0x00, can you describe your setup? Is Kibana and ES on separate machines? What is the networking look like between the two? Is there a proxy between ES and Kibana?

---

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 8, 2018, 6:16pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/10 "2018-06-08T18:16:59Z")

</div>

Hi,

Thanks in advance.

Logstash is in different machine(s), sending logs to Elastic.

Elastic and Kibana are on the same machine, so no proxies or firewalls in between.

I find odd that it can be related to this communication, since I perfectly can read&search&filter logs, visualizations and dashboards. The problem only kicks off, when I try to store new/updated visualizations/dashboards.

BR,  
Gonçalo

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [June 8, 2018, 10:39pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/11 "2018-06-08T22:39:27Z")

</div>

With ES on the same box as Kibana, you really shouldn't have any connection issues and definitely shouldn't need a 30 second timeout.

The only thing I can think of is your ES instance is under provisioned. Can I get `_cat/indices` and `_cluster/health`?

---

<div class="post-metadata">

**Author:** ![ramaro0x00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramaro0x00/32/32002_2.png) [@ramaro0x00](https://discuss.elastic.co/u/ramaro0x00)\
**Post date:** [June 14, 2018, 3:12pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/12 "2018-06-14T15:12:20Z")

</div>

Hi,

Please find it in attachment. Thank you.

 ![Screenshot_20180614_160143](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fa4675ef9462475aceb81828c048e16db95201cd.png)

BR,  
Gonçalo Amaro

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [June 15, 2018, 7:37pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/13 "2018-06-15T19:37:09Z")

</div>

Hi, how are the memory resources looking for your ES nodes? I'd be curious to see what your JVM Heap, GC Duration, Index Memory and Read Threads charts in Monitoring look like. (Elasticsearch \> Nodes \> Node Detail \> Advanced tab)

> I'm having troubles when creating, updating and deleting dashboards and/or visualizations

> When opening the same dashboards and visualizations I have no problem whatsoever

I'm not entirely sure, but it's possible that you're seeing this behavior from the benefit of request caching from Elasticsearch. Request caching can potentially return aggregation results instantly: [Shard request cache settings | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-request-cache.html)

---

<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:** [July 13, 2018, 7:37pm UTC](https://discuss.elastic.co/t/kibana-timeout-on-visualization-edit/134471/14 "2018-07-13T19:37:09Z")

</div>

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