我刚刚将kiban(docker pull docker.elastic.co/kibana/kibana:6.0.1)安装为docker映像,并使用以下命令在linux上运行映像服务。
docker run -d -p 5061:5061 --name kibana <ImageName>
它使服务启动并运行,我刚刚打开浏览器并点击了kiban服务,但它显示以下错误消息:
登录当前被禁用。管理员应查阅Kibana日志以获取更多详细信息。
我只是谷歌搜索,发现我需要对kibana.yaml文件进行一些更改,但不确定在哪里可以找到该文件。
我使用find命令搜索文件夹或文件,但没有找到任何文件。
搜索:
find kibana
输出:
No matches found
。
Kibana日志:
{"type":"log","@timestamp":"2019-08-21T18:18:46Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
{"type":"log","@timestamp":"2019-08-21T18:18:49Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://elasticsearch:9200/"}
有人可以帮助我解决此问题吗?
答案 0 :(得分:1)
如果Elasticsearch的许可证已过期,则会发生此错误。
如果您配置了Kibana,请使用Elasticsearch URL进行连接,例如(Docker示例):
kibana:
image: docker.elastic.co/kibana/kibana:6.0.0
container_name: kibana_ms
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
Elasticsearch上的预期错误与许可证过期有关,它阻止了第三种工具从Elasticsearch访问监控数据:
elasticsearch_ms | [2020-05-21T15:05:29,911][ERROR][o.e.x.s.a.f.SecurityActionFilter] [wcr8rMd] blocking [cluster:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats
elasticsearch_ms | operations are blocked on license expiration. All data operations (read and write) continue to work.
elasticsearch_ms | If you have a new license, please update it. Otherwise, please reach out to your support contact
这将阻止Kibana在Elasticsearch上进行连接,这(以某种方式)使Kibana要求登录以访问仪表板。在相同的情况下,尝试制作另一个Web管理工具(如Cerebro,返回403),会发现类似的错误。
您可以禁用de XPACK
:
xpack.security.enabled=false
在Docker上,您可以执行以下操作:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
container_name: elasticsearch_ms
environment:
- "xpack.security.enabled=false"
答案 1 :(得分:0)
您可以禁用xpack.security.enabled
,因此请尝试像这样运行container
:
docker run -d -p 5061:5061 -e "XPACK_SECURITY_ENABLED=false" --name kibana <IMAGE>
答案 2 :(得分:0)
请重新访问您的IPv4地址,可能是您的IPv4已更改,并且可能导致此问题。
docker run -p 5601:5601 -e ELASTICSEARCH_URL=http://[IP where elasticsearch is running]:9200 docker.elastic.co/kibana/kibana:6.2.2