Vagrant+docker+kibana


(Alejandro León Mora) #1

May 31, 2018 4:23 PM (Europe: Paris), May 31, 2018 7:23 AM (America: Los Angeles)

Hello!

I've created a Vagrant multimachine script to run an elasticsearch cluster and kibana. I'm using docker provisioning to create the cluster.

The first node (appes1) and Kibana start well and communicate each other. But the second node (appes2) does not communicate with the first one.

I think that the problem is that both nodes are listening in the internal ip that docker provides. I appreciate you help to finish this example.

The following error is produced in the second node:

[2018-05-31T14:41:43,918][WARN ][o.e.d.z.ZenDiscovery ] [appes2] failed to connect to master [{appes1}{Ji5cbCwAQbS57134Add7ww}{jEJlXkxsSLiq869zPCv53A}{172.17.0.2}{172.17.0.2:9300}{ml.machine_memory=2097197056, ml.max_open_jobs=20, ml.enabled=true}], retrying...
org.elasticsearch.transport.ConnectTransportException: [appes1][172.17.0.2:9300] handshake failed. unexpected remote node {appes2}{FyQBnGKeQlmr__NVvJ2OLA}{J__G7vKXT2W-nicsYOuCPg}{172.17.0.2}{172.17.0.2:9300}{ml.machine_memory=2097197056, ml.max_open_jobs=20, ml.enabled=true}
at org.elasticsearch.transport.TransportService.lambda$connectToNode$3(TransportService.java:335) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TcpTransport.connectToNode(TcpTransport.java:514) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:331) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:318) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.joinElectedMaster(ZenDiscovery.java:515) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:483) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery.access$2500(ZenDiscovery.java:90) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.discovery.zen.ZenDiscovery$JoinThreadControl$1.run(ZenDiscovery.java:1253) [elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:573) [elasticsearch-6.2.4.jar:6.2.4]
at java.util.concurrent.ThreadPoolExecuto


(Thiago Souza) #2

I think you have an IP collision there. For the network.host, instead of 0.0.0.0, try setting their respective 192.168.1.* addresses.


(system) #3

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