# Error while trying to connect elastic search with curator

**URL:** https://discuss.elastic.co/t/error-while-trying-to-connect-elastic-search-with-curator/199269
**Category:** Elasticsearch
**Created:** [September 12, 2019, 2:16pm UTC](https://discuss.elastic.co/t/error-while-trying-to-connect-elastic-search-with-curator/199269 "2019-09-12T14:16:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Prafull](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prafull/32/56422_2.png) [@Prafull](https://discuss.elastic.co/u/Prafull)
#### Post date: [September 12, 2019, 2:16pm UTC](https://discuss.elastic.co/t/error-while-trying-to-connect-elastic-search-with-curator/199269/1 "2019-09-12T14:16:24Z")

</div>

Hi ,

"I have installed curator using sudo apt-get update && sudo apt-get install elasticsearch-curator"  
When i am trying to run the following command  
**curator --dry-run snapshot.yml --config curator.yml**. Getting below error.

2019-09-12 14:12:51,218 INFO Preparing Action ID: 1, "snapshot"  
2019-09-12 14:12:51,222 ERROR Elasticsearch version 7.3.1 incompatible with this version of Curator (5.2.0)  
Traceback (most recent call last):  
File "/usr/bin/curator", line 11, in   
load\_entry\_point('elasticsearch-curator==5.2.0', 'console\_scripts', 'curator')()  
File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 722, in **call**  
return self.main(\*args, \*\*kwargs)  
File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 697, in main  
rv = self.invoke(ctx)  
File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke  
return ctx.invoke(self.callback, \*\*ctx.params)  
File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke  
return callback(\*args, \*\*kwargs)  
File "/usr/lib/python2.7/dist-packages/curator/cli.py", line 211, in cli  
run(config, action\_file, dry\_run)  
File "/usr/lib/python2.7/dist-packages/curator/cli.py", line 158, in run  
client = get\_client(\*\*client\_args)  
File "/usr/lib/python2.7/dist-packages/curator/utils.py", line 800, in get\_client  
'Error: {0}'.format(e)  
elasticsearch.exceptions.ElasticsearchException: Unable to create client connection to Elasticsearch. Error: Elasticsearch version 7.3.1 incompatible with this version of Curator (5.2.0)

---

<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: [September 12, 2019, 2:35pm UTC](https://discuss.elastic.co/t/error-while-trying-to-connect-elastic-search-with-curator/199269/2 "2019-09-12T14:35:44Z")

</div>

You're using an old version of Curator which does not support ES 7.x, and suffers from a long-since-fixed version reporting bug.

Upgrade to Curator 5.7.6 to correct this. I'm not sure which repository still has 5.2.0, but it's not the [official Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.7/apt-repository.html) repository.

---

<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: [October 10, 2019, 2:35pm UTC](https://discuss.elastic.co/t/error-while-trying-to-connect-elastic-search-with-curator/199269/3 "2019-10-10T14:35:45Z")

</div>

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