Hi All,
I've installed Elasticsearch 7 on CentOS 7, I faced a problem when I try to start it.
Sometimes it's work fine, then it's failed !
Please find the following code ;
ā elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-10-17 17:18:53 UTC; 7s ago
Docs: https://www.elastic.co
Process: 5563 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 5563 (code=exited, status=1/FAILURE)
CGroup: /system.slice/elasticsearch.service
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114)
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: at org.elasticsearch.cli.Command.main(Command.java:79)
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123)
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd-entrypoint[5563]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/MagentoCluster.log
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd[1]: Failed to start Elasticsearch.
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd[1]: Unit elasticsearch.service entered failed state.
Oct 17 17:18:53 ip-97-74-80-153.ip.secureserver.net systemd[1]: elasticsearch.service failed.