# Stuck in preparing for race

**URL:** <https://discuss.elastic.co/t/stuck-in-preparing-for-race/339143>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 25, 2023, 5:38am UTC](https://discuss.elastic.co/t/stuck-in-preparing-for-race/339143 "2023-07-25T05:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maximiliano\_carrasco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maximiliano_carrasco/32/123820_2.png) [@maximiliano\_carrasco](https://discuss.elastic.co/u/maximiliano_carrasco)\
**Post date:** [July 25, 2023, 5:38am UTC](https://discuss.elastic.co/t/stuck-in-preparing-for-race/339143/1 "2023-07-25T05:38:46Z")

</div>

I am trying to use esrally but it keeps stuck in "preparing for race..."

I create a track with:

esrally create-track  
--track=test  
--target-hosts=host  
--client-options="use\_ssl:true,verify\_certs:true,basic\_auth\_user:'user',basic\_auth\_password:'pw'" --indices="test" --output-path=~/tracks

using my credentials and then running:

esrally race --track-path=/Users/maximiliano/tracks/test

I also try using one of the default track

esrally race --track=geonames

and keep stuck in preparing for race also

Here are the logs

```auto
2023-07-25 05:27:34,832 -not-actor-/PID:56695 esrally.rally INFO Python [namespace(name='cpython', cache_tag='cpython-311', version=sys.version_info(major=3, minor=11, micro=3, releaselevel='final', serial=0), hexversion=51053552, _multiarch='darwin')]
2023-07-25 05:27:34,833 -not-actor-/PID:56695 esrally.rally INFO Rally version [2.8.0]
2023-07-25 05:27:34,833 -not-actor-/PID:56695 esrally.utils.net INFO Connecting directly to the Internet (no proxy support) for [all_proxy].
2023-07-25 05:27:34,833 -not-actor-/PID:56695 esrally.utils.net INFO Connecting directly to the Internet (no proxy support) for [all_proxy].
2023-07-25 05:27:34,833 -not-actor-/PID:56695 esrally.rally INFO Cleaning track dependency directory [/Users/maximiliano/.rally/libs]...
2023-07-25 05:27:34,834 -not-actor-/PID:56695 esrally.rally INFO Killing running Rally processes
2023-07-25 05:27:34,880 -not-actor-/PID:56695 esrally.rally INFO Actor system already running locally? [False]
2023-07-25 05:27:34,881 -not-actor-/PID:56695 esrally.actor INFO Starting actor system with system base [multiprocTCPBase] and capabilities [{'coordinator': True, 'ip': '127.0.0.1', 'Convention Address.IPv4': '127.0.0.1:1900'}].
2023-07-25 05:27:44,907 -not-actor-/PID:56695 root WARNING Unable to get address info for address MacBook-Air-de-maximiliano.local (2, 2, 17, 0): <class 'socket.gaierror'> [Errno 8] nodename nor servname provided, or not known
2023-07-25 05:27:49,909 -not-actor-/PID:56695 root WARNING Unable to get address info for address MacBook-Air-de-maximiliano.local (2, 2, 17, 0): <class 'socket.gaierror'> [Errno 8] nodename nor servname provided, or not known
2023-07-25 05:27:54,912 -not-actor-/PID:56695 root WARNING Unable to get address info for address MacBook-Air-de-maximiliano.local (2, 2, 17, 1): <class 'socket.gaierror'> [Errno 8] nodename nor servname provided, or not known
2023-07-25 05:27:59,915 -not-actor-/PID:56695 root WARNING Unable to get address info for address MacBook-Air-de-maximiliano.local (2, 2, 17, 1): <class 'socket.gaierror'> [Errno 8] nodename nor servname provided, or not known
2023-07-25 05:27:59,937 -not-actor-/PID:56778 root INFO ++++ Actor System gen (3, 10) started, admin @ ActorAddr-(T|:1900)
2023-07-25 05:27:59,955 -not-actor-/PID:56695 esrally.racecontrol INFO Race id is [bc5747bf-ba12-4934-9422-71a1b46f7df4]
2023-07-25 05:27:59,956 -not-actor-/PID:56695 esrally.racecontrol INFO User specified no pipeline. Automatically derived pipeline [from-sources].
2023-07-25 05:27:59,956 -not-actor-/PID:56695 esrally.racecontrol INFO Setting default host to [127.0.0.1:39200]
2023-07-25 05:27:59,959 ActorAddr-(T|:1900)/PID:56778 esrally.actor DEBUG Capabilities [{'coordinator': True, 'ip': '127.0.0.1', 'Convention Address.IPv4': '127.0.0.1:1900', 'Thespian ActorSystem Name': 'multiprocTCPBase', 'Thespian ActorSystem Version': 2, 'Thespian Watch Supported': True, 'Python Version': (3, 11, 3, 'final', 0), 'Thespian Generation': (3, 10), 'Thespian Version': '1690262879922'}] match requirements [{'coordinator': True}].
2023-07-25 05:28:00,771 ActorAddr-(T|:63300)/PID:56780 esrally.utils.repo INFO Checking out [master] in [/Users/maximiliano/.rally/benchmarks/tracks/default] for distribution version [None].
2023-07-25 05:28:00,836 ActorAddr-(T|:63300)/PID:56780 esrally.utils.process INFO Already on 'master'
Your branch is up to date with 'origin/master'.

2023-07-25 05:28:00,837 ActorAddr-(T|:63300)/PID:56780 esrally.utils.repo INFO Rebasing on [master] in [/Users/maximiliano/.rally/benchmarks/tracks/default] for distribution version [None].
2023-07-25 05:28:00,907 ActorAddr-(T|:63300)/PID:56780 esrally.utils.process INFO Already on 'master'
Your branch is up to date with 'origin/master'.

2023-07-25 05:28:00,946 ActorAddr-(T|:63300)/PID:56780 esrally.utils.process INFO Current branch master is up to date.

2023-07-25 05:28:00,991 ActorAddr-(T|:63300)/PID:56780 esrally.track.loader INFO Reading track specification file [/Users/maximiliano/.rally/benchmarks/tracks/default/geonames/track.json].
2023-07-25 05:28:01,28 ActorAddr-(T|:63300)/PID:56780 esrally.track.loader INFO Final rendered track for '/Users/maximiliano/.rally/benchmarks/tracks/default/geonames/track.json' has been written to '/var/folders/lr/y_6t5gsn4f36n48p8kdphd2h0000gn/T/tmpezn_1kte.json'.
2023-07-25 05:28:01,37 ActorAddr-(T|:63300)/PID:56780 esrally.track.loader INFO Loading template [definition for index geonames in index.json].
2023-07-25 05:28:01,42 ActorAddr-(T|:63300)/PID:56780 esrally.utils.modules INFO Loading component [geonames] from [/Users/maximiliano/.rally/benchmarks/tracks/default/geonames]
2023-07-25 05:28:01,45 ActorAddr-(T|:63300)/PID:56780 esrally.metrics INFO Creating in-memory metrics store
2023-07-25 05:28:01,45 ActorAddr-(T|:63300)/PID:56780 esrally.metrics INFO Opening metrics store for race timestamp=[20230725T052734Z], track=[geonames], challenge=[append-no-conflicts], car=[['defaults']]
2023-07-25 05:28:01,45 ActorAddr-(T|:63300)/PID:56780 esrally.metrics INFO Creating file race store
2023-07-25 05:28:01,45 ActorAddr-(T|:63300)/PID:56780 esrally.actor INFO Asking mechanic to start the engine.
2023-07-25 05:28:01,59 ActorAddr-(T|:63318)/PID:56801 esrally.actor INFO Received signal from race control to start engine.
2023-07-25 05:28:01,790 ActorAddr-(T|:63318)/PID:56801 esrally.utils.repo INFO Checking out [master] in [/Users/maximiliano/.rally/benchmarks/teams/default] for distribution version [None].
2023-07-25 05:28:01,844 ActorAddr-(T|:63318)/PID:56801 esrally.utils.process INFO Switched to branch 'master'
Your branch is up to date with 'origin/master'.

2023-07-25 05:28:01,845 ActorAddr-(T|:63318)/PID:56801 esrally.utils.repo INFO Rebasing on [master] in [/Users/maximiliano/.rally/benchmarks/teams/default] for distribution version [None].
2023-07-25 05:28:01,913 ActorAddr-(T|:63318)/PID:56801 esrally.utils.process INFO Already on 'master'
Your branch is up to date with 'origin/master'.

2023-07-25 05:28:01,948 ActorAddr-(T|:63318)/PID:56801 esrally.utils.process INFO Current branch master is up to date.

2023-07-25 05:28:01,991 ActorAddr-(T|:63318)/PID:56801 esrally.actor INFO Cluster consisting of [{'host': '127.0.0.1', 'port': 39200}] will be provisioned by Rally.

```

---

<div class="post-metadata">

**Author:** ![Bradley\_Deam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradley_deam/32/52991_2.png) [@Bradley\_Deam](https://discuss.elastic.co/u/Bradley_Deam)\
**Post date:** [July 25, 2023, 6:09am UTC](https://discuss.elastic.co/t/stuck-in-preparing-for-race/339143/2 "2023-07-25T06:09:21Z")

</div>

Rally is trying to provision a host (cluster) to benchmark against:

> ```auto
> 2023-07-25 05:28:01,991 ActorAddr-(T|:63318)/PID:56801 esrally.actor INFO Cluster consisting of [{'host': '127.0.0.1', 'port': 39200}] will be provisioned by Rally.`
> 
> ```

It could be that Rally is still downloading the Elasticsearch distribution, but it could also be related to this bug:

- [esrally CLI hangs if ES port is already bound · Issue #1128 · elastic/rally · GitHub](https://github.com/elastic/rally/issues/1128)

If you're on macOS it could also be related to:

- [Rally hangs indefinitely on OSX when running 'esrally race --revision' · Issue #1575 · elastic/rally · GitHub](https://github.com/elastic/rally/issues/1575)

If you have a pre-existing cluster, add `pipeline=benchmark-only` to your invocation:

```auto
esrally race --track-path=/Users/maximiliano/tracks/test --pipeline=benchmark-only --target-hosts ...

```

---

<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:** [August 22, 2023, 6:09am UTC](https://discuss.elastic.co/t/stuck-in-preparing-for-race/339143/3 "2023-08-22T06:09:50Z")

</div>

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