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端口


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM