Not able to see other nodes in same cluster

Tried to setup clustering but did not succeed yet.
I am using ES 5.3.0. with Windows 10 on both servers (same LAN).
Cluster names are identical.
Elasticsearch.yml looks like this on both servers:
transport.host: localhost
transport.tcp.port: 9300
http.port: 9200
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts:

  • 192.168.0.18
  • 192.168.0.39
    Am I forgetting something?

May be share your logs so we can have a better idea.

Also look at any firewall settings you might have on Windows.

[2017-04-19T10:32:08,803][INFO ][o.e.n.Node ] [Sylle] initializing ...
[2017-04-19T10:32:08,901][INFO ][o.e.e.NodeEnvironment ] [Sylle] using [1] data paths, mounts [[DATA (D:)]], net usable_space [1.4tb], net total_space [1.8tb], spins? [unknown], types [NTFS]
[2017-04-19T10:32:08,901][INFO ][o.e.e.NodeEnvironment ] [Sylle] heap size [7.9gb], compressed ordinary object pointers [true]
[2017-04-19T10:32:08,917][INFO ][o.e.n.Node ] [Sylle] node name [Sylle], node ID [TcPTjgyhTWC95O_HxvnzhQ]
[2017-04-19T10:32:08,918][INFO ][o.e.n.Node ] [Sylle] version[5.3.0], pid[16456], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_77/25.77-b03]
[2017-04-19T10:32:09,565][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [aggs-matrix-stats]
[2017-04-19T10:32:09,565][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [ingest-common]
[2017-04-19T10:32:09,568][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-expression]
[2017-04-19T10:32:09,569][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-groovy]
[2017-04-19T10:32:09,570][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-mustache]
[2017-04-19T10:32:09,570][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-painless]
[2017-04-19T10:32:09,571][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [percolator]
[2017-04-19T10:32:09,571][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [reindex]
[2017-04-19T10:32:09,571][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty3]
[2017-04-19T10:32:09,572][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty4]
[2017-04-19T10:32:09,573][INFO ][o.e.p.PluginsService ] [Sylle] no plugins loaded
[2017-04-19T10:32:11,356][INFO ][o.e.n.Node ] [Sylle] initialized
[2017-04-19T10:32:11,357][INFO ][o.e.n.Node ] [Sylle] starting ...
[2017-04-19T10:32:11,634][INFO ][o.e.t.TransportService ] [Sylle] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2017-04-19T10:32:14,674][INFO ][o.e.c.s.ClusterService ] [Sylle] new_master {Sylle}{TcPTjgyhTWC95O_HxvnzhQ}{B2kDlvjWSumqbRfjdDK1Jw}{localhost}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-04-19T10:32:14,793][INFO ][o.e.h.n.Netty4HttpServerTransport] [Sylle] publish_address {192.168.0.18:9200}, bound_addresses {[::]:9200}
[2017-04-19T10:32:14,796][INFO ][o.e.n.Node ] [Sylle] started
[2017-04-19T10:32:15,050][INFO ][o.e.g.GatewayService ] [Sylle] recovered [1] indices into cluster_state
[2017-04-19T10:32:15,347][INFO ][o.e.c.r.a.AllocationService] [Sylle] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).

Hi,

Each server bound only the localhost, try to change this:

network.host: ["127.0.0.1", "192.168.0.19"]

network.host: ["127.0.0.1", "192.168.0.38"]

bye,
Xavier

I have configured a trusted relation between both servers on my firewall.

Tried that. Problem still exists. IP addresses are ending on resp. .18 an .39. My typing error, sorry.

[2017-04-19T12:20:58,846][INFO ][o.e.n.Node ] [Sylle] initializing ...
[2017-04-19T12:20:58,930][INFO ][o.e.e.NodeEnvironment ] [Sylle] using [1] data paths, mounts [[DATA (D:)]], net usable_space [1.4tb], net total_space [1.8tb], spins? [unknown], types [NTFS]
[2017-04-19T12:20:58,930][INFO ][o.e.e.NodeEnvironment ] [Sylle] heap size [7.9gb], compressed ordinary object pointers [true]
[2017-04-19T12:20:58,970][INFO ][o.e.n.Node ] [Sylle] node name [Sylle], node ID [TcPTjgyhTWC95O_HxvnzhQ]
[2017-04-19T12:20:58,970][INFO ][o.e.n.Node ] [Sylle] version[5.3.0], pid[15480], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_77/25.77-b03]
[2017-04-19T12:20:59,637][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [aggs-matrix-stats]
[2017-04-19T12:20:59,638][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [ingest-common]
[2017-04-19T12:20:59,640][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-expression]
[2017-04-19T12:20:59,641][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-groovy]
[2017-04-19T12:20:59,642][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-mustache]
[2017-04-19T12:20:59,643][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-painless]
[2017-04-19T12:20:59,643][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [percolator]
[2017-04-19T12:20:59,644][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [reindex]
[2017-04-19T12:20:59,644][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty3]
[2017-04-19T12:20:59,645][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty4]
[2017-04-19T12:20:59,646][INFO ][o.e.p.PluginsService ] [Sylle] no plugins loaded
[2017-04-19T12:21:01,445][INFO ][o.e.n.Node ] [Sylle] initialized
[2017-04-19T12:21:01,446][INFO ][o.e.n.Node ] [Sylle] starting ...
[2017-04-19T12:21:01,736][INFO ][o.e.t.TransportService ] [Sylle] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2017-04-19T12:21:04,778][INFO ][o.e.c.s.ClusterService ] [Sylle] new_master {Sylle}{TcPTjgyhTWC95O_HxvnzhQ}{Ykk8gyK_TCGrqW8hFsx98g}{localhost}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-04-19T12:21:04,804][INFO ][o.e.h.n.Netty4HttpServerTransport] [Sylle] publish_address {192.168.0.18:9200}, bound_addresses {127.0.0.1:9200}, {192.168.0.18:9200}
[2017-04-19T12:21:04,808][INFO ][o.e.n.Node ] [Sylle] started
[2017-04-19T12:21:05,205][INFO ][o.e.g.GatewayService ] [Sylle] recovered [2] indices into cluster_state
[2017-04-19T12:21:06,039][INFO ][o.e.c.r.a.AllocationService] [Sylle] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0], [sylle][1]] ...]).

