Es rally list tracks error

esrally list tracks

____        ____

/ __ ____ / / / __
/ // / __ `/ / / / / /
/ , / // / / / // /
/
/ ||_,///_, /
/____/

[ERROR] Cannot list. substring not found.

What could be the reason? Here is a snapshot of the rally log:

File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/racecontrol.py", line 250, in race
raise exceptions.RallyError(result.message, result.cause)
esrally.exceptions.RallyError: ('Error in race control (substring not found)', None)
.
.
.

File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/utils/git.py", line 129, in
return [(b[b.index("/") + 1:]).strip() for b in branch_names if not b.endswith("/HEAD")]
ValueError: substring not found

.
.
2024-03-05 05:39:28,0 -not-actor-/PID:9728 esrally.utils.net INFO Connecting directly to the Internet (no proxy support).
2024-03-05 05:39:28,21 -not-actor-/PID:9728 esrally.rally INFO Detected a working Internet connection.
2024-03-05 05:39:28,128 -not-actor-/PID:9728 esrally.rally ERROR A fatal error occurred while running subcommand [list].
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/rally.py", line 704, in dispatch_sub_command
dispatch_list(cfg)
.
.
.
File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/utils/git.py", line 129, in _cleanup_remote_branch_names
return [(b[b.index("/") + 1:]).strip() for b in branch_names if not b.endswith("/HEAD")]
File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/utils/git.py", line 129, in
return [(b[b.index("/") + 1:]).strip() for b in branch_names if not b.endswith("/HEAD")]
ValueError: substring not found
.
.
.2024-03-05 05:42:06,154 -not-actor-/PID:10939 esrally.rally ERROR A fatal error occurred while running subcommand [list].
Traceback (most recent call last):
File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/rally.py", line 704, in dispatch_sub_command
dispatch_list(cfg)
File "/home/ec2-user/.lo
.
.
File "/home/ec2-user/.local/lib/python3.7/site-packages/esrally/utils/git.py", line 129, in
return [(b[b.index("/") + 1:]).strip() for b in branch_names if not b.endswith("/HEAD")]
ValueError: substring not found
2024-03-05 05:51:02,97 -not-actor-/PID:15508 esrally.rally INFO Race id [1919295e-ca3f-416e-8c02-7d320c84e830]

Hello again,

The first issue we need to sort is that you are running python 3.7, this python release is end of life, and we stopped support some time ago. Infact, the last release we made with 3.7 support was 1.4.1 which was in Feb 2020.

If you are on amazon linux 2, then I believe you need to enable their extended library for access to python versions newer than 3.7

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