Elasticsearch elasticsearch.service Main process exited, code=exited, status=1 FAILURE

September 27, 2021 . 1 MIN READ

Hallo

i was try to make a single node of elasticsearch on my centos 7. In the first installation of elasticsearch after i’ve done install centos 7.its just fine,the elasticsearch works very well.

But im very confused ,the faillure always attempts me after i try to reinstalling elasticsearch for the second times. I had to Re-Installing of my centos 7 if wanted the elasticsearch works. Pls help!.

There is the error

[root@gilang ~]# systemctl restart elasticsearch
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
[root@gilang ~]# systemctl status elasticsearch -l
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-02-05 11:16:52 WIB; 4s ago
Docs: http://www.elastic.co
Process: 2506 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p
${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 2506 (code=exited, status=1/FAILURE)

Feb 05 11:16:49 gilang systemd[1]: Starting Elasticsearch…
Feb 05 11:16:50 gilang elasticsearch[2506]: OpenJDK 64-Bit Server VM warning: Option
UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a
future release.
Feb 05 11:16:52 gilang systemd[1]: elasticsearch.service: main process exited,
code=exited, status=1/FAILURE
Feb 05 11:16:52 gilang systemd[1]: Failed to start Elasticsearch.
Feb 05 11:16:52 gilang systemd[1]: Unit elasticsearch.service entered failed state.
Feb 05 11:16:52 gilang systemd[1]: elasticsearch.service failed.

Resource: https://discuss.elastic.co/t/failed-to-start-elasticsearch-code-exited-status-1-failure/217898

Read more: https://discuss.elastic.co/t/failed-to-start-elasticsearch-code-exited-status-1-failure/217898/7

Leave a Reply

Your email address will not be published. Required fields are marked *