Esrally fetches incorrect tarball for distribution versions <= 2.x

Command Used:

esrally --distribution-version=1.7.5

I have been trying to test on 1.7.5 which is located here:

https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz

esrally seems to think it is located here:
https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/1.7.5/elasticsearch-1.7.5.tar.gz

and fails miserably as shown here:
___ ___
/ __ ____ / / / _
/ // / __ `/ / / / / /
/ , / // / / / // /
/
/ ||_,///_, /
/____/

[INFO] Writing logs to /home/mcastillo/.rally/logs/rally_out_20180529T232608Z.log
[INFO] Preparing for race ...
[FAILED]
[ERROR] Cannot race. ('Cannot download Elasticsearch distribution from [https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/1.7.5/elasticsearch-1.7.5.tar.gz]. Please check that the specified version [1.7.5] is correct.', None)
Traceback (most recent call last):
File "/home/me/myenvironment/lib/python3.4/site-packages/esrally/mechanic/supplier.py", line 311, in fetch
net.download(download_url, distribution_path, progress_indicator=progress)
File "/home/me/myenvironment/lib/python3.4/site-packages/esrally/utils/net.py", line 62, in download
raise urllib.error.HTTPError(url, r.status, "", None, None)
urllib.error.HTTPError: HTTP Error 404:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/me/myenvironment/lib/python3.4/site-packages/esrally/mechanic/mechanic.py", line 558, in receiveMsg_StartNodes
nodes = self.mechanic.start_engine()
File "/home/me/myenvironment/lib/python3.4/site-packages/esrally/mechanic/mechanic.py", line 693, in start_engine
binaries = self.supply()
File "/home/me/myenvironment/lib/python3.4/site-packages/esrally/mechanic/supplier.py", line 171, in _call
supplier.fetch()
File "/home/mcastillo/titan-env/lib/python3.4/site-packages/esrally/mechanic/supplier.py", line 318, in fetch
"version [%s] is correct." % (download_url, self.version))
esrally.exceptions.SystemSetupError: ('Cannot download Elasticsearch distribution from [https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/1.7.5/elasticsearch-1.7.5.tar.gz]. Please check that the specified version [1.7.5] is correct.', None)

Is this not supported anymore? Could this be a bug? Thanks

Hi,

thanks for reporting this. This was indeed caused by an outdated download URL configuration. It's now fixed (and similarly for 2.x). You just need to rerun Rally to get the fix automatically.

Daniel

Wow, fantastic! Thanks so much for fixing this :slight_smile:

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