question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to revive connection

See original GitHub issue

Hello,

I keep getting this error, and it never recovers. I’m using Elasticsearch 1.3.2 and elasticsearch-js 2.4.0 (node client)

Elasticsearch WARNING: 2014-09-09T08:09:05Z
  Unable to revive connection: https://elasticsearch.****.net/

Elasticsearch WARNING: 2014-09-09T08:09:05Z
  No living connections

Here is my configuration

{
    apiVersion:'1.3',
    sniffOnConnectionFault:true,
    maxRetries:5,
    keepAlive:true,
    connectionClass:'http'
}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:6
  • Comments:62 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
schizobuliacommented, Jan 18, 2019

My problem has been solved.

code

let client = new elasticsearch.Client({
    host: 'hostname.domain:9200',
    maxSockets: 20,
    keepAlive: false,  
    requestTimeout: 300000,
    sniffInterval: false
});
try {
    await client.search({
        index: 'index',
        body: {"query": {"match_all": {}}},
    });
} catch (error) {

} finally {
    client.close();
}

version

node: v8.12.0

elasticsearch.js: 15.1.1

elasticsearch: 6.4.2
3reactions
deepaksomasecommented, Jun 13, 2018

I was facing the same problem. For me issue was with setting auth configuration. Following configuration is worked for me.

var client = new elasticsearch.Client( {  
  host: [
    {
      host: '127.0.0.1',
      auth: 'username:password',
      protocol: 'http',
      port: 9200
    }
  ]
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve 'Unable to revive connection'? - Kibana
I have a Elasticsearch instance in dev mode. My Elasticsearch config is following, cluster.name: "logparser" node.master: true node.data: ...
Read more >
How to resolve the error "No living connection" while starting ...
status: working. I am using a docker-compose.yml file to run elasticsearch and kibana on localhost. port 9200 is being used by another service ......
Read more >
1781492 – Kibana is not updated after secrets regenerated.
Description of problem: Deploy logging stack via operator, make sure the logging stack works well. Then scale down CLO to 0, delete mater-certs...
Read more >
Kibana Unable to revive connection to ElasticSearch-docker
[Solved]-Kibana Unable to revive connection to ElasticSearch-docker. Search. score:2. Accepted answer. The reason why it isn't working is because you are ...
Read more >
Elasticsearch has been working for months, but now I have an ...
So it all started when I wanted to restart all ELK service ... ,"pid":18595,"message":"Unable to revive connection: http://localhost:9200/"} ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found