【问题标题】:Kibana server is not ready yet even startedKibana 服务器尚未准备就绪,甚至尚未启动
【发布时间】:2020-09-22 21:58:57
【问题描述】:

我有 1 个主节点(master)和 1 个数据节点(node-1)。 我使用centos7作为操作系统。

主人:9200

[root@localhost kibana]# curl localhost:9200
{
  "name" : "master",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "P4QlwvuRRGSmlT77RroSjA",
  "version" : {
    "number" : "7.6.1",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
    "build_date" : "2020-02-29T00:15:25.529771Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

node-1:9200

[root@dev ~]# curl localhost:9200
{
  "name" : "node-1",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "P4QlwvuRRGSmlT77RroSjA",
  "version" : {
    "number" : "7.6.1",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
    "build_date" : "2020-02-29T00:15:25.529771Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

两个节点可以互相看到

[root@localhost kibana]# curl master:9200/_cluster/health?pretty
{
  "cluster_name" : "elasticsearch",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 2,
  "number_of_data_nodes" : 2,
  "active_primary_shards" : 27,
  "active_shards" : 27,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 27,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 50.0
}

kibana 安装在主节点上。 systemctl 状态 kibana。 更新了 kibana 的日志

[root@localhost kibana]# systemctl status kibana -l
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-06-04 09:49:15 WIB; 28min ago
 Main PID: 61223 (node)
   CGroup: /system.slice/kibana.service
           └─61223 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["warning","plugins","security","config"],"pid":61223,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["warning","plugins","security","config"],"pid":61223,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["warning","plugins","actions","actions"],"pid":61223,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["warning","plugins","alerting","plugins","alerting"],"pid":61223,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["info","plugins","monitoring","monitoring"],"pid":61223,"message":"config sourced from: production cluster"}
Jun 04 09:49:44 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:44Z","tags":["warning","plugins","monitoring","monitoring"],"pid":61223,"message":"X-Pack Monitoring Cluster Alerts will not be available: undefined"}
Jun 04 09:49:45 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:45Z","tags":["info","savedobjects-service"],"pid":61223,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
Jun 04 09:49:45 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:45Z","tags":["info","plugins","watcher"],"pid":61223,"message":"Your basic license does not support watcher. Please upgrade your license."}
Jun 04 09:49:45 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:45Z","tags":["info","plugins","monitoring","monitoring","kibana-monitoring"],"pid":61223,"message":"Starting monitoring stats collection"}
Jun 04 09:49:46 localhost.localdomain kibana[61223]: {"type":"log","@timestamp":"2020-06-04T02:49:46Z","tags":["error","savedobjects-service"],"pid":61223,"message":"This version of Kibana (v7.7.0) is incompatible with the following Elasticsearch nodes in your cluster: v7.6.1 @ 10.64.2.246:9200 (10.64.2.246), v7.6.1 @ 10.64.2.99:9200 (10.64.2.99)"}

我们如何知道 kibana 和 elastic 之间的兼容版本?我检查了matrix 它没有显示什么 kibana 版本支持什么弹性版本 任何形式的回应将不胜感激。提前谢谢你

【问题讨论】:

    标签: elasticsearch kibana elastic-stack elk


    【解决方案1】:

    答案在 Kibana 日志的最后一行。

    此版本的 Kibana (v7.7.0) 与集群中的以下 Elasticsearch 节点不兼容:v7.6.1

    您正在运行 ES 7.6.1 和 Kibana 7.7.0,这将无法正常工作。两者需要在同一版本上。

    【讨论】:

    • 嗨,瓦尔先生。非常感谢您的回复。我会尽快升级其余的。但我有一些问题。必须要有相同的版本吗?我必须将 beat、logstash、elasticsearch 升级到相同的版本吗?还是仅适用于 elasticsearch 和 kibana 的术语?
    • 您可以运行 higher ES minor/patch 版本而不是 Kibana,但反之则不行。关于 Beats 和 Logstash,它稍微宽松一些,但您应该努力始终使用相同的版本,否则可能会遇到不兼容的情况。
    • 我在两个节点上都升级了我的弹性。然后重新启动kibana,并启动两个节点的弹性。奇迹般有效。非常感谢
    • 这并不总是问题 - 即使您的 Kibana 和 ES 版本匹配,也会出现此错误,如果您还看到错误 Unable to retrieve version information from Elasticsearch nodes (可能会在 ES 在线时出现),则可能会发生此错误/通过健康检查)。不幸的是,ES+Kibana 没有包含足够有用的上下文来找出问题所在(比如它试图访问的 URL)。
    猜你喜欢
    • 2022-11-25
    • 2021-02-23
    • 2015-04-30
    • 2022-07-25
    • 2021-08-16
    • 2020-04-30
    • 2021-09-15
    • 2020-04-27
    • 1970-01-01
    相关资源
    最近更新 更多