連接Kibana報錯:Kibana server is not ready yet


問題描述

瀏覽器連接Kibana時報錯
Kibana server is not ready yet

查看Kibana日志

{"type":"log","@timestamp":"2021-11-29T02:45:50Z","tags":["warning","elasticsearch","admin"],"pid":8,"message":"Unable to revive connection: http://120.79.137.87:9200/"}

原因

檢查Kibana容器啟動的配置是否與下面一致

docker run --name kibana \
-e ELASTICSEARCH_HOSTS=http://120.79.137.87:9200/ \
-p 5601:5601 \
-d kibana:7.6.2

如不一致,停止該容器后刪除,重新再新建一個新的Kibana容器

之后啟動Kibana后又報錯

查看日志

{"type":"log","@timestamp":"2021-11-29T02:53:35Z","tags":["warning","savedobjects-service"],"pid":7,"message":"Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_1 and restarting Kibana."}

解決方案

停止Kibana服務,然后再從ElasticSearch中刪除一下四個索引

curl -XDELETE http://IP地址:9200/.kibana
curl -XDELETE http://IP地址:9200/.kibana*
curl -XDELETE http://IP地址:9200/.kibana_2
curl -XDELETE http://IP地址:9200/.kibana_1


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM