# ConnectionRefusedError: \[Errno 111\] Connection refused error while running rally for an existing elastic cluster

**URL:** <https://discuss.elastic.co/t/connectionrefusederror-errno-111-connection-refused-error-while-running-rally-for-an-existing-elastic-cluster/335333>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [June 6, 2023, 11:45am UTC](https://discuss.elastic.co/t/connectionrefusederror-errno-111-connection-refused-error-while-running-rally-for-an-existing-elastic-cluster/335333 "2023-06-06T11:45:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 11, 2023, 5:32am UTC](https://discuss.elastic.co/t/connectionrefusederror-errno-111-connection-refused-error-while-running-rally-for-an-existing-elastic-cluster/335333/4 "2023-06-11T05:32:07Z")

</div>

Hi @Quentin_Pradet ,

I was able to figure out on how to use the exact rally command for Elasticsearch container from outside.

` esrally race --track=pmc --pipeline=benchmark-only --target-hosts=192.168.105.116:9200 --client-options="timeout:60,use_ssl:true,verify_certs:true,ca_certs:'/home/administrator/ca.crt',basic_auth_user:'elastic',basic_auth_password:'xxxxx`

administrator@administrator:~$ curl --insecure [https://elastic:xxxxx@192.168.105.116:9200/](https://elastic:xxxxx@192.168.105.116:9200/)  
{  
"name" : "quickstart-es-master-0",  
"cluster\_name" : "quickstart",  
"cluster\_uuid" : "wmaV7NUORjCDIfmIRaE4rw",  
"version" : {  
"number" : "8.8.0",  
"build\_flavor" : "default",  
"build\_type" : "docker",  
"build\_hash" : "c01029875a091076ed42cdb3a41c10b1a9a5a20f",  
"build\_date" : "2023-05-23T17:16:07.179039820Z",  
"build\_snapshot" : false,  
"lucene\_version" : "9.6.0",  
"minimum\_wire\_compatibility\_version" : "7.17.0",  
"minimum\_index\_compatibility\_version" : "7.0.0"  
},  
"tagline" : "You Know, for Search"  
}

Currently I am facing a different issue now with SSL Verification of esrally for [rally-tracks.elastic.co](http://rally-tracks.elastic.co)', can you please have a look at this post ( [Max retries exceeded with url: /pmc/documents.json.bz2 SSLCertVerificationError [SSL: CERTIFICATE\_VERIFY\_FAILED] - Elastic Stack / Elasticsearch - Discuss the Elastic Stack](https://discuss.elastic.co/t/max-retries-exceeded-with-url-pmc-documents-json-bz2-sslcertverificationerror-ssl-certificate-verify-failed/335708))

---

_[View the full topic](https://discuss.elastic.co/t/connectionrefusederror-errno-111-connection-refused-error-while-running-rally-for-an-existing-elastic-cluster/335333)._
