X-pack default password is not working for Elasticsearch 5.6.8 version

(Bob) #1

I installed X-Pack(5.6.8) plugin on ElasticSearch(5.6.8).Here is the error I see when I try to do curl with default password.

[root@dev01-2 elasticsearch]# curl -XGET -u elastic:changeme
{"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}[root@dev01-2 elasticsearch]#

Please help me to resolve the issue?

(Ry Biesemeyer) #2

Is the default password enabled, or has it been changed to something else? Has Elasticsearch been restarted since installing x-pack?


(Bob) #3


After adding below setting to elasticsearch.yml, it is working fine.

xpack.security.enabled: true
xpack.graph.enabled: true
xpack.ml.enabled: true
xpack.monitoring.enabled: true
xpack.watcher.enabled: true
xpack.security.authc.accept_default_password: true

(Bob) #4

Somehow after adding new node to elasticsearch cluster, default password not working again.Can you please help me to fix the issue?

Both nodes have same configuration.

(system) #5

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