ElasticSearch Cause: Cluster state has not been recovered yet, cannot write to the [null] index

ElasticSearch常见问题 专栏收录该内容
7 篇文章 1 订阅

配置X-Pack设置es用户密码时爆如下错误或设置其他配置时遇到日志中bug

Unexpected response code [503] from calling PUT http://39.104.166.15:9201/_security/user/apm_system/_password?pretty
Cause: Cluster state has not been recovered yet, cannot write to the [null] index

Possible next steps:
* Try running this tool again.
* Try running with the --verbose parameter for additional messages.
* Check the elasticsearch logs for additional error details.
* Use the change password API manually. 

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

查看日志发现
master not discovered yet 尚未发现主节点 直接设置主节点即可

此行代码放到配置文件elasticsearch.yml中重新启动 “node”=要设置为主节点的名称
cluster.initial_master_nodes: [“node”]

{"type": "server", "timestamp": "2020-08-13T08:20:41,055Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "elasticsearch-cluster", "node.name": "es-node1", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{es-node1}{5Em3Fv_OTwGMzHu02l-Szg}{jwg9boFPSbCj9oWyz4wWIg}{xx.xxx.xxx.xx}{xx.xxx.xxx.xx:9301}{dilm}{ml.machine_memory=16658386944, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [] from hosts providers and [{es-node1}{5Em3Fv_OTwGMzHu02l-Szg}{jwg9boFPSbCj9oWyz4wWIg}{xx.xxx.xxx.xx}{xx.xxx.xxx.xx:9301}{dilm}{ml.machine_memory=16658386944, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }
{"type": "server", "timestamp": "2020-08-13T08:20:41,379Z", "level": "INFO", "component": "o.e.x.s.a.AuthenticationService", "cluster.name": "elasticsearch-cluster", "node.name": "es-node1", "message": "Authentication of [kibana] was terminated by realm [reserved] - failed to authenticate user [kibana]" }

  • 0
    点赞
  • 0
    评论
  • 1
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论 您还未登录,请先 登录 后发表或查看评论
©️2022 CSDN 皮肤主题:技术工厂 设计师:CSDN官方博客 返回首页

打赏作者

CodingAnHour

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值