Can you try with this line commented ?

Hi Xavier, this is already in my YML, see above.

yes but comment or remove this line please.

Oeps, my mistake. Sorry.

But you were right, this solved my problem. Thnx!

[2017-04-19T12:39:49,703][INFO ][o.e.n.Node ] [Sylle] initializing ...
[2017-04-19T12:39:49,815][INFO ][o.e.e.NodeEnvironment ] [Sylle] using [1] data paths, mounts [[DATA (D:)]], net usable_space [1.4tb], net total_space [1.8tb], spins? [unknown], types [NTFS]
[2017-04-19T12:39:49,816][INFO ][o.e.e.NodeEnvironment ] [Sylle] heap size [7.9gb], compressed ordinary object pointers [true]
[2017-04-19T12:39:49,848][INFO ][o.e.n.Node ] [Sylle] node name [Sylle], node ID [TcPTjgyhTWC95O_HxvnzhQ]
[2017-04-19T12:39:49,849][INFO ][o.e.n.Node ] [Sylle] version[5.3.0], pid[13564], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_77/25.77-b03]
[2017-04-19T12:39:50,540][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [aggs-matrix-stats]
[2017-04-19T12:39:50,540][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [ingest-common]
[2017-04-19T12:39:50,543][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-expression]
[2017-04-19T12:39:50,544][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-groovy]
[2017-04-19T12:39:50,545][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-mustache]
[2017-04-19T12:39:50,545][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [lang-painless]
[2017-04-19T12:39:50,545][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [percolator]
[2017-04-19T12:39:50,546][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [reindex]
[2017-04-19T12:39:50,546][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty3]
[2017-04-19T12:39:50,547][INFO ][o.e.p.PluginsService ] [Sylle] loaded module [transport-netty4]
[2017-04-19T12:39:50,548][INFO ][o.e.p.PluginsService ] [Sylle] no plugins loaded
[2017-04-19T12:39:52,399][INFO ][o.e.n.Node ] [Sylle] initialized
[2017-04-19T12:39:52,399][INFO ][o.e.n.Node ] [Sylle] starting ...
[2017-04-19T12:39:52,645][INFO ][o.e.t.TransportService ] [Sylle] publish_address {192.168.0.18:9300}, bound_addresses {127.0.0.1:9300}, {192.168.0.18:9300}
[2017-04-19T12:39:52,649][INFO ][o.e.b.BootstrapChecks ] [Sylle] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-04-19T12:39:55,734][INFO ][o.e.c.s.ClusterService ] [Sylle] new_master {Sylle}{TcPTjgyhTWC95O_HxvnzhQ}{Q2Be80UNT_q_UwXMp5FesQ}{192.168.0.18}{192.168.0.18:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-04-19T12:39:55,761][INFO ][o.e.h.n.Netty4HttpServerTransport] [Sylle] publish_address {192.168.0.18:9200}, bound_addresses {127.0.0.1:9200}, {192.168.0.18:9200}
[2017-04-19T12:39:55,765][INFO ][o.e.n.Node ] [Sylle] started
[2017-04-19T12:39:56,263][INFO ][o.e.g.GatewayService ] [Sylle] recovered [2] indices into cluster_state
[2017-04-19T12:39:57,217][INFO ][o.e.c.r.a.AllocationService] [Sylle] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana][0]] ...]).
[2017-04-19T12:40:16,095][INFO ][o.e.c.s.ClusterService ] [Sylle] added {{Sylle1}{y9b9F8IkTfivChnmfHglJg}{Ls1zfbBDQ9Oy1SCutS4OyQ}{192.168.0.39}{192.168.0.39:9300}{rack=r1},}, reason: zen-disco-node-join[{Sylle1}{y9b9F8IkTfivChnmfHglJg}{Ls1zfbBDQ9Oy1SCutS4OyQ}{192.168.0
.39}{192.168.0.39:9300}{rack=r1}]

Ok good !

According to this doc : https://www.elastic.co/guide/en/elasticsearch/reference/5.3/modules-transport.html#_tcp_transport

The transport.host property overwrite the network.host one, so as it was setted to localhost, your nodes could not
communicate :wink:

bye,
Xavier

Like always we have to RTFM :slight_smile:. Thnx mate!

1 Like

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