Curl comand is failing

I have a two node setup using 5.2.1

Successful:
Node 1:

curl http://host1_IPNode1:9200; work w/o issue

Node 2:

curl http://host2_IPNode2:9200; work w/o issue

Failure:

Node 1:

curl http://host2_IPNode2:9200; work w/o issue
curl: (7) Failed connect to XXXXX; No route to host
Node 2:

curl http://host1_IPNode1:9200; work w/o issue
curl: (7) Failed connect to XXXXX; No route to host

For a two node configuration, curl command can be run on either node. Why does it fail and how can I fix?

Tks,

JP

No route to host means that it cannot find a way to connect, can you ping the hosts from each other?

1 Like

Mark,

1st is was a pleasure seeing you in training. Very informative and helpful. I didn't anticipate you would reply to my ES support questions.

The problem is no longer an issue. Both servers were in the same subnet, which led me to believe that this was not a firewall issue. However, I was wrong. Linux has a local firewall service. Once the firewall service was disabled communication worked w/o issue. We will turn the firewall back on both nodes and enabled on the specific ports required.

These are the ports I assume we need.
Ports: 9200-9300, 5601

Tks,

JP

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