# Kibana and elasticsearch not setup on the same vm trouble(version:7.6)

**URL:** https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671
**Category:** Kibana
**Tags:** docker
**Created:** [April 29, 2021, 3:05pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671 "2021-04-29T15:05:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![loxiaopohaiol](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@loxiaopohaiol](https://discuss.elastic.co/u/loxiaopohaiol)
#### Post date: [April 29, 2021, 3:05pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/1 "2021-04-29T15:05:53Z")

</div>

I have two VMs to setup the kibana and the elasticsearch, one of them as elasticsearch server, another one setup the kibana, and both them running in the docker, but I meeting a error for the kibana server, the error log is:  
{"type":"log","@timestamp":"2021-04-29T13:30:07Z","tags":["warning","plugins","licensing"],"pid":6,"message":"License information could not be obta  
ined from Elasticsearch due to Error: Request Timeout after 30000ms error"}

if I setup the elasticsearch and the kibana on the same VM, the kibana is normal, my kibana config file as follow:

server.host: "0.0.0.0"  
elasticsearch.hosts: ["[http://176.122.109.46:9200](http://176.122.109.46:9200)"]  
elasticsearch.username: "admin"  
elasticsearch.password: "admin1234"  
server.name: "elasticsearch"

what can I change my kibana config to support access another elasticsearch server?

---

<div class="post-metadata">

### Author: ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)
#### Post date: [April 29, 2021, 3:17pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/2 "2021-04-29T15:17:30Z")

</div>

Hi @loxiaopohaiol ,

It feels like a pure docker misconfiguration to me. Have you checked that you [properly exposed ports](https://www.whitesourcesoftware.com/free-developer-tools/blog/docker-expose-port/) from your container? Have you tried to enter Kibana container and ping the Elasticsearch from there?

Best,  
Oleg

---

<div class="post-metadata">

### Author: ![loxiaopohaiol](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@loxiaopohaiol](https://discuss.elastic.co/u/loxiaopohaiol)
#### Post date: [April 29, 2021, 4:19pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/3 "2021-04-29T16:19:38Z")

</div>

Hi，@ azasypkin  
I have a test in the kibana container, it can't ping another sever(elasticsearch), I think is the docker network setting error for the kibana container, thank you very much, I will change my kibana docker network setting.

---

<div class="post-metadata">

### Author: ![loxiaopohaiol](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@loxiaopohaiol](https://discuss.elastic.co/u/loxiaopohaiol)
#### Post date: [April 29, 2021, 4:32pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/4 "2021-04-29T16:32:07Z")

</div>

Hi,  
I change my docker run with --network-host, the kibana container is running normal, thanks for your advices.

---

<div class="post-metadata">

### Author: ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)
#### Post date: [April 29, 2021, 4:48pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/5 "2021-04-29T16:48:33Z")

</div>

Thanks for the update, glad you've figured it out 👍

---

<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: [May 27, 2021, 4:48pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-setup-on-the-same-vm-trouble-version-7-6/271671/6 "2021-05-27T16:48:40Z")

</div>

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