# Cannot create custom track

**URL:** <https://discuss.elastic.co/t/cannot-create-custom-track/111589>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [December 13, 2017, 3:07pm UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589 "2017-12-13T15:07:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Masunov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_masunov/32/45836_2.png) [@Andrey\_Masunov](https://discuss.elastic.co/u/Andrey_Masunov)\
**Post date:** [December 13, 2017, 3:07pm UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/1 "2017-12-13T15:07:07Z")

</div>

I've tried to create my track for rally, step by step based on ([http://esrally.readthedocs.io/en/stable/adding\_tracks.html#](http://esrally.readthedocs.io/en/stable/adding_tracks.html#))  
But already at step `esrally list tracks --track-path=~/rally-tracks/tutorial` I've faced error:  
"[ERROR] Cannot list. ('Track 'rally-tracks' is invalid.\n\nError details: 'description..."

Logs:  
2017-12-13 14:18:07,488 PID:761 root ERROR Cannot run subcommand [list].  
Traceback (most recent call last):  
File "/home/anm/lib/python3.5/site-packages/esrally/track/loader.py", line 499, in read  
jsonschema.validate(track\_spec, self.track\_schema)  
File "/home/anm/lib/python3.5/site-packages/jsonschema/validators.py", line 478, in validate  
cls(schema, \*args, \*\*kwargs).validate(instance)  
File "/home/anm/lib/python3.5/site-packages/jsonschema/validators.py", line 123, in validate  
raise error  
jsonschema.exceptions.ValidationError: 'operations' is a required property

```
Failed validating 'required' in schema:
    {'$schema': 'http://json-schema.org/draft-04/schema#',
...

```

I suppose, for some reason track.json is not matched with schema..but I've tried with examples from official docs.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 13, 2017, 3:11pm UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/2 "2017-12-13T15:11:35Z")

</div>

Which Rally version are you using? You can check this with `esrally --version`.

Please note that the "stable" docs are for the most-recent released version of Rally, i.e. 0.8.1 at the moment and the track syntax changes slightly per release.

---

<div class="post-metadata">

**Author:** ![Andrey\_Masunov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_masunov/32/45836_2.png) [@Andrey\_Masunov](https://discuss.elastic.co/u/Andrey_Masunov)\
**Post date:** [December 13, 2017, 3:43pm UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/3 "2017-12-13T15:43:18Z")

</div>

Yep, I've found similar issue in other post. Upgraded version. Now I'm trying to run it, but I've faced that

[INFO] Preparing for race ...  
[INFO] Rally will delete the benchmark candidate after the benchmark  
[INFO] Racing on track [rally-tracks], challenge [index-and-query] and car ['defaults'] with version [7.0.0-alpha1].

[ERROR] Cannot race. ('Could not prepare track', /home/anm/rally-tracks/documents.json is missing and it cannot be downloaded because no source URL is provided in the track.)

Strange thing is documents.json is there...  
In track.json:  
"documents": "documents.json",

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 14, 2017, 7:37am UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/4 "2017-12-14T07:37:48Z")

</div>

Please double-check that you have specified the correct number of documents and the correct file size in the track (`document-count` and `uncompressed-bytes`). The error message is misleading in that case and we'll improve it in the next version of Rally.

---

<div class="post-metadata">

**Author:** ![Andrey\_Masunov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_masunov/32/45836_2.png) [@Andrey\_Masunov](https://discuss.elastic.co/u/Andrey_Masunov)\
**Post date:** [December 14, 2017, 9:57am UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/5 "2017-12-14T09:57:30Z")

</div>

Perfect! thank you much! its working now

---

<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:** [January 11, 2018, 9:57am UTC](https://discuss.elastic.co/t/cannot-create-custom-track/111589/6 "2018-01-11T09:57:33Z")

</div>

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