# Issue running elastics/security track in esrally offline mode

**URL:** <https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [June 21, 2023, 4:24pm UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609 "2023-06-21T16:24:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swathi\_Kakumanu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swathi_kakumanu/32/117764_2.png) [@Swathi\_Kakumanu](https://discuss.elastic.co/u/Swathi_Kakumanu)\
**Post date:** [June 21, 2023, 4:24pm UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609/1 "2023-06-21T16:24:40Z")

</div>

Hi,

I am trying to run esrally in offline mode. I am successful in running the http\_logs or geonames tracks in offline mode. However, I am facing issue when running the elastic/security or elastic/logs tracks in offline mode.

The command that I used to run elastic/security track:  
`esrally race --kill-running-processes --offline --pipeline benchmark-only --track=elastic/security --challenge security-indexing --target-hosts=192.168.105.116:9200 --client-options="use_ssl:true,verify_certs:true,ca_certs:'/home/administrator/ca.crt',basic_auth_user:'elastic',basic_auth_password:'xxxxx'"`

I am receiving the below error:

> [INFO] Race id is [2b29f580-d61c-4c25-8547-391a69c460e1]  
> [WARNING] Local changes in [/home/administrator/.rally/benchmarks/tracks/default] prevent tracks update from remote. Please commit your changes.  
> [INFO] Installing track dependencies [geneve==0.2.0, pyyaml]  
> [WARNING] Local changes in [/home/administrator/.rally/benchmarks/tracks/default] prevent tracks update from remote. Please commit your changes.  
> [WARNING] Local changes in [/home/administrator/.rally/benchmarks/tracks/default] prevent tracks update from remote. Please commit your changes.  
> [WARNING] Local changes in [/home/administrator/.rally/benchmarks/tracks/default] prevent tracks update from remote. Please commit your changes.
> 
> [ERROR] Cannot race. Traceback (most recent call last):  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/actor.py", line 92, in guard  
> return f(self, msg, sender)  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/driver/driver.py", line 539, in receiveMsg\_WorkerIdle  
> self.transition\_when\_all\_children\_responded(sender, msg, self.Status.PROCESSOR\_RUNNING, self.Status.PROCESSOR\_COMPLETE, self.resume)  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/actor.py", line 157, in transition\_when\_all\_children\_responded  
> transition()  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/driver/driver.py", line 514, in resume  
> self.\_seed\_tasks(self.processors.get())  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/driver/driver.py", line 522, in \_seed\_tasks  
> self.tasks = list(WorkerTask(func, params) for func, params in processor.on\_prepare\_track(self.track, self.data\_root\_dir))  
> File "/home/administrator/.rally/benchmarks/tracks/default/elastic/shared/track\_processors/data\_generator.py", line 131, in on\_prepare\_track  
> prep.prepare\_document\_set(document\_set, data\_root)  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/track/loader.py", line 620, in prepare\_document\_set  
> self.downloader.download(document\_set.base\_url, target\_path, expected\_size)  
> File "/home/administrator/.local/lib/python3.8/site-packages/esrally/track/loader.py", line 510, in download  
> raise exceptions.SystemSetupError(f"Cannot find [{target\_path}]. Please disable offline mode and retry.")  
> esrally.exceptions.SystemSetupError: **Cannot find [/home/administrator/.rally/benchmarks/data/elastic/security/auditbeat-security/macos-auditbeat.json.bz2**]. Please disable offline mode and retry.

Can someone pls provide the guidance here.

Hi @Quentin_Pradet, do you see any additional steps to be done here?

this was the procedure followed to download elastic/security track

> **[Offline Usage - Rally 2.12.0 documentation](https://esrally.readthedocs.io/en/stable/offline.html)**

# downloads the script from Github

curl -O [https://raw.githubusercontent.com/elastic/rally-tracks/master/download.sh](https://raw.githubusercontent.com/elastic/rally-tracks/master/download.sh)  
chmod u+x download.sh

# download all data for the elastic track

./download.sh elastic

---

<div class="post-metadata">

**Author:** ![Quentin\_Pradet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_pradet/32/94192_2.png) [@Quentin\_Pradet](https://discuss.elastic.co/u/Quentin_Pradet)\
**Post date:** [June 27, 2023, 1:26pm UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609/2 "2023-06-27T13:26:55Z")

</div>

Sorry, the `elastic/logs`, `elastic/security` and `elastic/endpoint` do not currently support offline mode. I'll update this issue when they do.

---

<div class="post-metadata">

**Author:** ![Swathi\_Kakumanu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swathi_kakumanu/32/117764_2.png) [@Swathi\_Kakumanu](https://discuss.elastic.co/u/Swathi_Kakumanu)\
**Post date:** [July 5, 2023, 3:59pm UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609/3 "2023-07-05T15:59:16Z")

</div>

Thanks for the confirmation @Quentin_Pradet . Yes, I realised that those tracks are not working in offline mode.

Hence started working on fixing my certificate issue of online mode. I was able to figure out the temporary workaround (also updated in [Max retries exceeded with url: /pmc/documents.json.bz2 SSLCertVerificationError [SSL: CERTIFICATE\_VERIFY\_FAILED] - #8 by Swathi\_Kakumanu](https://discuss.elastic.co/t/max-retries-exceeded-with-url-pmc-documents-json-bz2-sslcertverificationerror-ssl-certificate-verify-failed/335708/8)) for online mode. With that I am able to run security track in online mode.

---

<div class="post-metadata">

**Author:** ![Quentin\_Pradet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_pradet/32/94192_2.png) [@Quentin\_Pradet](https://discuss.elastic.co/u/Quentin_Pradet)\
**Post date:** [July 6, 2023, 4:49am UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609/4 "2023-07-06T04:49:50Z")

</div>

Thanks for reporting your success, it's really appreciated! And sorry for the lack of offline mode support in elastic/logs, it's a bug we'll have to fix.

---

<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 3, 2023, 4:50am UTC](https://discuss.elastic.co/t/issue-running-elastics-security-track-in-esrally-offline-mode/336609/5 "2023-08-03T04:50:44Z")

</div>

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