# Some problems when running esrally

**URL:** <https://discuss.elastic.co/t/some-problems-when-running-esrally/59091>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [August 27, 2016, 8:45am UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091 "2016-08-27T08:45:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcCl](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@abcCl](https://discuss.elastic.co/u/abcCl)\
**Post date:** [August 27, 2016, 8:45am UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/1 "2016-08-27T08:45:23Z")

</div>

when i am running esrally ,  
/usr/local/python34/bin/esrally --pipeline=from-distribution --distribution-version=2.3.0  
i get some probelems like:

ERROR: Cannot race

Reason: Could not fetch source tree from '[https://github.com/elastic/rally-tracks](https://github.com/elastic/rally-tracks)'

Please check the log file [/home/dba/.rally/benchmarks/races/2016-08-27-08-29-18/local/logs/rally\_out.log] for further details first.

and the log is:

2016-08-27 08:29:18,904 rally.main INFO Rally version [0.3.2]  
2016-08-27 08:29:18,904 rally.main INFO Command line arguments: Namespace(advanced\_config=False, car='defaults', challenge='append-no-conflicts', client\_options='timeout:90,request\_timeout:90', configuration\_name=None, data\_paths=None, distribution\_repository='release', distribution\_version='2.3.0', effective\_start\_date=datetime.datetime(2016, 8, 27, 8, 29, 18, 898420), offline=False, pipeline='from-distribution', preserve\_install=False, quiet=False, report\_file='', report\_format='markdown', revision='current', rounds=1, subcommand=None, target\_hosts='localhost:9200', telemetry='', track='geonames', user\_tag='')  
2016-08-27 08:29:18,944 rally.racecontrol INFO Resolved download URL [[https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.0/elasticsearch-2.3.0.tar.gz](https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.0/elasticsearch-2.3.0.tar.gz)] for version [2.3.0]  
2016-08-27 08:29:18,944 rally.racecontrol INFO Skipping download for version [2.3.0]. Found an existing binary locally at [/home/dba/.rally/benchmarks/distributions/elasticsearch-2.3.0.tar.gz].  
2016-08-27 08:29:18,949 root ERROR Cannot run subcommand [race].  
Traceback (most recent call last):  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/rally.py", line 302, in dispatch\_sub\_command  
racecontrol.run(cfg)  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/racecontrol.py", line 336, in run  
pipeline()  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/racecontrol.py", line 58, in **call**  
step()  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/racecontrol.py", line 27, in **call**  
self.command(self.ctx)  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/racecontrol.py", line 88, in prepare\_track  
ctx.track = track.load\_track(ctx.config, track\_name)  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/track.py", line 237, in load\_track  
repo = TrackRepository(cfg)  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/track.py", line 321, in **init**  
git.fetch(src=self.tracks\_dir, remote=self.url)  
File "/usr/local/python34/lib/python3.4/site-packages/esrally/utils/git.py", line 27, in fetch  
raise exceptions.SupplyError("Could not fetch source tree from '%s'" % remote)  
esrally.exceptions.SupplyError: Could not fetch source tree from '[https://github.com/elastic/rally-tracks](https://github.com/elastic/rally-tracks)'

and my rally configure is

[meta]  
config.version = 5

[system]  
root.dir = /home/dba/.rally/benchmarks  
log.root.dir = logs  
[env.name](http://env.name) = local

[source]  
local.src.dir = /home/dba/.rally/benchmarks/src  
remote.repo.url = [https://github.com/elastic/elasticsearch.git](https://github.com/elastic/elasticsearch.git)

[build]  
gradle.bin = /usr/local/gradle-2.13/bin/gradle

[provisioning]  
local.install.dir = install

[runtime]  
java8.home = /usr/java/jdk1.8.0\_101

[benchmarks]  
local.dataset.cache = ${system:root.dir}/data

[reporting]  
datastore.type = in-memory  
datastore.host =  
datastore.port =  
datastore.secure =  
datastore.user =  
datastore.password =

[tracks]  
default.url = [https://github.com/elastic/rally-tracks](https://github.com/elastic/rally-tracks)

i was stuck here for two days , i was wondering why？

anthor question is that how can i use rally without network？

---

<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:** [August 30, 2016, 6:15am UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/2 "2016-08-30T06:15:31Z")

</div>

Hi @abcCl,

Rally can benchmark using different data sets. You can even benchmark older versions of Elasticsearch starting with 1.7 until the latest master snapshots build. To support that, we store meta-information in a git repository that is hosted on Github ([https://github.com/elastic/rally-tracks](https://github.com/elastic/rally-tracks)) and it's exactly this repository that is causing trouble.

Rally needs a network connection to fetch this repository. It will also need a network connection to download the data set that it uses for benchmarking. Now, you could download all of them yourself and place the files in the right directories but this is inconvenient. It's similar to other tools like Maven or Gradle that also need an Internet connection to download JAR files for the build.

However, there is a `--offline` flag that skips a few up-to-date checks in Rally (but not all of them). In the next version, we also don't check the track repository for updates once it has been downloaded.

I hope that helps.

Daniel

---

<div class="post-metadata">

**Author:** ![abcCl](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@abcCl](https://discuss.elastic.co/u/abcCl)\
**Post date:** [August 30, 2016, 2:19pm UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/3 "2016-08-30T14:19:50Z")

</div>

thanks for your help.  
after i change the git from version 1.8.3 to 2.8.1,erverthing goes well.  
😇

---

<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:** [August 30, 2016, 2:30pm UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/4 "2016-08-30T14:30:28Z")

</div>

Hi @abcCl,

great to hear. 🙂

Daniel

---

<div class="post-metadata">

**Author:** ![uncas](https://avatars.discourse-cdn.com/v4/letter/u/e8c25b/32.png) [@uncas](https://discuss.elastic.co/u/uncas)\
**Post date:** [October 5, 2016, 5:40pm UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/5 "2016-10-05T17:40:28Z")

</div>

I hit the same issue due to git 1.8 in my RHEL 7.1 environment and **esrally v. 0.4.1**

I resolved it by installing [**git19 via Red Hat Software Collections**](https://www.softwarecollections.org/en/scls/rhscl/git19/)

```
$ git --version
git version 1.9.4

```

With this version of git, benchmark runs just fine.

@danielmitterdorfer, maybe you can add this pre-req to 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:** [October 5, 2016, 7:01pm UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/6 "2016-10-05T19:01:12Z")

</div>

Hi @uncas,

cool, thanks for the hint. Much appreciated! I'll update the docs.

Daniel

---

<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:** [July 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/some-problems-when-running-esrally/59091/7 "2017-07-05T22:14:37Z")

</div>


