# URGENT HELP : can't connect to my ES and Kibana after installing shield!

**URL:** <https://discuss.elastic.co/t/urgent-help-cant-connect-to-my-es-and-kibana-after-installing-shield/23039>\
**Category:** Elasticsearch\
**Created:** [April 1, 2015, 2:19pm UTC](https://discuss.elastic.co/t/urgent-help-cant-connect-to-my-es-and-kibana-after-installing-shield/23039 "2015-04-01T14:19:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omar\_ben\_salem](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@omar\_ben\_salem](https://discuss.elastic.co/u/omar_ben_salem)\
**Post date:** [April 1, 2015, 2:19pm UTC](https://discuss.elastic.co/t/urgent-help-cant-connect-to-my-es-and-kibana-after-installing-shield/23039/1 "2015-04-01T14:19:52Z")

</div>

Hi everyone,

I've installed the shield to add authentication to my ES !

When I've tried to add a user with an admin role, an error has occured  
saying that there is a syntax error in the elif[$ES\_INCLUDE]

(I've created the user with the root since I start my ES with the root user  
!)

Now, when I try to run Kibana, this error jumps up :

[https://lh3.googleusercontent.com/-\_E2HAz8ry-I/VRv-M7bqcrI/AAAAAAAAAGk/gOfo1qxfn-0/s1600/costin.PNG](https://lh3.googleusercontent.com/-_E2HAz8ry-I/VRv-M7bqcrI/AAAAAAAAAGk/gOfo1qxfn-0/s1600/costin.PNG)  
And when I try to access to my Marvel plugin, a box showing authentication  
required jumps to my face ! when I enter the user I've created (with the  
error I mentionned) , I can't access to it !!!

What to do please??! I'm in a huuuuuge hurry !

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f9984301-7077-4893-8e13-63900d28cf82%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f9984301-7077-4893-8e13-63900d28cf82%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![omar\_ben\_salem](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@omar\_ben\_salem](https://discuss.elastic.co/u/omar_ben_salem)\
**Post date:** [April 1, 2015, 6:08pm UTC](https://discuss.elastic.co/t/urgent-help-cant-connect-to-my-es-and-kibana-after-installing-shield/23039/2 "2015-04-01T18:08:05Z")

</div>

Ok, I've managed to solve my own problem.

First of all things, if you want to just remove the shield plugin run under  
the elasticsearch :

$ bin/plugin --remove shield

Now, to the syntax error in the elef line in the "esusers", generally, when  
there is such an error, it's related to things before that line.  
In fact there was something like this :  
$....done:  
correction :  
$....done;

Now, we could add users within shield and grunt them the desired role.

But, even if I've done it, I couldn't access to my ES cluster with the "new  
born user"; I think because my ES is running as a service and not starting  
with bin/elasticsearch, that lead to "misunderstanding."

The solution I found was to transfer the  
/usr/share/elasticsearch/config/shield under /etc/elasticsearch  
$ln -s /usr/share/elasticsearch/config/shield/ /etc/elasticsearch

And that was it !  
Hope that could be of a help for anyone else facing the same problem !

On Wednesday, April 1, 2015 at 4:19:52 PM UTC+2, BEN SALEM Omar wrote:

> Hi everyone,
> 
> I've installed the shield to add authentication to my ES !
> 
> When I've tried to add a user with an admin role, an error has occured  
> saying that there is a syntax error in the elif[$ES\_INCLUDE]
> 
> (I've created the user with the root since I start my ES with the root  
> user !)
> 
> Now, when I try to run Kibana, this error jumps up :
> 
> [https://lh3.googleusercontent.com/-\_E2HAz8ry-I/VRv-M7bqcrI/AAAAAAAAAGk/gOfo1qxfn-0/s1600/costin.PNG](https://lh3.googleusercontent.com/-_E2HAz8ry-I/VRv-M7bqcrI/AAAAAAAAAGk/gOfo1qxfn-0/s1600/costin.PNG)  
> And when I try to access to my Marvel plugin, a box showing authentication  
> required jumps to my face ! when I enter the user I've created (with the  
> error I mentionned) , I can't access to it !!!
> 
> What to do please??! I'm in a huuuuuge hurry !

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1e32b404-db19-4679-89e9-c608c9e67c30%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1e32b404-db19-4679-89e9-c608c9e67c30%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/urgent-help-cant-connect-to-my-es-and-kibana-after-installing-shield/23039/3 "2017-07-06T00:22:19Z")

</div>


