Esrally failing with [ERROR] Cannot race. Error in race control (NotFoundError(404, 'Not Found', 'Not Found'))

Trying to run

esrally race --track=pmc  --target-hosts=*******.kb.us-west1.gcp.cloud.es.io:9243 --p
ipeline=benchmark-only --client-options="timeout:60,use_ssl:true,verify_certs:true,basic_auth_user:'elastic',basic
_auth_password:'**********'"

Verified password and end points are correct, able to access it using browser.
Not much info in logs.

2021-08-17 17:25:02,740 ActorAddr-(T|:40147)/PID:7912 esrally.actor INFO BenchmarkActor received unknown message [A
ctorExitRequest] (ignoring).
2021-08-17 17:25:05,744 -not-actor-/PID:7896 esrally.rally INFO Attempting to shutdown internal actor system.
2021-08-17 17:25:05,746 -not-actor-/PID:7911 root INFO ActorSystem Logging Shutdown
2021-08-17 17:25:05,766 -not-actor-/PID:7910 root INFO ---- Actor System shutdown
2021-08-17 17:25:05,770 -not-actor-/PID:7896 esrally.rally INFO Shutdown completed.
2021-08-17 17:25:05,770 -not-actor-/PID:7896 esrally.rally ERROR Cannot run subcommand [race].
Traceback (most recent call last):
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/rally.py", line 854, in dispatch_sub_command
race(cfg, args.kill_running_processes)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/rally.py", line 637, in race
with_actor_system(racecontrol.run, cfg)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/rally.py", line 664, in with_actor_system
runnable(cfg)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/racecontrol.py", line 357, in run
raise e
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/racecontrol.py", line 354, in run
pipeline(cfg)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/racecontrol.py", line 60, in call
self.target(cfg)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/racecontrol.py", line 292, in benchmark_only
return race(cfg, external=True)
File "/home/sadhana_durge/.local/lib/python3.8/site-packages/esrally/racecontrol.py", line 251, in race
raise exceptions.RallyError(result.message, result.cause)
esrally.exceptions.RallyError: Error in race control (NotFoundError(404, 'Not Found', 'Not Found'))

Hi @sadhana.durge,

It's a bit confusing but this part of the log is the stacktrace from the shutdown process. Can you scroll further back, looking for the part of the code that is returning a NotFoundError/404?

Thanks,
Rick B

Actually! You are pointing to the Kibana instance. You'll need the ES instance from your Elastic Cloud endpoint, it is usually the same endpoint as Kibana but with .es. instead of .kb.

Hope that helps,
Rick B

Thanks Rick, that solved the issue.

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