Elasticsearch does not start

Hello community,

We installed elasticsearch following this tutorial Install Elasticsearch with Debian Package | Elasticsearch Guide [6.8] | Elastic but the service crashes immediately after running the start command.
This is the error message:
systemctl status elasticsearch.service
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-09-26 11:24:40 CEST; 4s ago
Docs: http://www.elastic.co
Process: 2269458 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 2269458 (code=exited, status=1/FAILURE)
CPU: 5.465s

Sep 26 11:24:39 myvm elasticsearch[2269458]: WARNING: System::setSecurityManager has been called by org.elasticsearch.bootstrap.Elasticsearch (file:/usr/share/elasticsearch/lib/elastic>
Sep 26 11:24:39 myvm elasticsearch[2269458]: WARNING: Please consider reporting this to the maintainers of org.elasticsearch.bootstrap.Elasticsearch
Sep 26 11:24:39 myvm elasticsearch[2269458]: WARNING: System::setSecurityManager will be removed in a future release
Sep 26 11:24:40 myvm elasticsearch[2269458]: WARNING: A terminally deprecated method in java.lang.System has been called
Sep 26 11:24:40 myvm elasticsearch[2269458]: WARNING: System::setSecurityManager has been called by org.elasticsearch.bootstrap.Security (file:/usr/share/elasticsearch/lib/elasticsearc>
Sep 26 11:24:40 myvm elasticsearch[2269458]: WARNING: Please consider reporting this to the maintainers of org.elasticsearch.bootstrap.Security
Sep 26 11:24:40 myvm elasticsearch[2269458]: WARNING: System::setSecurityManager will be removed in a future release
Sep 26 11:24:40 myvm systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Sep 26 11:24:40 myvm systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Sep 26 11:24:40 myvm systemd[1]: elasticsearch.service: Consumed 5.465s CPU time.

I checked the permissions and the config, but I'm not sure what else to check. Do you have a suggestion?

Thank you!

Welcome to our community! :smiley:

Elasticsearch 6.8 is EOL and you should not be using it. Please use 8.4 as it is the latest.

The best thing you can do here, other than use a more modern release, is to check /var/log/elasticsearch/elasticsearch.log for more information.

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