Fail to connect the port 9200

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.12.0

Describe the issue: -bash-4.2# sudo systemctl status opensearch-2.12.0.service
● opensearch-2.12.0.service - OpenSearch 2.12.0
Loaded: loaded (/etc/systemd/system/opensearch-2.12.0.service; enabled; vendo r preset: disabled)
Active: active (running) since Wed 2024-04-17 14:08:28 UTC; 21min ago
Process: 28113 ExecStart=/opt/opensearch-2.12.0/bin/opensearch -d (code=exited , status=0/SUCCESS)
Main PID: 28324 (java)
CGroup: /system.slice/opensearch-2.12.0.service
└─28324 /opt/opensearch-2.12.0/jdk/bin/java -Xshare:auto -Dopensea…

Apr 17 14:08:26 ip-172-31-4-236.us-west-2.compute.internal systemd[1]: Starti…
Apr 17 14:08:28 ip-172-31-4-236.us-west-2.compute.internal systemd[1]: Starte…
Hint: Some lines were ellipsized, use -l to show in full.

-bash-4.2# curl https://172.31.4.236:9200 -u admin:admin -k
curl: (7) Failed to connect to 172.31.4.236 port 9200 after 0 ms: Couldn’t conne

Configuration:

Relevant Logs or Screenshots:

Hi @rathiga,

Could you confirm if port 9200 is opened?

you can use something like:

sudo netstat -tulpn | grep LISTEN

Best,
mj

Hi @all ,
I used opensearch-2.12.0 ,opensearch dashboard -2.12.0, & logstash-8.9.0 used to ingest the data from s3 bucket .

dashboard & opensearch work fine in web page but i try to open -bash-4.2# curl http://18.236.230.204:9200 -u admin:test@123 -k
curl: (7) Failed to connect to 18.236.230.204 port 9200 after 0 ms: Couldn’t connect to server
-bash-4.2# netstat -tulpn | grep -E ‘(9600|9200|5601)’
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 3312/node
tcp6 0 0 127.0.0.1:9600 :::* LISTEN 28035/java
tcp6 0 0 :::9200 :::* LISTEN 11905/java

fail to connect the port 9200
-bash-4.2# curl http://18.236.230.204:9200 -u admin:test@123 -k
curl: (52) Empty reply from server

pls help me out

Hi @rathiga, shouldn`t this be HTTPS ?

best,
mj

Hi mantas,
HTTP

@rathiga, and you are connecting on HTTPS on your browser?

image

Would you mind sharing your opensearch.yml file?

Thanks,
mj