# Tribe Node Connect to specific IP's

**URL:** <https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721>\
**Category:** Elasticsearch\
**Created:** [March 29, 2016, 6:18pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721 "2016-03-29T18:18:21Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [May 11, 2016, 5:42pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/21 "2016-05-11T17:42:37Z")

</div>

"netstat -lntup | grep 9" shows all java processes.

ps -ef | grep elastic correctly shows the elasticsearch process in the directory I had used in the config and plugin.

I guess tribe.t2.path.conf: and tribe.t2.path.plugins: should point to the folders in the tribe node and not in individual master nodes of t1 and t2. Is that correct understanding?

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [May 11, 2016, 7:10pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/22 "2016-05-11T19:10:37Z")

</div>

If you shutdown the tribe node, and do the netstat again, is port 9300 used by any processes?

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [May 12, 2016, 9:27am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/23 "2016-05-12T09:27:08Z")

</div>

Tried this. Nothing is running in 9300.

[root@cheupiapp04 ~]# netstat -lntup | grep 9  
tcp 0 0 0.0.0.0:5601 0.0.0.0:\* LISTEN 95729/./../node/bin  
tcp 0 0 0.0.0.0:389 0.0.0.0:\* LISTEN 1471/slapd  
tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN 41931/sshd  
tcp 0 0 127.0.0.1:631 0.0.0.0:\* LISTEN 45619/cupsd  
tcp6 0 0 :::389 :::\* LISTEN 1471/slapd  
tcp6 0 0 :::22 :::\* LISTEN 41931/sshd  
tcp6 0 0 ::1:631 :::\* LISTEN 45619/cupsd  
tcp6 0 0 :::4728 :::\* LISTEN 6259/caf  
udp 0 0 0.0.0.0:47105 0.0.0.0:\* 2094/sysedge  
udp 0 0 0.0.0.0:1691 0.0.0.0:\* 2094/sysedge  
udp 0 0 0.0.0.0:28362 0.0.0.0:\* 2094/sysedge  
udp6 0 0 :::49753 :::\* 2094/sysedge  
udp6 0 0 :::1691 :::\* 2094/sysedge  
udp6 0 0 :::3002 :::\* 6259/caf

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [May 12, 2016, 10:30am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/24 "2016-05-12T10:30:50Z")

</div>

I just notice in your setup, instead of doing **tribe.t2.network.publish\_host: ["172.16.153.14"]**, do this **tribe.t2.network.publish\_host: 172.16.153.14**

ES might not "like" the ["host"] format for publish\_host so it tried to do "localhost:port" instead of "specified-host:port"

My guess about "localhost:9400" is ES will try to bind to any port number in this range [9300 - 9400] if the one it needs to bind is in use.

In my setup , my tribe node uses port 9300 and 9200 (like your setup)

For t1 and t2, it uses other ports and in my setup, it uses 9301 and 9302 to communicate with two external clusters since 9300 is already in use by my tribe node's ES instance.

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [May 12, 2016, 11:45am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/25 "2016-05-12T11:45:49Z")

</div>

Tried tribe.t2.network.publish\_host: 172.16.153.14. But having same error with 9400 port.

In your configuration, are you having t1, t2 and the tribe in same physical machine?

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [May 12, 2016, 11:48am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/26 "2016-05-12T11:48:49Z")

</div>

No, not at all.

Did you update both t1 and t2 or you only tried t2? To make it simple, comment out either t1 or t2 and try to make it work with one only. Once it's working, you can put the second cluster back on. Otherwise, you are chasing two different things.

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [May 12, 2016, 2:38pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/27 "2016-05-12T14:38:18Z")

</div>

Ultimately we could start the tribe with the following in elasticsearch.yml (lines with bold text are commented):  
#network.host: 0.0.0.0  
network.host: 172.16.153.14  
transport.tcp.port: 9300  
http.port: 9200  
http.enabled: true  
[tribe.t1.cluster.name](http://tribe.t1.cluster.name): pr\_site  
[tribe.t1.node.name](http://tribe.t1.node.name): pr\_app2  
tribe.t1.discovery.zen.ping.unicast.hosts: hydupiapp02:9300  
tribe.t1.discovery.zen.ping.multicast.enabled: false  
tribe.t1.path.conf: /home/npci/Desktop/UPI/elasticsearch-2.2.0/config  
tribe.t1.path.plugins: /home/npci/Desktop/UPI/elasticsearch-2.2.0/plugins  
#tribe.t1.network.bind\_host: 0.0.0.0  
#tribe.t1.network.publish\_host: 172.16.153.14

But when I hit the Kibana, connecting to tribe, **I get the follwoing in elasticsearch logs:**  
[2016-05-12 19:47:27,022][DEBUG][action.admin.indices.create] [Abdul Alhazred] no known master node, scheduling a retry  
[2016-05-12 19:47:57,023][DEBUG][action.admin.indices.create] [Abdul Alhazred] timed out while retrying [indices:admin/create] after failure (timeout [30s])  
[2016-05-12 19:47:57,025][INFO][rest.suppressed] /.kibana Params: {index=.kibana}  
MasterNotDiscoveredException[null]  
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$5.onTimeout(TransportMasterNodeAction.java:205)  
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:239)  
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:794)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

**Kibana log has the following:**  
{"type":"log","@timestamp":"2016-05-12T14:23:28+00:00","tags":["status","plugin:elasticsearch","info"],"pid":114277,"name":"plugin:elasticsearch","state":"yellow","message":"Status changed from yellow to yellow - No existing Kibana index found","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [May 12, 2016, 4:33pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/28 "2016-05-12T16:33:35Z")

</div>

Connecting kibana to the tribe node with this error is a different issue. I'm assuming your tribe node setup is working.

Search on this "elasticsearch" discussion, there is a thread that talks about hooking up kibana with tribe node.

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [May 17, 2016, 3:10pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/29 "2016-05-17T15:10:18Z")

</div>

Looks like adding multiple nodes from a tribe is not working for me. The tribe's elasticsearch.yml is as below:  
[node.name](http://node.name): tribe\_node  
network.host: 172.18.17.46  
transport.tcp.port: 9300  
http.port: 9200  
http.enabled: true

[tribe.t1.cluster.name](http://tribe.t1.cluster.name): pr\_site  
[tribe.t1.node.name](http://tribe.t1.node.name): pr\_node  
tribe.t1.discovery.zen.ping.unicast.hosts: ["172.18.17.43:9300"]  
tribe.t1.discovery.zen.ping.multicast.enabled: false  
tribe.t1.path.conf: /home/npciadm/Desktop/NPCI/elasticsearch-2.1.1/config  
tribe.t1.path.plugins: /home/npciadm/Desktop/NPCI/elasticsearch-2.1.1/plugins  
tribe.t1.network.bind\_host: 0.0.0.0  
tribe.t1.network.publish\_host: ["172.18.17.46"]

[tribe.t2.cluster.name](http://tribe.t2.cluster.name): ha\_site  
[tribe.t2.node.name](http://tribe.t2.node.name): ha\_node  
tribe.t2.discovery.zen.ping.unicast.hosts: ["172.18.17.44:9300"]  
tribe.t2.discovery.zen.ping.multicast.enabled: false  
tribe.t2.path.conf: /home/npciadm/Desktop/NPCI/elasticsearch-2.1.1/config  
tribe.t2.path.plugins: /home/npciadm/Desktop/NPCI/elasticsearch-2.1.1/plugins  
tribe.t2.network.bind\_host: 0.0.0.0  
tribe.t2.network.publish\_host: ["172.18.17.46"]

But while starting the tribe, it is giving the following error. If I start the tribe using 9300, it tries to connect to 9301. If I start with 9301, it gives the error with 9300:

[2016-05-17 20:41:15,296][INFO][node] [tribe\_node] version[2.1.1], pid[22695], build[40e2c53/2015-12-15T13:05:55Z]  
[2016-05-17 20:41:15,296][INFO][node] [tribe\_node] initializing ...  
[2016-05-17 20:41:15,342][INFO][plugins] [tribe\_node] loaded [], sites []  
[2016-05-17 20:41:16,341][INFO][node] [tribe\_node/t1] version[2.1.1], pid[22695], build[40e2c53/2015-12-15T13:05:55Z]  
[2016-05-17 20:41:16,341][INFO][node] [tribe\_node/t1] initializing ...  
[2016-05-17 20:41:16,459][INFO][plugins] [tribe\_node/t1] loaded [], sites []  
[2016-05-17 20:41:16,543][INFO][node] [tribe\_node/t1] initialized  
[2016-05-17 20:41:16,544][INFO][node] [tribe\_node/t2] version[2.1.1], pid[22695], build[40e2c53/2015-12-15T13:05:55Z]  
[2016-05-17 20:41:16,544][INFO][node] [tribe\_node/t2] initializing ...  
[2016-05-17 20:41:16,569][INFO][plugins] [tribe\_node/t2] loaded [], sites []  
[2016-05-17 20:41:16,632][INFO][node] [tribe\_node/t2] initialized  
[2016-05-17 20:41:16,635][INFO][node] [tribe\_node] initialized  
[2016-05-17 20:41:16,635][INFO][node] [tribe\_node] starting ...  
[2016-05-17 20:41:16,677][INFO][transport] [tribe\_node] publish\_address {172.18.17.46:9300}, bound\_addresses {172.18.17.46:9300}  
[2016-05-17 20:41:16,681][INFO][discovery] [tribe\_node] elasticsearch/hzedYqV3TvaWKOhuUEhMSg  
[2016-05-17 20:41:16,681][WARN][discovery] [tribe\_node] waited for 0s and no initial state was set by the discovery  
[2016-05-17 20:41:16,687][INFO][http] [tribe\_node] publish\_address {172.18.17.46:9200}, bound\_addresses {172.18.17.46:9200}  
[2016-05-17 20:41:16,687][INFO][node] [tribe\_node/t1] starting ...  
[2016-05-17 20:41:16,695][INFO][transport] [tribe\_node/t1] publish\_address {127.0.0.1:9301}, bound\_addresses {[::]:9301}  
[2016-05-17 20:41:16,697][INFO][discovery] [tribe\_node/t1] pr\_site/JMA9-nQ6QEiPZ2v1diDXYg  
[2016-05-17 20:41:19,737][INFO][discovery.zen] [tribe\_node/t1] failed to send join request to master [{pr\_node}{huT6N4kvR5mGXOsY0TG87w}{172.18.17.43}{172.18.17.43:9300}{master=true}], reason [RemoteTransportException[[pr\_node][172.18.17.43:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[tribe\_node/t1][127.0.0.1:9301] connect\_timeout[30s]]; nested: NotSerializableExceptionWrapper[Connection refused: /127.0.0.1:9301]; ]  
^C[2016-05-17 20:41:20,985][INFO][node] [tribe\_node] stopping ...  
[2016-05-17 20:41:20,998][INFO][node] [tribe\_node] stopped  
[2016-05-17 20:41:20,998][INFO][node] [tribe\_node] closing ...  
[2016-05-17 20:41:20,999][INFO][node] [tribe\_node/t1] stopping ...  
[2016-05-17 20:41:21,005][INFO][node] [tribe\_node/t1] stopped  
[2016-05-17 20:41:21,005][INFO][node] [tribe\_node/t1] closing ...  
[2016-05-17 20:41:21,009][INFO][node] [tribe\_node/t1] closed  
[2016-05-17 20:41:21,009][INFO][node] [tribe\_node/t2] closing ...  
[2016-05-17 20:41:21,012][INFO][node] [tribe\_node/t2] closed  
[2016-05-17 20:41:21,013][INFO][node] [tribe\_node] closed

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [May 17, 2016, 4:47pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/30 "2016-05-17T16:47:11Z")

</div>

> [@chinmoyd](#):
>
> tribe.t1.network.publish\_host: ["172.18.17.46"]

it should be **tribe.t1.network.publish\_host: 172.18.17.46**

and the same goes to t2

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [June 10, 2016, 7:22am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/31 "2016-06-10T07:22:02Z")

</div>

Now I have made the tribe configuration as below:  
[node.name](http://node.name): tribe\_node  
network.host: 172.16.153.14  
transport.tcp.port: 9300  
http.port: 9200  
http.enabled: true  
[tribe.t1.cluster.name](http://tribe.t1.cluster.name): pr\_site  
[tribe.t1.node.name](http://tribe.t1.node.name): pr\_app2  
tribe.t1.discovery.zen.ping.unicast.hosts: ["172.16.173.12:9301"]  
tribe.t1.discovery.zen.ping.multicast.enabled: false  
tribe.t1.path.conf: /home/user1/Desktop/UPI/elasticsearch-2.2.0/config  
tribe.t1.path.plugins: /home/user1/Desktop/UPI/elasticsearch-2.2.0/plugins  
tribe.t1.network.bind\_host: 0.0.0.0  
tribe.t1.network.publish\_host: "172.16.153.14"  
tribe.t1.network.host: 0.0.0.0  
tribe.t1.transport.tcp.port: 9301

Still getting the following error while starting the tribe. Can you please help:

[2016-06-09 10:54:27,904][INFO][node] [tribe\_node] version[2.2.0], pid[44262], build[8ff36d1/2016-01-27T13:32:39Z]  
[2016-06-09 10:54:27,904][INFO][node] [tribe\_node] initializing ...  
[2016-06-09 10:54:28,236][INFO][plugins] [tribe\_node] modules [lang-expression, lang-groovy], plugins [], sites []  
[2016-06-09 10:54:29,203][INFO][node] [tribe\_node/t1] version[2.2.0], pid[44262], build[8ff36d1/2016-01-27T13:32:39Z]  
[2016-06-09 10:54:29,203][INFO][node] [tribe\_node/t1] initializing ...  
[2016-06-09 10:54:29,370][INFO][plugins] [tribe\_node/t1] modules [lang-expression, lang-groovy], plugins [], sites []  
[2016-06-09 10:54:29,481][INFO][node] [tribe\_node/t1] initialized  
[2016-06-09 10:54:29,485][INFO][node] [tribe\_node] initialized  
[2016-06-09 10:54:29,485][INFO][node] [tribe\_node] starting ...  
[2016-06-09 10:54:29,544][INFO][transport] [tribe\_node] publish\_address {172.16.153.14:9300}, bound\_addresses {172.16.153.14:9300}  
[2016-06-09 10:54:29,547][INFO][discovery] [tribe\_node] elasticsearch/GjpshninSm6cNthcAARsXw  
[2016-06-09 10:54:29,547][WARN][discovery] [tribe\_node] waited for 0s and no initial state was set by the discovery  
[2016-06-09 10:54:29,567][INFO][http] [tribe\_node] publish\_address {172.16.153.14:9200}, bound\_addresses {172.16.153.14:9200}  
[2016-06-09 10:54:29,567][INFO][node] [tribe\_node/t1] starting ...  
[2016-06-09 10:54:29,608][INFO][node] [tribe\_node/t1] stopping ...  
[2016-06-09 10:54:29,609][INFO][node] [tribe\_node/t1] stopped  
[2016-06-09 10:54:29,609][INFO][node] [tribe\_node/t1] closing ...  
[2016-06-09 10:54:29,613][INFO][node] [tribe\_node/t1] closed  
Exception in thread "main" BindTransportException[Failed to bind to [9301]]; nested: ChannelException[Failed to bind to: /0.0.0.0:9301]; nested: AccessControlException[access denied ("java.net.SocketPermission" "localhost:9301" "listen,resolve")];  
Likely root cause: java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:9301" "listen,resolve")  
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)  
at java.security.AccessController.checkPermission(AccessController.java:884)  
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)  
at java.lang.SecurityManager.checkListen(SecurityManager.java:1131)  
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:221)  
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)  
at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)  
at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)  
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Refer to the log for complete error details.  
[2016-06-09 10:54:29,617][INFO][node] [tribe\_node] stopping ...  
[2016-06-09 10:54:29,630][INFO][node] [tribe\_node] stopped  
[2016-06-09 10:54:29,631][INFO][node] [tribe\_node] closing ...  
[2016-06-09 10:54:29,632][INFO][node] [tribe\_node] closed

---

<div class="post-metadata">

**Author:** ![thn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thn/32/8061_2.png) [@thn](https://discuss.elastic.co/u/thn)\
**Post date:** [June 10, 2016, 9:50pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/32 "2016-06-10T21:50:11Z")

</div>

> [@chinmoyd](#):
>
> tribe.t1.network.publish\_host: "172.16.153.14"

if you read my previous post carefully, you should have this one fixed...

---

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [August 26, 2016, 11:00am UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/33 "2016-08-26T11:00:10Z")

</div>

This configuration is working fine in LAN. Has anybody tried the tribe configuration in WAN. I am still getting the same error in WAN. All ports have been opened in firewall. Any clue will be helpful.

---

<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 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721/34 "2017-07-05T22:24:55Z")

</div>



[Previous page](https://discuss.elastic.co/t/tribe-node-connect-to-specific-ips/45721.md?page=1)
