Unable to authenticate as any built-in user (elastic, kibana)

security

#1

I am no longer able to log in to elasticsearch using the builtin users. kibana.log also is showing that kibana user is not able to authenticate.
Reseting the building passwords with
bin/elasticsearch-setup-passwords auto -u "http://localhost:9200"

also doesn't work, it throws an error saying:
Exception in thread "main" java.lang.IllegalArgumentException: did not find a SSLContext


(Tim Vernum) #2

Please provide more details.

What changed? Did you do an upgrade, or make any configuration changes to your cluster?

You probably want to read this: X-Pack Authentication issue

bin/elasticsearch-setup-passwords can only be run once (unless you have complete deleted all security informtion from your cluster). Regardless of the error you are currently receiving, this is not a viable solution.

That doesn't really make sense - if you're trying to access http rather than https, it shouldn't be trying to find a SSLContext. Can you provide the full error trace? I'd like to understand what's going on here.