It shows sucessfully run but unable to access it

This category relates to the Enterprise Search set of products - App Search, Site Search and Workplace Search.
If your question relates to core Elasticsearch functionality, please head over to the Elasticsearch category for assistance.

PS - Please delete this text before posting your topic

● elasticsearch-instance-1.service - Elasticsearch
     Loaded: loaded (/etc/systemd/system/elasticsearch-instance-1.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2024-10-16 23:39:14 +0530; 29min ago
       Docs: https://www.elastic.co
   Main PID: 20722 (java)
      Tasks: 83 (limit: 18843)
     Memory: 7.9G
        CPU: 54.352s
     CGroup: /system.slice/elasticsearch-instance-1.service
             ├─20722 /usr/share/elasticsearch/jdk/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=/usr/share/elasticsearch/bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.p>
             ├─20782 /usr/share/elasticsearch/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -Djava.security.manager=allow -XX:+AlwaysPreTouch -Xss1m -Djava.awt.h>
             └─20808 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Oct 16 23:38:58 jayeesha-ThinkBook-14-G2-ITL-Ub systemd[1]: Starting Elasticsearch...
Oct 16 23:39:00 jayeesha-ThinkBook-14-G2-ITL-Ub elasticsearch[20722]: Oct 16, 2024 11:39:00 PM sun.util.locale.provider.LocaleProviderAdapter <clinit>
Oct 16 23:39:00 jayeesha-ThinkBook-14-G2-ITL-Ub elasticsearch[20722]: WARNING: COMPAT locale provider will be removed in a future release
Oct 16 23:39:14 jayeesha-ThinkBook-14-G2-ITL-Ub systemd[1]: Started Elasticsearch.




curl -X GET "localhost:9200"
curl: (52) Empty reply from server


my service file looks like this

NotifyAccess=all
RuntimeDirectory=elasticsearch
PrivateTmp=true
Environment=ES_HOME=/usr/share/elasticsearch
Environment=ES_PATH_CONF=/etc/elasticsearch-instance-1
Environment=PID_DIR=/var/run/elasticsearch
Environment=ES_SD_NOTIFY=true
EnvironmentFile=-/etc/default/elasticsearch

WorkingDirectory=/usr/share/elasticsearch

User=elasticsearch
Group=elasticsearch

#ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet
ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch-instance-1.pid --quiet

From Elastic Search to Elasticsearch

May be it's secured so you should use https instead of http?

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