Unable to set password and login after installing x-pack

  1. has installed elasticsearch, version 6.2.4, and started normally
  2. has installed kibana, version 6.2.4 and started normally
  3. x-pack version is installed according to the official method, 6.2.4
  4. elasticsearch and kibana start up normally
however, due to the installation of the x-pack plug-in, login needs to be verified. Using the default account password that is said online, elastic,changeme cannot log in to elasticsearch

use x-pack "s password setting tool to set the password, and report the following error

D:\elasticsearch\elasticsearch-master-6.2.4\bin\x-pack>setup-passwords.bat interactive
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]y


Enter password for [elastic]:
Reenter password for [elastic]:
Enter password for [kibana]:
Reenter password for [kibana]:
Enter password for [logstash_system]:
Reenter password for [logstash_system]:
Passwords do not match.
Try again.
Enter password for [logstash_system]:
Reenter password for [logstash_system]:

Connection failure to: http://127.0.0.1:9200/_xpack/security/user/kibana/_password?pretty failed: Read timed out

ERROR: Failed to set password for user [kibana].

how to solve this problem? previously, it is not possible to set the password through the auto method, nor by setting the password manually.
all reported this error!

Mar.20,2021

answer it yourself

is due to the reason that Kibana is started when setting the password, but if you install x-pack, you cannot start kibana without setting the password, and the authentication does not pass

.

correct order:

  1. ES install x-pack
  2. ES launch
  3. set password
  4. Kibana install x-pack
  5. modify the configuration file of Kibana
  6. start Kibana

I also encountered this problem. How did you reset your password?

Menu