# Visualize: Bad Gateway & Gateway Timeout

**URL:** <https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198>\
**Category:** Kibana\
**Created:** [June 8, 2016, 10:27am UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198 "2016-06-08T10:27:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brayndasilva](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@brayndasilva](https://discuss.elastic.co/u/brayndasilva)\
**Post date:** [June 8, 2016, 10:27am UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198/1 "2016-06-08T10:27:34Z")

</div>

Error info:

```
Error: Bad Gateway
ErrorAbstract@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:74982:20
StatusCodeError@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:75122:8
respond@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:76349:16
checkRespForFailure@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:76312:8
[24]</AngularConnector.prototype.request/<@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:74930:8
processQueue@http://10.0.11.40/bundles/commons.bundle.js?v=9732:42357:29
scheduleProcessQueue/<@http://10.0.11.40/bundles/commons.bundle.js?v=9732:42373:28
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43601:17
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43412:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43709:14
done@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38158:37
completeRequest@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38356:8
requestLoaded@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38297:1

Error: Gateway Timeout
ErrorAbstract@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:74982:20
StatusCodeError@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:75122:8
respond@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:76349:16
checkRespForFailure@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:76312:8
[24]</AngularConnector.prototype.request/<@http://10.0.11.40/bundles/kibana.bundle.js?v=9732:74930:8
processQueue@http://10.0.11.40/bundles/commons.bundle.js?v=9732:42357:29
scheduleProcessQueue/<@http://10.0.11.40/bundles/commons.bundle.js?v=9732:42373:28
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43601:17
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43412:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://10.0.11.40/bundles/commons.bundle.js?v=9732:43709:14
done@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38158:37
completeRequest@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38356:8
requestLoaded@http://10.0.11.40/bundles/commons.bundle.js?v=9732:38297:1

```

What could be causing these errors to occur? They specifically happen overnight when no one is around.

I allocated more memory to Elasticsearch by following [http://stackoverflow.com/questions/18132719/how-to-change-elasticsearch-max-memory-size](http://stackoverflow.com/questions/18132719/how-to-change-elasticsearch-max-memory-size) (2GB up from default 1GB)

---

<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 8, 2016, 9:23pm UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198/2 "2016-06-08T21:23:28Z")

</div>

Are you seeing this error in the browser or the Kibana logs?

Which version of Kibana is this, and do you have a reverse proxy in between the browser and the Kibana server?

---

<div class="post-metadata">

**Author:** ![brayndasilva](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@brayndasilva](https://discuss.elastic.co/u/brayndasilva)\
**Post date:** [June 9, 2016, 7:36am UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198/3 "2016-06-09T07:36:23Z")

</div>

Hi,

I am seeing this error in the browser while having the dashboard open. Although like I mentioned before the errors happen overnight. I experience no issues while using it during office hours.

We are using Kibana 4.4.0 and indeed have a reverse proxy in between the browser and the Kibana server.

Could it be because every night a new indice/index is being created and on top of that data of the last 24 hours is being loaded as it refreshes every hour?

---

<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 9, 2016, 8:03pm UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198/4 "2016-06-09T20:03:24Z")

</div>

Some thoughts are the proxy has become unavailable, or it's unable to route the request to Kibana. I would look into the proxy logs in addition to Kibana's to see if it's being restarted due to something like an upstart script.

---

<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 6, 2017, 1:50pm UTC](https://discuss.elastic.co/t/visualize-bad-gateway-gateway-timeout/52198/5 "2017-07-06T13:50:55Z")

</div>


