Kibana unable to retrieve connection


(Kenneth) #1

Hi,

I have set up an ElasticSearch cluster which is using x-pack security. I have setup the initial user passwords, elastic and kibana. From the Kibana server, I can connect to the ElasticSearch cluster using the kibana username and password thus:

curl -k -u kibana:username https://owadata:9200

but when I try and connect to kibana I get no answer:

curl -k -u kibana:username https://kibanaserver:5601

The kibana.yml file has the following:

server.port: 5601
server.host: admin
server.name: admin
elasticsearch.url: "https://owadata:9200"
kibana.index: ".kibana"
kibana.defaultAppId: "home"
elasticsearch.username: "kibana"
elasticsearch.password: "passwordvalue"
logging.dest: /var/log/kibana.log
logging.silent: false

The value of passwordvalue is correct

In the log file, I get the following messages:

{"type":"log","@timestamp":"2018-05-23T13:35:51Z","tags":["license","warning","xpack"],"pid":2170,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: No Living connections"}
{"type":"log","@timestamp":"2018-05-23T13:35:52Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"Unable to revive connection: https://owadata:9200/"}
{"type":"log","@timestamp":"2018-05-23T13:35:52Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"No living connections"}
{"type":"log","@timestamp":"2018-05-23T13:35:55Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"Unable to revive connection: https://owadata:9200/"}
{"type":"log","@timestamp":"2018-05-23T13:35:55Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"No living connections"}
{"type":"log","@timestamp":"2018-05-23T13:35:57Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"Unable to revive connection: https://owadata:9200/"}
{"type":"log","@timestamp":"2018-05-23T13:35:57Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"No living connections"}
{"type":"log","@timestamp":"2018-05-23T13:36:00Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"Unable to revive connection: https://owadata:9200/"}
{"type":"log","@timestamp":"2018-05-23T13:36:00Z","tags":["warning","elasticsearch","admin"],"pid":2170,"message":"No living connections"}

I have applied the correct license to the elasticsearch cluster

Any ideas?


(Stacey Gammon) #2

Are you sure elasticsearch is up and running? The logs indicate that kibana is failing to connect with it. It would be a different error message if the license or credentials were wrong.

Can you navigate to https://owadata:9200/ in the browser and connect to it?

Do you have ssl settings configured?
https://www.elastic.co/guide/en/kibana/current/production.html#enabling-ssl


(Kenneth) #3

Hi Stacey,

Thanks for the info. I've got it working now. I hadn't specified the ca and certificate for the elastic search cluster.

Regards,
Kenneth


(system) #4

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