# ERROR Unable to connect to Elasticsearch cluster. Error: 'Elasticsearch' object has no attribute 'deprecation'

**URL:** <https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [February 27, 2020, 8:59am UTC](https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180 "2020-02-27T08:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokulnath](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Gokulnath](https://discuss.elastic.co/u/Gokulnath)\
**Post date:** [February 27, 2020, 8:59am UTC](https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180/1 "2020-02-27T08:59:45Z")

</div>

I have installed elasticsearch version 7.2.1 and curator version is 5.6.0, then i updated the curator to version 5.7.6.because of version issue. Now when i try to run a job means im getting this error. " **ERROR Unable to connect to Elasticsearch cluster. Error: 'Elasticsearch' object has no attribute 'deprecation'**" Kindly help me on this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 27, 2020, 5:04pm UTC](https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180/2 "2020-02-27T17:04:52Z")

</div>

Try running Curator 5.8.1 instead.

---

<div class="post-metadata">

**Author:** ![Gokulnath](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Gokulnath](https://discuss.elastic.co/u/Gokulnath)\
**Post date:** [February 28, 2020, 6:01am UTC](https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180/3 "2020-02-28T06:01:57Z")

</div>

Thanks a lot theuntergeek. Now its working

---

<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:** [March 27, 2020, 6:02am UTC](https://discuss.elastic.co/t/error-unable-to-connect-to-elasticsearch-cluster-error-elasticsearch-object-has-no-attribute-deprecation/221180/4 "2020-03-27T06:02:01Z")

</div>

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