Kibana 服务器未就绪

Kibana Server Not Ready

我配置了 Elastic search、Kibana 和 log stash 集群。 Elastic 搜索工作正常,但 Kibana 显示错误,指出 Kibana 服务器未就绪。

日志显示

> x .kibana_task_manager_1."}
Jan 13 12:50:05 kibana-csi kibana[28007]: {"type":"log","@timestamp":"2020-01-13T12:50:05Z","tags":["info","migrations"],"pid":28007,"message":"Creating index .kibana_1."}
Jan 13 12:50:05 kibana-csi kibana[28007]: {"type":"log","@timestamp":"2020-01-13T12:50:05Z","tags":["warning","migrations"],"pid":28007,"message":"Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_task_manager_1/4qj7_j5URN6TW2Pvr5qk7w] already exists, with { index_uuid=\"4qj7_j5URN6TW2Pvr5qk7w\" & index=\".kibana_task_manager_1\" }"}
Jan 13 12:50:05 kibana-csi kibana[28007]: {"type":"log","@timestamp":"2020-01-13T12:50:05Z","tags":["warning","migrations"],"pid":28007,"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_task_manager_1 and restarting Kibana."}
Jan 13 12:50:35 kibana-csi kibana[28007]: {"type":"log","@timestamp":"2020-01-13T12:50:35Z","tags":["warning","migrations"],"pid":28007,"message":"Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms"}
Jan 13 12:50:38 kibana-csi kibana[28007]: {"type":"log","@timestamp":"2020-01-13T12:50:38Z","tags":["warning","migrations"],"pid":28007,"message":"Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_1/LDkaYE3JQH2hhq4Xb4uDZw] already exists, with { index_uuid=\"LDkaYE3JQH2hhq4Xb4uDZw\" & index=\".kibana_1\" }"}

需要帮助! 我也试过删除

curl -XDELETE 'http://ElasticsarchIP:9200/.kibana_1' --header "content-type: application/JSON" -u elastic -p

首先,尝试删除版本索引,然后按照上面的建议重新启动:

curl -XDELETE http://localhost:9200/.kibana_1 

systemctl 重启 Kibana

如果它不起作用,请验证您是否创建了版本化索引,例如字节数相同等。之后删除原来的.kibana:

curl -XDELETE http://localhost:9200/.kibana

然后为它起个别名:

curl -X POST "localhost:9200/_aliases" -H 'Content-Type: application/json' -d' { "actions" : [ { "add" : { "index" : ".kibana_1", "alias" : ".kibana" } } ] }'

然后重启kibana。

这是由 Elastic Search 和 Kibana 之间的版本不匹配引起的,在设置 Elastic search 和 Kibana 版本矩阵时使用以下版本 Elastic.co

https://www.elastic.co/support/matrix#matrix_compatibility

我只是按照错误附带的建议进行操作:

If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_task_manager_1 and restarting Kibana.

curl -XDELETE http://localhost:9200/.kibana_task_manager_1

然后我重新启动了 Kibana

如果你不在乎失去dashboard/vizu:

curl -XDELETE http://localhost:9200/.kibana*

这是唯一的解决方案,与 elasticsearch 完全一样,没有快照就无法恢复数据


如果已经有 .kibana_1 索引,请检查 .kibana 别名是否也存在,或者创建它:

curl -XPUT https://XXXXX/.kibana_1/_alias/.kibana

(任务管理器索引也是如此)。