elasticsearch Kibana服务器尚未就绪,日志显示;无法连接到Elasticsearch。错误:30000ms后请求超时”;,elasticsearch,kibana,elasticsearch,Kibana" /> elasticsearch Kibana服务器尚未就绪,日志显示;无法连接到Elasticsearch。错误:30000ms后请求超时”;,elasticsearch,kibana,elasticsearch,Kibana" />

elasticsearch Kibana服务器尚未就绪,日志显示;无法连接到Elasticsearch。错误:30000ms后请求超时”;

elasticsearch Kibana服务器尚未就绪,日志显示;无法连接到Elasticsearch。错误:30000ms后请求超时”;,elasticsearch,kibana,elasticsearch,Kibana,在CentOS Linux 7.8.2003版上新安装elasticsearch和kibana kibana服务显示kibana服务器尚未就绪 Elasticsearch版本为:7.9.2 基巴纳版本 服务处于活动状态,没有错误 network.host和http.port行未注释/etc/elasticsearch/elasticsearch.yml /etc/kibana/kibana.yml中未注释elasticsearch.hosts firewalld已停止

在CentOS Linux 7.8.2003版上新安装elasticsearch和kibana

  • kibana服务显示
    kibana服务器尚未就绪

    • Elasticsearch版本为:7.9.2
    • 基巴纳版本
    • 服务处于活动状态,没有错误
    • network.host和http.port行未注释/etc/elasticsearch/elasticsearch.yml
    • /etc/kibana/kibana.yml中未注释elasticsearch.hosts
    • firewalld已停止并禁用
    • Kibana日志显示无法连接到Elasticsearch。错误:30000ms后请求超时,但不确定是什么导致此错误
    • 有什么建议可以解决这个问题吗

      • @Rohan。谢谢你的指点。终于发现了问题

        • 尽管curl-xget显示了弹性集群状态。 集群“Cluster_uuid”是“na”
        • journalctl——单元elasticsearch显示“尚未发现或选择主节点,选择需要id为[8G5Afwq7Qkqs7vUjSGTAfg]的节点,已发现[{elkserver1}{VKd5Aef5SzyKLDfWFCzEqQ}”
        • 所以这是一个弹性搜索问题,不是kibana的问题。因为这是一个新的安装,我卸载了弹性搜索并重新安装了它。kibina在那之后开始工作

        elasticsearch的状态如何?是否有任何错误?
        curl http://localhost:5601
        Kibana server is not ready yet
        
        curl http://127.0.0.1:9200
        {
          "name" : "elkserver1",
          "cluster_name" : "elasticsearch",
          "cluster_uuid" : "_na_",
          "version" : {
            "number" : "7.9.2",
            "build_flavor" : "default",
            "build_type" : "rpm",
            "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
            "build_date" : "2020-09-23T00:45:33.626720Z",
            "build_snapshot" : false,
            "lucene_version" : "8.6.2",
            "minimum_wire_compatibility_version" : "6.8.0",
            "minimum_index_compatibility_version" : "6.0.0-beta1"
          },
          "tagline" : "You Know, for Search"
        }
        
        /usr/share/kibana/bin/kibana --version
        7.9.2
        
        systemctl status kibana
        ● kibana.service - Kibana
           Loaded: loaded (/etc/systemd/system/kibana.service; disabled; vendor preset: disabled)
           Active: active (running) since Sat 2020-09-26 12:46:17 EDT; 9s ago
         Main PID: 22390 (node)
           CGroup: /system.slice/kibana.service
                   └─22390 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli
        
        Sep 26 12:46:17 elkserver1 systemd[1]: Started Kibana.
        Sep 26 12:46:23 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:23Z","tags":["warning","plugins-discovery"],"pid":22390,"message":"Expect plugin \"id\" in camelCase, but found: beats_management"}
        Sep 26 12:46:23 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:23Z","tags":["warning","plugins-discovery"],"pid":22390,"message":"Expect plugin \"id\" in camelCase, but found: triggers_actions_ui"}
        
        cat /etc/elasticsearch/elasticsearch.yml | grep 'network.host\|http.port'
        network.host: localhost
        http.port: 9200
        
        cat /etc/kibana/kibana.yml | grep 'elasticsearch.hosts'
        elasticsearch.hosts: ["http://localhost:9200"]
        
        journalctl --follow --unit kibana
        -- Logs begin at Sat 2020-09-26 08:45:46 EDT. --
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","encryptedSavedObjects","config"],"pid":22390,"message":"Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml"}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","ingestManager"],"pid":22390,"message":"Fleet APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","actions","actions"],"pid":22390,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","alerts","plugins","alerting"],"pid":22390,"message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["info","plugins","monitoring","monitoring"],"pid":22390,"message":"config sourced from: production cluster"}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","monitoring","monitoring"],"pid":22390,"message":"X-Pack Monitoring Cluster Alerts will not be available: X-Pack plugin is not installed on the Elasticsearch cluster."}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["info","savedobjects-service"],"pid":22390,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["info","savedobjects-service"],"pid":22390,"message":"Starting saved objects migrations"}
        Sep 26 12:46:35 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:46:35Z","tags":["warning","plugins","reporting","config"],"pid":22390,"message":"Chromium sandbox provides an additional layer of protection, but is not supported for Linux Centos 7.8.2003 OS. Automatically setting 'xpack.reporting.capture.browser.chromium.disableSandbox: true'."}
        Sep 26 12:47:05 elkserver1 kibana[22390]: {"type":"log","@timestamp":"2020-09-26T16:47:05Z","tags":["warning","savedobjects-service"],"pid":22390,"message":"Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms"}
        
        curl http://127.0.0.1:9200
        {
          "name" : "elkserver1",
          "cluster_name" : "elasticsearch",
          "cluster_uuid" : "_na_",    >>> Cluster_uuid 
          "version" : {
            "number" : "7.9.2",
            "build_flavor" : "default",
            "build_type" : "rpm",
            "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",
            "build_date" : "2020-09-23T00:45:33.626720Z",
            "build_snapshot" : false,
            "lucene_version" : "8.6.2",
            "minimum_wire_compatibility_version" : "6.8.0",
            "minimum_index_compatibility_version" : "6.0.0-beta1"
          },
          "tagline" : "You Know, for Search"
        }
        
        [2020-09-28T13:29:56,862][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elkserver1] master not discovered or elected yet, an election requires a node with id [8G5Afwq7Qkqs7vUjSGTAfg], have discovered [{elkserver1}{VKd5Aef5SzyKLDfWFCzEqQ}{IgEkTEsURfih_IKP299QWw}{localhost}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=8201424896, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] which is not a quorum; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{elkserver1}{VKd5Aef5SzyKLDfWFCzEqQ}{IgEkTEsURfih_IKP299QWw}{localhost}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=8201424896, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 1, last-accepted version 36 in term 1