swarm错误记录运维技巧(二)

韵味老鸟 2024-06-11 14:56:38

swarm 错误记录运维技巧(二)

Q4: kibana 账号无权限访问

Q3:kibana 无法连接es

security_exception] Reason: unable to authenticate user [kadmin] for REST request [/_nodes?filter_path=nodes..version%2Cnodes..http.publish_address%2Cnodes.*.ip]elastic_kibana.1.v58t32q9awwm@node2

在未来版本中,报告权限的默认工作机制会有所不同,这将影响此集群的行为。在升级之前,请将“xpack.reporting.roles.enabled”设置为“false”以采用未来的行为。

修改config/kibana.yml配置

elasticsearch.username: "kibana"

elasticsearch.password: "Meng@2022"

Q2:kibana

FATAL Error: [config validation of [elasticsearch].username]: value of "elastic" is forbidden

这是因为es 不允许使用elastic用户登录kibana

所以这里需要创建一个自定义用户

进入es容器,docker exec -it es bash,执行bin/elasticsearch-users useradd test

添加了用户,并需要给这个用户添加角色不然会报错

角色授权

bin/elasticsearch-users roles -a superuser test

bin/elasticsearch-users roles -a kibana_system test

然后启动kibana

Q1:节点无法加入

Error response from daemon: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 192.168.10.13:2377: connect: no route to host"

防火墙没有关闭

systemctl status firewalld

systemctl disable firewalld

systemctl stop firewalld

systemctl status firewalld

0 阅读:0