今天手欠 本来想往集群中添加一台ES,配置好后,手欠有运行了一次 setup password 然后 ES启动不来了 错误
Failed to authenticate user 'elastic' against http://172.16.xxx.xxx:9200/_security/_authenticate?pretty
Possible causes include:
* The password for the 'elastic' user has already been changed on this cluster
* Your elasticsearch node is running against a different keystore
This tool used the keystore at /usr/local/elasticsearch-7.2.0/config/elasticsearch.keystore
ERROR: Failed to verify bootstrap password
参考 https://blog.youkuaiyun.com/weixin_43210350/article/details/109775605 是可以的

我的步骤是:
1. 先将 xpack disable掉
xpack.security.enabled: true
xpack.security.authc.api_key.enabled: true
在elasticsearch.yml中将这两个值改成false
2. 这样重启ES后 可以进入 index查看 .security-7 删除这个index
curl XDELETE 'http://localhost:9200/.security-7'
3. 将xpack enable后 重启ES
4. 再次运行 setup password ,密码会更新 这样重新生成新的密码
后来启动kibana时出现如下错误:

将.kibana 的三个index删除后 重启kibana 发现还有错误
查询集群状态 发现是RED

于是查看indices情况,删除RED的Indices

重启kibana 依然不行
最后 删除nodes数据节点 ES101/data$ rm -rf nodes/
OK
Elasticsearch与Kibana集群配置及故障排除
在尝试向集群添加ES节点并设置密码后遇到启动问题,错误提示为无法验证用户'elastic'。通过禁用xpack安全,删除.security-7索引,重新启用xpack并设置密码,解决了ES启动问题。然而,这导致Kibana启动失败,删除.kibana索引和数据节点后问题仍未解决。最终,通过删除数据节点解决问题。
1320

被折叠的 条评论
为什么被折叠?



