It sounds like you may be running into an issue where when running as a
service the configuration directory is different that
$ES_HOME/config/shield. Please see
"Configuring your
environment"
http://www.elasticsearch.org/guide/en/shield/current/getting-started.html
On Monday, February 23, 2015 at 10:28:32 AM UTC-5, Jason wrote:
>
> I am able to run bin/elasticsearch and authenticate just fine but whenever
> I run elasticsearch as a service, I consistently receive the following
> error:
>
> {
> "error" : "AuthenticationException[unable to authenticate user
> [rdeniro] for REST request [/idx1?pretty]]",
> "status" : 401
> }
>
> I made sure that the $ES_HOME/config/shield/ dir and files were all owned
> by ES user and tried to dig down to see how the two startup methods differ.
> Ultimately, it came down to something in
> /etc/elasticsearch/elasticsearch.yml by comparing the two runtime
> environments, but haven't been able to make much headway from there.
>
> Anyone have any thoughts on this? Thanks in advance for any help.
>
> Cheers,
> Jason
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/bf54a9b1-50ee-4423-82e5-1b0806117c54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.