Solving problems encountered in CentOS8 Kibana8.x installation

origin

After installing the same version of Elasticsearch and Kibana, Elasticsearch runs successfully and can be used normally, and Kibana also starts normally, but the following errors and prompts will appear when accessing:

Browser access prompt: Kibana server is not ready yet. (The server is not ready yet.)

Check the kibana log: missing authentication credentials for REST request...

solve

set password

According to the log prompt, it is because the account password of elasticsearch is not set, so it is directly set as the initial password of elasticsearch

elasticsearch.username: "elastic"
elasticsearch.password: "elastic2022"

new error

After setting the account password as above, a 502 error occurs

And the background kibana will also exit, the input status information is as follows, and the corresponding log

 final solution

After searching for information, it was found that kibana cannot use the default user of elasticsearch for request authentication, so elastic users cannot be used, and kibana users are fine.

reset kibana password

Use the following command in the elasticsearch directory to reset the kibana account password. After reset, the password is shown in a red box

bin/elasticsearch-reset-password -u kibana

 reset password

 Reconfigure the kibana authentication password and use the password of the account kibana obtained in the previous step

test run

After restarting kibana, the access is successful.

other

reference address

Guess you like

Origin blog.csdn.net/Douz_lungfish/article/details/128457596