# Talk to server... ERROR Connection marked as failed because the onConnect callback failed: invalid license found, requires a basic or a valid trial l icense and received Open sour

**URL:** <https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910>\
**Category:** Elasticsearch\
**Created:** [December 6, 2019, 3:01pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910 "2019-12-06T15:01:08Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [December 12, 2019, 11:31am UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/22 "2019-12-12T11:31:47Z")

</div>

I can ping and telnet all the ports to the other nodes and from the other nodes to this host

---

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [December 12, 2019, 12:50pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/23 "2019-12-12T12:50:39Z")

</div>

If you saw the metricbeat output was from the node that i can connect. So you can see that this node has connection with all the other elasticcsearch nodes through the beat. The problem is that the elasticsearch service cannot connect to the ELK cluster.

---

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [December 12, 2019, 1:41pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/24 "2019-12-12T13:41:41Z")

</div>

Is there any possibility this to be an Elasticsearch bug?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 13, 2019, 12:45pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/25 "2019-12-13T12:45:30Z")

</div>

> [@antonopo](#):
>
> Caused by: java.io.IOException: connection timed out: 151.98.14.14/151.98.14.14:9300

this indicates a network connection issue. I highly doubt that this is an issue with elasticsearch (but you can never fully rule this out). From the host that is unable to connect to the master node, can you connect via telnet to `151.98.14.14:9300`?

Also, restarting elasticsearch supposedly has no effect? Can you share a full log excerpt when starting elasticsearch and put it into pastebin or a gist, so others can take a look? Thank you!

--Alex

---

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [December 16, 2019, 3:09pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/26 "2019-12-16T15:09:45Z")

</div>

Hi Alex,

I found the root cause. I had to put in the elasticsearch.yml the IP of the node and not the 0.0.0.0 for network and transport protocol.  
Thanks a lot for the help.

---

<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:** [January 13, 2020, 3:09pm UTC](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910/27 "2020-01-13T15:09:49Z")

</div>

Closed on January 13, 2020, 3:09pm UTC

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

[Previous page](https://discuss.elastic.co/t/talk-to-server-error-connection-marked-as-failed-because-the-onconnect-callback-failed-invalid-license-found-requires-a-basic-or-a-valid-trial-l-icense-and-received-open-sour/210910.md?page=1)
