# not able to start elasticsearch after installing search guard plugin

**URL:** <https://forum.search-guard.com/t/not-able-to-start-elasticsearch-after-installing-search-guard-plugin/59>\
**Category:** Search Guard\
**Created:** [June 29, 2015, 6:24pm UTC](https://forum.search-guard.com/t/not-able-to-start-elasticsearch-after-installing-search-guard-plugin/59 "2015-06-29T18:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MADHUSUDAN\_D](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@MADHUSUDAN\_D](https://forum.search-guard.com/u/MADHUSUDAN_D)\
**Post date:** [June 29, 2015, 6:24pm UTC](https://forum.search-guard.com/t/not-able-to-start-elasticsearch-after-installing-search-guard-plugin/59/1 "2015-06-29T18:24:10Z")

</div>

I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .

i tried to install safe-guard plugin  
steps followed :

1. cloned code from [https://github.com/floragunncom/search-guard.git](https://github.com/floragunncom/search-guard.git)  
2)built using command mvn package -DskipTests  
3)installed plugin using following command  
" bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "

after that when i tried to run elasticsearch using bin/elasticsearch i got this

"{1.6.0}: Initialization Failed …

- ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "

if i download zip

\*\* i get follwing message when i start elasticsearch

{1.6.0}: Initialization Failed …

1. ElasticsearchException[You’re trying to run elasticsearch as root or Windows Administrator and thats forbidden.]

please help me in this regard.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![simon.minery](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@simon.minery](https://forum.search-guard.com/u/simon.minery)\
**Post date:** [June 30, 2015, 11:46am UTC](https://forum.search-guard.com/t/not-able-to-start-elasticsearch-after-installing-search-guard-plugin/59/2 "2015-06-30T11:46:21Z")

</div>

You are trying to start ElasticSearch as an administrator of the server.  
If you want to do so, make sure that in your elasticsearch.yml:

> searchguard.check\_for\_root: false  
> If you are planning on running your cluster in production you should create a separate account that will start the nodes. If elasticsearch may be compromised someone could run arbitrary code on your machine.

> **···**
>
> On Monday, June 29, 2015 at 8:24:10 PM UTC+2, MADHUSUDAN D wrote:
> 
> > I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .
> 
> > i tried to install safe-guard plugin  
> > steps followed :
> > 
> > 1. cloned code from [https://github.com/floragunncom/search-guard.git](https://github.com/floragunncom/search-guard.git)  
> > 2)built using command mvn package -DskipTests  
> > 3)installed plugin using following command  
> > " bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "
> 
> > after that when i tried to run elasticsearch using bin/elasticsearch i got this
> 
> > "{1.6.0}: Initialization Failed …
> 
> > - ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "
> 
> > 
> 
> > if i download zip
> 
> > \*\* i get follwing message when i start elasticsearch
> 
> > {1.6.0}: Initialization Failed …
> 
> > 1. ElasticsearchException[You’re trying to run elasticsearch as root or Windows Administrator and thats forbidden.]
> 
> > 
> 
> > 
> 
> > 
> 
> > please help me in this regard.
> 
> > Thanks in advance.

---

<div class="post-metadata">

**Author:** ![searchguard\_google\_group](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/searchguard_google_group/32/462_2.png) [@searchguard\_google\_group](https://forum.search-guard.com/u/searchguard_google_group)\
**Post date:** [July 1, 2015, 1:34pm UTC](https://forum.search-guard.com/t/not-able-to-start-elasticsearch-after-installing-search-guard-plugin/59/3 "2015-07-01T13:34:10Z")

</div>

1) for ES 1.6 you need to pull the es1.6 branch from here [https://github.com/floragunncom/search-guard/tree/es1.6](https://github.com/floragunncom/search-guard/tree/es1.6)  
2) don't start ES as root or windows admin (if you have to do so the see anwer from simon)

> **···**
>
> > Am 29.06.2015 um 20:24 schrieb MADHUSUDAN D \<madhumi4321@gmail.com\>:
> > 
> > I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .
> > 
> > i tried to install safe-guard plugin  
> > steps followed :  
> > 1) cloned code from [GitHub - floragunncom/search-guard: Search Guard Plugin - Security for Elasticsearch](https://github.com/floragunncom/search-guard.git)  
> > 2)built using command mvn package -DskipTests  
> > 3)installed plugin using following command  
> > " bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "
> > 
> > after that when i tried to run elasticsearch using bin/elasticsearch i got this
> > 
> > "{1.6.0}: Initialization Failed ...
> > 
> > &nbsp;&nbsp;• ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "
> > 
> > if i download zip  
> > \*\* i get follwing message when i start elasticsearch  
> > {1.6.0}: Initialization Failed ...  
> > 1) ElasticsearchException[You're trying to run elasticsearch as root or Windows Administrator and thats forbidden.]
> > 
> > please help me in this regard.
> > 
> > Thanks in advance.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "Search Guard" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.  
> > To post to this group, send email to search-guard@googlegroups.com.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/search-guard/c3b307da-8714-4c3b-bb54-83336de1bf3c%40googlegroups.com\](https://groups.google.com/d/msgid/search-guard/c3b307da-8714-4c3b-bb54-83336de1bf3c%40googlegroups.com%5C).  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).
