# Not able to fire command for curator

**URL:** <https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891>\
**Category:** Elasticsearch\
**Created:** [July 4, 2015, 8:53am UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891 "2015-07-04T08:53:48Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 8:53am UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/1 "2015-07-04T08:53:48Z")

</div>

Hi Experts ,

Recently I have installed **curator** to manage indices on windows machine and I am using **elasticsearch1.6.0** with **shield**.I have 6 indices in ES and i want to show them using curator.

In cmd i just typed "curator show indices --all-indices" .It gives me below error

2015-07-04 14:16:55,321 INFO Job starting: show indices  
ERROR: Connection failure.

Seems curator is not able to set connection with ES.Please suggest what needs to be done here .

Regards  
Vikas

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 4, 2015, 12:59pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/2 "2015-07-04T12:59:55Z")

</div>

Curator probably defaults to localhost:9200. Is that where your Elasticsearch instance runs? Any firewall that might be blocking the connection?

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 1:05pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/3 "2015-07-04T13:05:30Z")

</div>

Thanks Magnus,

Yes I am running ES on localhost only . Since I am doing testing so I am using a single windows machine , so I do not think this is the firewall issue as ES works fine on 9200 port . A quick question , do I run curator command in any specific folder as I am running it directly in C: drive (but my ES is in E drive) .  
I am running curator command something like

**C:\Users\vikas.g\>curator show indices --all-indices**  
**2015-07-04 18:34:29,355 INFO Job starting: show indices**  
**ERROR: Connection failure.**

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 4, 2015, 1:07pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/4 "2015-07-04T13:07:37Z")

</div>

It doesn't matter in which directory you run Curator. Can you connect to localhost:9200 with e.g. telnet or a web browser? You say you're using Shield—perhaps you need to authenticate?

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 1:13pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/5 "2015-07-04T13:13:44Z")

</div>

Even I was thinking that may be shield is the reason , but I close everything then again launch ES, provided user name and password (admin user with admin privilege), ES works fine. Then I retried curator command. Still same error .

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 4, 2015, 1:16pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/6 "2015-07-04T13:16:11Z")

</div>

I repeat, can you connect to localhost:9200 with e.g. telnet or a web browser?

I haven't used Shield, but wouldn't _Curator_ have to authenticate rather than ES itself?

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 1:19pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/7 "2015-07-04T13:19:22Z")

</div>

Yes I am able to connect to localhost:9200 with browser . Yes it does ask me user name and password , once entered I am able to connect to localhost:9200.

---

<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:** [July 4, 2015, 1:43pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/8 "2015-07-04T13:43:45Z")

</div>

You will need the --http\_auth[1] flag, and maybe the --use\_ssl[2] flag

[1][https://www.elastic.co/guide/en/elasticsearch/client/curator/current/http\_auth.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/http_auth.html)  
[2][https://www.elastic.co/guide/en/elasticsearch/client/curator/current/use\_ssl.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/use_ssl.html)

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 1:50pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/9 "2015-07-04T13:50:47Z")

</div>

Thanks Aaron,

I tried following but same result.

C:\Windows\system32\>curator --host localhost --port 9200 --http\_auth user:admin show indices --all-indices  
2015-07-04 19:17:18,237 INFO Job starting: show indices  
ERROR: Connection failure.

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2015, 1:57pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/10 "2015-07-04T13:57:30Z")

</div>

Wow !!! it works like charm ...  
I was mentioning wrong username, my bad (I must say we should not work on Saturday's) ....so it works with --http\_auth flag.

Thanks again

---

<div class="post-metadata">

**Author:** ![McCluein](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@McCluein](https://discuss.elastic.co/u/McCluein)\
**Post date:** [December 15, 2015, 8:48pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/11 "2015-12-15T20:48:49Z")

</div>

Do you know how I can change make curator default to something other than localhost? Localhost is not accessible for me.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 15, 2015, 9:24pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/12 "2015-12-15T21:24:19Z")

</div>

@McCluein—please start your own thread for your unrelated question.

---

<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:** [July 5, 2017, 11:30pm UTC](https://discuss.elastic.co/t/not-able-to-fire-command-for-curator/24891/13 "2017-07-05T23:30:49Z")

</div>


