ElasticSearch didn't start at first try

Hello Everyone,
during deployment of my VM in my POD, ElasticSearch didn't start.
issue on Journalctl is following :

Dec 15 17:33:05 systemd[1]: Starting Elasticsearch...
-- Subject: Unit elasticsearch.service has begun start-up

Dec 15 17:33:05 systemd[3983]: Failed at step RUNTIME_DIRECTORY spawning /usr/share/elasticsearch/bin/elasticsearch: File exists
-- Subject: Process /usr/share/elasticsearch/bin/elasticsearch could not be executed

-- The process /usr/share/elasticsearch/bin/elasticsearch could not be executed and failed.
-- The error number returned by this process is 17.
Dec 15 17:33:05 systemd[1]: elasticsearch.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY

then, when i'm starting it manually, it's start correctly...
So I really don't understand what happening

anybody have an idea ?

Welcome to our community! :smiley:
Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

You should look in /var/log/elasticsearch for more information.

Hi Mark,
sur you're right I should format my sharing. my apologize.
I try to look in /var/log/elasticsearch but this folder is empty

the only logs that i found is in journalctl :
Dec 15 19:23:17 systemd[1]: Starting Elasticsearch...
-- Unit elasticsearch.service has begun starting up.
Dec 15 19:23:17 systemd[3986]: Failed at step RUNTIME_DIRECTORY spawning /usr/share/elasticsearch/bin/systemd-entrypoint: File exists
-- Subject: Process /usr/share/elasticsearch/bin/systemd-entrypoint could not be executed
Dec 15 19:23:17 systemd[1]: elasticsearch.service: main process exited, code=exited, status=233/RUNTIME_DIRECTORY

I found a similar issue (elasticsearch-wont-start-on-reboot)
I add a rm /usr/lib/tmpfiles.d/elasticsearch.conf before start cmd in the script but... it doesn't fix it.
If I'm run manually through ssh remote the systemctl start elasticsearch.service
elasticsearch service run fine and logs are available in /var/log/elasticsearch.

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