# Kibana 502s When I Set ES As A Client Node

**URL:** <https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410>\
**Category:** Kibana\
**Created:** [October 16, 2015, 7:31pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410 "2015-10-16T19:31:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![UsreTX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usretx/32/5388_2.png) [@UsreTX](https://discuss.elastic.co/u/UsreTX)\
**Post date:** [October 16, 2015, 7:31pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/1 "2015-10-16T19:31:35Z")

</div>

First time caller, long time listener:

I was able to complete this tutorial successfully:

> **[How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS 7 |...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7)**
>
> In this tutorial, we will go over the installation of the Elasticsearch ELK Stack on CentOS 7—that is, Elasticsearch 2.1.x, Logstash 2.1.x, and Kibana 4.3.x. We will also show you how to configure it to gather and visualize the syslogs of your...

which let me set up an ELK stack on one box. Now, I'm trying to set up ES / Kibana / nginx on one box and ES / Logstash on another.

On server A, with minimal config (naming the ES cluster, making the ES network.host the server IP, and setting the ES url and host to the server IP), things work. But, when I try to follow this tutorial:

[https://www.elastic.co/guide/en/kibana/current/production.html](https://www.elastic.co/guide/en/kibana/current/production.html)

to load balance across multiple nodes, I get a 502 when changing things to node.data = false OR node.master = false as instructed. I also don't have much to go on in way of errors. I've tried preloading ES on server A with test data, because I noticed that without some data in ES, kibana4 502s.

Do I not have enough nodes running for this to work? Did I screw up my configs, all of which are default aside from aforementioned? Help please. I really don't want to have to downgrade to kibana3 (if that would even work).

Thanks

---

<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:** [October 16, 2015, 11:26pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/2 "2015-10-16T23:26:34Z")

</div>

So you have a single node that has `node.data: true` and `node.master: true` and then you change one of those and you get a 502?

---

<div class="post-metadata">

**Author:** ![UsreTX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usretx/32/5388_2.png) [@UsreTX](https://discuss.elastic.co/u/UsreTX)\
**Post date:** [October 19, 2015, 12:08pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/3 "2015-10-19T12:08:01Z")

</div>

When I changed either value on that node, after restarting everything, it gives me a 502, yes. For what it's worth, there's another node on the same network with ES / Logstash on it.

---

<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:** [October 19, 2015, 10:16pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/4 "2015-10-19T22:16:13Z")

</div>

I'd check to make sure that the node rejoins the cluster after the change + restart.  
Check your ES logs and the various `_cat` indices.

---

<div class="post-metadata">

**Author:** ![UsreTX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usretx/32/5388_2.png) [@UsreTX](https://discuss.elastic.co/u/UsreTX)\
**Post date:** [October 20, 2015, 8:14pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/5 "2015-10-20T20:14:49Z")

</div>

Maybe it was an issue between things starting up. Also, when I added another node to the network, things magically worked. Please close this thread. My head hurts.

---

<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, 2:11pm UTC](https://discuss.elastic.co/t/kibana-502s-when-i-set-es-as-a-client-node/32410/6 "2017-07-06T14:11:00Z")

</div>

Closed on July 6, 2017, 2:11pm UTC


