Kibana报错License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Service Unavailable。

Kibana报错License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Service Unavailable。

安装Kibana时这个坑花费了挺长时间,网上各种找也是没有找到,花了好久,找到解决方案。

首先ES确定没有问题,通过ip:9200可以成功访问。

启动Kibana镜像后不能访问,

通过 docker logs kibana镜像名称或者容器id 查看日志

先看报错信息

问题原因:使用了公网ip去启动了kibana,正确的方式是使用ES在内网分配的ip地址

解决方案:

执行查看ES内网IP地址

 docker inspect elasticsearch  |grep IPAddress

删除原来kibana镜像,重新运行

docker run --name kibana -e ELASTICSEARCH_HOSTS=http://上一步查出来的ip:9200 -p 5601:5601 -d kibana:7.4.2 

启动成功,没有报错信息。成功访问IP:5601端口

posted @ 2021-04-01 14:39  墨影笑倾城  阅读(4041)  评论(0)    收藏  举报
Live2d Test Env