No Living Connections

Hi
i have an error.
my system
ES 7.1 Kibana 7.1 HTTPS

my elasticsearch.yml

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
http.host: 192.168.0.92
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.0.92"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.keystore.password: "password!"
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.password: "password!"

xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: elastic-certificates.p12
xpack.security.http.ssl.keystore.password: "password!"
xpack.security.http.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.truststore.password: "password!"

In my kibana.yml

# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "192.168.0.92"

elasticsearch.hosts: ["https://192.168.0.92:9200"]

elasticsearch.username: "elastic"
elasticsearch.password: "elastic"

# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the Kibana server to the browser.
server.ssl.enabled: true
server.ssl.certificate: /etc/kibana/instance/instance.crt
server.ssl.key: /etc/kibana/instance/instance.key

# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files validate that your Elasticsearch backend uses the same key files.
#elasticsearch.ssl.certificate: /etc/kibana/instance/elastic.crt
#elasticsearch.ssl.key: /etc/kibana/instance/elastic.key
#elasticsearch.ssl.keyPassphrase: "password!"

# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your Elasticsearch instance.
elasticsearch.ssl.certificateAuthorities: [ "/etc/kibana/elastic-ca.pem" ]

systemctl status kibana -l

 5월 30 16:23:44 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:44Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"No living connections"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"Unable to revive connection: https://192.168.0.92:9200/"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"No living connections"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"Unable to revive connection: https://192.168.0.92:9200/"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"No living connections"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"Unable to revive connection: https://192.168.0.92:9200/"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"No living connections"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"Unable to revive connection: https://192.168.0.92:9200/"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","elasticsearch","admin"],"pid":9187,"message":"No living connections"}
 5월 30 16:23:45 localhost.localdomain kibana[9187]: {"type":"log","@timestamp":"2019-05-30T07:23:45Z","tags":["warning","task_manager"],"pid":9187,"message":"PollError No Living connections"}

what's problem with me??
I need some help
Thanks

1 Like

Can you contact Elasticsearch on that URL using curl?

Yes, if using this curl

curl -k -u elastic:"password;" https://192.168.0.92:9200

{
  "name" : "node-1",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "h8EzxHyvQyiMyU2I6gzaZQ",
  "version" : {
    "number" : "7.1.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "606a173",
    "build_date" : "2019-05-16T00:43:15.323135Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

Kindly verify once whether ElasticSearch is up and running and Kibana connecting to Elasticsearch configured properly

It works now
i just change this

elasticsearch.ssl.verificationMode: none

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.