# Daemon startup failed with exit code

**URL:** <https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [January 31, 2024, 7:00pm UTC](https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221 "2024-01-31T19:00:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)\
**Post date:** [January 31, 2024, 7:00pm UTC](https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221/1 "2024-01-31T19:00:17Z")

</div>

Hi everyone,

I am testing out esrally and running into the following issues while running java17 and testing 8.7.0:

```auto
[user ~]$ esrally race --distribution-version=8.7.0 --track=geonames

    ________
   / __\____ _/ / /_ __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\ __,_/_/_/\__ , /
                / ____ /

[INFO] Race id is [c66f695f-1a84-4b23-bb57-a5c6ecf83693]
[INFO] Preparing for race ...
[ERROR] Cannot race. Daemon startup failed with exit code [1]
	Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/mechanic.py", line 580, in receiveMsg_StartNodes
    self.mechanic.start_engine()
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/mechanic.py", line 700, in start_engine
    self.nodes = self.launcher.start(self.node_configs)
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/launcher.py", line 133, in start
    return [self._start_node(node_configuration, node_count_on_host) for node_configuration in node_configurations]
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/launcher.py", line 133, in <listcomp>
    return [self._start_node(node_configuration, node_count_on_host) for node_configuration in node_configurations]
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/launcher.py", line 163, in _start_node
    node_pid = self._start_process(binary_path, env)
  File "/usr/local/lib/python3.8/site-packages/esrally/mechanic/launcher.py", line 222, in _start_process
    raise exceptions.LaunchError(msg)
esrally.exceptions.LaunchError: Daemon startup failed with exit code [1]

```

I am running esrally version 2.10.0. I checked and made sure that the java version is compatible but still face this issue. Any tips would help!

---

<div class="post-metadata">

**Author:** ![gareth-ellis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gareth-ellis/32/125269_2.png) [@gareth-ellis](https://discuss.elastic.co/u/gareth-ellis)\
**Post date:** [January 31, 2024, 9:36pm UTC](https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221/2 "2024-01-31T21:36:52Z")

</div>

Hello,

Have you checked in the log files in .rally/logs and ${HOME}/.rally/benchmarks/races/c66f695f-1a84-4b23-bb57-a5c6ecf83693/elasticsearch-0/logs/server ?

There should hopefully be something in the elasticsearch log that will give a clue why it was not able to start

Let me know how you get on

Gareth

---

<div class="post-metadata">

**Author:** ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)\
**Post date:** [January 31, 2024, 11:19pm UTC](https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221/3 "2024-01-31T23:19:54Z")

</div>

Ah I had forgotten to set JAVA17\_HOME env variable. Fixed now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 28, 2024, 11:20pm UTC](https://discuss.elastic.co/t/daemon-startup-failed-with-exit-code/352221/4 "2024-02-28T23:20:30Z")

</div>

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