Failed to start Elasticsearch

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.

Hello and welcome,

Please provide some context, just pasting some logs does not help to understand what your issue is.

You need to share logs from Elasticsearch and also look at your system log since you are having issues with the systemd service.

Since you use Ubuntu it is probably on /var/log/syslog.

Sorry, issue resolved.

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