Faield to start elastic search

I am unable to start Elasticsearch, it shows code exited
</>
Elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/Elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-04-18 05:17:42 EDT; 59s ago
Docs: https://www.elastic.co
Process: 21013 ExecStart=/usr/share/Elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/Elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 21013 (code=exited, status=1/FAILURE)

Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.cli.Command.main(Command.java:77)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd-entrypoint[21013]: For complete error details, refer to the log at /usr/share/Elasticsearch/logs/Elasticsearch.log
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd[1]: Elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd[1]: Elasticsearch.service: Failed with result 'exit-code'.
Apr 18 05:17:42 kd-4c4c4544-004d-4c10-8030-c8c04f324633.ibm.com systemd[1]: Failed to start Elasticsearch.<>

I tried to look into the logs as suggested but logs folder is not there

HI @Paritosh_Pandey

What operating system are you using? Was Elasticsearch installed via package management? is it a container? Was the service already installed before or are you doing a fresh install?

Best regards

Hi @Paritosh_Pandey Welcome to the community

Per the docs here To look at the logs try

sudo journalctl -f --unit elasticsearch

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