Rally fails to untar elastic search

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
File " /ES-1.7.3/Python-3.4.2-dist/lib/python3.4/site-packages/esrally/mechanic/provisioner.py", line 142, in prepare
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


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

./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.

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.


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