In docker elasticsearch 5.2.1 x-pack can not login

Hi my dear,
At first,Let me describe my installation environment
1)Three Nodes in Three docker container

2)after installed es node,the cluster are worked

3)I installed one x-pack in one node,and restart this docker container

4)I try login to elasticsearch by the port 9200,the url seems like:
However, it has been prompted to log in, wireless repeat, click Cancel to return the result is
there request result:
{"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}

5)so, I try to use the url to change the password,are return the result like step 4:
curl -XPUT -u elastic '' -d '{
"password" : "elasticpassword"

{"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}

Finally I was helpless, and then I according to the URL and do it again, or the same

please help me , Thks alot.

You need to install X-Pack on all nodes at the same time, you cannot do a rolling install.

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