Failed to start Elasticsearch service after fresh installation

Hello,

Just finished installation on Debian 10 all went well during installation , when i try to start elasticsearh service i get error to start, when get status the following error appear shown below
any idea?
Please advice
Thanks

systemctl status elasticsearch.service
ā— elasticsearch.service - Elasticsearch
   Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2021-11-04 11:59:49 EST; 1s ago
     Docs: https://www.elastic.co
  Process: 51605 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 51605 (code=exited, status=1/FAILURE)

Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at java.base/java.nio.file.Files.newByteChannel(Files.java:426)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at java.base/java.nio.file.Files.newInputStream(Files.java:160)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at org.elasticsearch.tools.launchers.JvmOptionsParser.readJvmOptionsFiles(JvmOptionsParser.java:167)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:128)
Nov 04 11:59:49 dlt-srvil-siem01 systemd-entrypoint[51605]:         at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:95)
Nov 04 11:59:49 dlt-srvil-siem01 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 11:59:49 dlt-srvil-siem01 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Nov 04 11:59:49 dlt-srvil-siem01 systemd[1]: Failed to start Elasticsearch.

Guessing that you have an unsupported JVM option somewhere.

1 Like