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

**URL:** <https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [August 17, 2021, 5:33pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731 "2021-08-17T17:33:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadhana.durge](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sadhana.durge](https://discuss.elastic.co/u/sadhana.durge)\
**Post date:** [August 17, 2021, 5:33pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731/1 "2021-08-17T17:33:31Z")

</div>

Trying to run

```auto
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'))

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [August 17, 2021, 5:47pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731/2 "2021-08-17T17:47:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [August 17, 2021, 5:50pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731/3 "2021-08-17T17:50:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sadhana.durge](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sadhana.durge](https://discuss.elastic.co/u/sadhana.durge)\
**Post date:** [August 17, 2021, 5:54pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731/4 "2021-08-17T17:54:35Z")

</div>

Thanks Rick, that solved the issue.

---

<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:** [September 14, 2021, 5:54pm UTC](https://discuss.elastic.co/t/esrally-failing-with-error-cannot-race-error-in-race-control-notfounderror-404-not-found-not-found/281731/5 "2021-09-14T17:54:36Z")

</div>

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