Elasticsearch not starting as a service in RHEL 8

Hi
When I try to start elasticsearch using the following command, I get the following error message

[root@gefela ansible_junos]# systemctl restart logstash elasticsearch kibana
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
[root@gefela ansible_junos]# systemctl status elasticsearch.serviccce
Unit elasticsearch.serviccce.service could not be found.
[root@gefela ansible_junos]# systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-04-13 09:46:26 BST; 58s ago
Docs: http://www.elastic.co
Process: 39975 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 39975 (code=exited, status=1/FAILURE)

Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161)
Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.cli.Command.main(Command.java:90)

Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126)
Apr 13 09:46:25 gefela elasticsearch[39975]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
Apr 13 09:46:25 gefela elasticsearch[39975]: For complete error details, refer to the log at /var/log/elasticsearch/gefela.log
Apr 13 09:46:26 gefela systemd[1]: elasticsearch.service: Main process exited, code=exited,

status=1/FAILURE
Apr 13 09:46:26 gefela systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Apr 13 09:46:26 gefela systemd[1]: Failed to start Elasticsearch.
[root@gefela ansible_junos]#

This

Check the elasticsearch log for errors.

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