# Rally fails to untar elastic search

**URL:** <https://discuss.elastic.co/t/rally-fails-to-untar-elastic-search/142711>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [August 2, 2018, 8:10am UTC](https://discuss.elastic.co/t/rally-fails-to-untar-elastic-search/142711 "2018-08-02T08:10:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suraj\_NR](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Suraj\_NR](https://discuss.elastic.co/u/Suraj_NR)\
**Post date:** [August 2, 2018, 8:10am UTC](https://discuss.elastic.co/t/rally-fails-to-untar-elastic-search/142711/1 "2018-08-02T08:10:48Z")

</div>

Rally fails to untar Elastic search

ES version - 1.7.3  
esrally 1.0.0

Checking connectivity... done.  
[INFO] Preparing for race ...  
[INFO] Downloading Elasticsearch 1.7.3 (27.2 MB total size) [100%]  
[ERROR] Cannot race. file could not be opened successfully  
Traceback (most recent call last):  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/mechanic/mechanic.py", line 541, in receiveMsg\_StartNodes  
nodes = self.mechanic.start\_engine()  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/mechanic/mechanic.py", line 680, in start\_engine  
node\_configs.append(p.prepare(binaries))  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/mechanic/provisioner.py", line 142, in prepare  
self.es\_installer.install(binary["elasticsearch"])  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/mechanic/provisioner.py", line 230, in install  
io.decompress(binary, self.install\_dir)  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/utils/io.py", line 194, in decompress  
\_do\_decompress(target\_directory, tarfile.open(zip\_name))  
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/tarfile.py", line 1553, in open  
raise ReadError("file could not be opened successfully")  
tarfile.ReadError: file could not be opened successfully

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [August 2, 2018, 11:24am UTC](https://discuss.elastic.co/t/rally-fails-to-untar-elastic-search/142711/2 "2018-08-02T11:24:30Z")

</div>

Hello,

I just tested this using the following command and it worked as expected:

```auto
./rally --distribution-version 1.7.3 --track geopoint

```

The tarball that Rally downloaded can be found under `~/.rally/benchmarks/distributions` and you can verify the integrity of the download with a command like `tar zxvf elasticsearch-1.7.3.tar.gz`. If the download is corrupt, you should retry again ensuring a stable internet connection or have a look at the section describing how to use Rally in the [offline mode](https://esrally.readthedocs.io/en/stable/offline.html?highlight=offline).

Note that if you've used an older version of Rally before, it'd be best, after making a backup, to clean your `~/.rally` dir and re-run `./rally configure` as there have been changes in the rally-teams repository wrt handling of Java.

Dimitris

---

<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:** [August 30, 2018, 11:24am UTC](https://discuss.elastic.co/t/rally-fails-to-untar-elastic-search/142711/3 "2018-08-30T11:24:35Z")

</div>

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