# Error: 'tuple' object is not callable

**URL:** <https://discuss.elastic.co/t/error-tuple-object-is-not-callable/220952>\
**Category:** Elasticsearch\
**Created:** [February 26, 2020, 4:35am UTC](https://discuss.elastic.co/t/error-tuple-object-is-not-callable/220952 "2020-02-26T04:35:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramazan\_dd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramazan_dd/32/50393_2.png) [@Ramazan\_dd](https://discuss.elastic.co/u/Ramazan_dd)\
**Post date:** [February 26, 2020, 4:35am UTC](https://discuss.elastic.co/t/error-tuple-object-is-not-callable/220952/1 "2020-02-26T04:35:55Z")

</div>

Hello I run this

```
FROM python:3.6-alpine

COPY ./config /config

RUN pip install elasticsearch-curator==5.8.0 &&\
    pip install elasticsearch==7.0.4 &&\
     rm -rf /var/cache/apk/*

CMD curator --config /config/config_file.yml /config/action_file.yml

```

And then I got this

```
2020-02-26 04:27:20,313 INFO curator.cli run:148 Preparing Action ID: 1, "snapshot"

2020-02-26 04:27:20,313 INFO curator.cli run:162 Creating client object and testing connection

2020-02-26 04:27:20,313 DEBUG curator.utils get_client:809 kwargs = {'hosts': ['elasticsearch'], 'port': 9200, 'use_ssl': False, 'ssl_no_validate': False, 'http_auth': "''", 'master_only': False, 'client_cert': None, 'aws_token': None, 'aws_key': None, 'certificate': None, 'aws_sign_request': False, 'aws_secret_key': None, 'client_key': None, 'url_prefix': '', 'timeout': 21600}

2020-02-26 04:27:20,313 DEBUG curator.utils get_client:871 Checking for AWS settings

2020-02-26 04:27:20,317 DEBUG curator.utils get_client:886 "requests_aws4auth" module present, but not used.

2020-02-26 04:27:20,317 INFO curator.utils get_client:903 Instantiating client object

2020-02-26 04:27:20,318 INFO curator.utils get_client:906 Testing client connectivity

2020-02-26 04:27:20,318 ERROR curator.utils get_client:919 Unable to connect to Elasticsearch cluster. Error: 'tuple' object is not callable

2020-02-26 04:27:20,318 CRITICAL curator.utils get_client:923 Curator cannot proceed. Exiting.

```

Also if I install curator from yum repository. I got **taks\_id** missed error. Version curator 5.8.1 with elasticsearch-py 7.1.0 returns the same error. How can i solve this problem?

---

<div class="post-metadata">

**Author:** ![javilez13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javilez13/32/62551_2.png) [@javilez13](https://discuss.elastic.co/u/javilez13)\
**Post date:** [March 3, 2020, 1:19pm UTC](https://discuss.elastic.co/t/error-tuple-object-is-not-callable/220952/2 "2020-03-03T13:19:06Z")

</div>

Hi. I have had the same problem. In my case the user / pwd value of the http\_aut parameter of the configuration file (config\_file.yml) was not being set correctly. The configuration I have set is http\_auth: $ {ELASTIC\_CREDENTIAL}, being ELASTIC\_CREDENTIAL an environment variable that was passed in the docker-compose.

I would test with the elastic user to see if the "Error:‘ tuple ’object is not callable" is due to it. If it works, I would look at the permissions configuration with certificate, which by the description of the error is what you use.

Greetings

---

<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 31, 2020, 1:30pm UTC](https://discuss.elastic.co/t/error-tuple-object-is-not-callable/220952/3 "2020-03-31T13:30:54Z")

</div>

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