ElasticSearch 6.x failed to start

elasticsearch.service - Elasticsearch

Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Tue 2019-08-20 19:19:16 UTC; 5s ago

Docs: http://www.elastic.co

Process: 1898 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)

Main PID: 1898 (code=exited, status=1/FAILURE)

Aug 20 19:19:08 ip-172-231-30-183.ec2.internal systemd[1]: Started Elasticsearch.

Aug 20 19:19:16 ip-172-231-30-183.ec2.internal systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE

Aug 20 19:19:16 ip-172-231-30-183.ec2.internal systemd[1]: Unit elasticsearch.service entered failed state.

Aug 20 19:19:16 ip-172-231-30-183.ec2.internal systemd[1]: elasticsearch.service failed.

Hey,

can you check the logs in /var/log/elasticsearch and use the journcalctl command to check for log output when starting elasticsearch using systemd.

Please put the output of each in a gist and then we can try to debug this further. Also please specify the exact elasticsearch version.