ubuntu@ip-172-31-37-106:~$ systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-06-03 20:17:48 UTC; 2min 13s ago
Docs: https://www.elastic.co
Process: 1510 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 1510 (code=exited, status=1/FAILURE)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.j>
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.cli.Command.main(Command.java:77)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
Jun 03 20:17:48 ip-172-31-37-106 systemd-entrypoint[1510]: For complete error details, refer to the log at /var/log/elasticsearch/magento-cluster.log
Jun 03 20:17:48 ip-172-31-37-106 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 20:17:48 ip-172-31-37-106 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Jun 03 20:17:48 ip-172-31-37-106 systemd[1]: Failed to start Elasticsearch.