# Searchguard issue with sgadmin script log

**URL:** <https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791>\
**Category:** Elasticsearch\
**Created:** [April 20, 2018, 4:45am UTC](https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791 "2018-04-20T04:45:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aparneswara\_Raju](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Aparneswara\_Raju](https://discuss.elastic.co/u/Aparneswara_Raju)\
**Post date:** [April 20, 2018, 4:45am UTC](https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791/1 "2018-04-20T04:45:05Z")

</div>

Hi ,

Am facing issue while executing the below command not sure what am missing in this. Can some please help me out on this.

./sgadmin.sh -cd ../sgconfig -icl -nhnv -ts /etc/elasticsearch/truststore.jks -tspass changeit -ks /etc/elasticsearch/keystore.jks -kspass changeit -h xxxx

Cannot retrieve cluster state due to: None of the configured nodes are available: [{#transport#-1}{fjVX\_-odRnGmtNTHs3K0yw}{xxxx}{xxxx:9300}]. This is not an error, will keep on trying ...  
Root cause: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{fjVX\_-odRnGmtNTHs3K0yw}{xxxx}{xxxx:9300}]] (org.elasticsearch.client.transport.NoNodeAvailableException/org.elasticsearch.client.transport.NoNodeAvailableException)

- Try running sgadmin.sh with -icl (but no -cl) and -nhnv (If thats works you need to check your clustername as well as hostnames in your SSL certificates)
- Make also sure that your keystore or cert is a client certificate (not a node certificate) and configured properly in elasticsearch.yml
- If this is not working, try running sgadmin.sh with --diagnose and see diagnose trace log file)
- Add --accept-red-cluster to allow sgadmin to operate on a red cluster.

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [April 20, 2018, 9:35am UTC](https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791/2 "2018-04-20T09:35:23Z")

</div>

> [@Aparneswara\_Raju](#):
>
> sgadmin.sh

As you are making use of the SG toolset, would this be better posed here: [GitHub - floragunncom/search-guard: Search Guard Plugin - Security for Elasticsearch](https://github.com/floragunncom/search-guard)

From and Elasticsearch perspective:

> [@Aparneswara\_Raju](#):
>
> NoNodeAvailableException

This speaks for itself.

---

<div class="post-metadata">

**Author:** ![Aparneswara\_Raju](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@Aparneswara\_Raju](https://discuss.elastic.co/u/Aparneswara_Raju)\
**Post date:** [April 20, 2018, 9:53am UTC](https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791/3 "2018-04-20T09:53:33Z")

</div>

Thanks for the info dude. Here am using the ES and searchGuard version 5.5.3 and 5.5.3.16  
I will try for latest version above 6.

---

<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:** [May 18, 2018, 9:54am UTC](https://discuss.elastic.co/t/searchguard-issue-with-sgadmin-script-log/128791/4 "2018-05-18T09:54:13Z")

</div>

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