Stuck in preparing for race

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

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.

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

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:

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

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

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

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