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.

Error: connect ETIMEDOUT or "No host available"

See original GitHub issue

I’m playing with InfluxDB, writing about 5 points per second individually with writePoint(). The payload is small (one field, one tag), but after the script runs for 3-4 minutes, I start getting connect ETIMEDOUT or No host available errors in the callback. The client is on my local machine and the server is a relatively beefy VPS with 2 CPU cores and 2GB RAM, not running much else.

Has anyone else seen this issue? I haven’t found anything at https://github.com/influxdata/influxdb/issues.

I can of course buffer the writes into an array of values and use writePoints(), but I thought InfluxDB was designed for high-performance data intake.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
strongpaulycommented, Sep 10, 2016

We saw a similar situation when connecting to an influx cloud instance. Their support team recommended that we batch our writes as much as we can. It appears that influx doesn’t like lots of small posts.

3reactions
connor4312commented, Sep 10, 2016

This probably isn’t a bug in the adapter; ETIMEDOUT will cause the adapter to treat the host as being down, removing it from the connection pool for a certain amount of time, causing the No host available error. I would try writing a super simple bash script that writes points with the curl command and see if you get time outs there…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: connect ETIMEDOUT or "No host available"
I'm playing with InfluxDB, writing about 5 points per second individually with writePoint() . The payload is small (one field, one tag), ...
Read more >
What could cause "connect ETIMEDOUT" error when the URL ...
Anyway, I've got Problem with request: connect ETIMEDOUT when I run the code and I have no idea how to fix it. What...
Read more >
Error: connect ETIMEDOUT - Salesforce Stack Exchange
This is a Temporary issue when the Salesforce API is timed out. ETIMEDOUT comes from the Node.js engine and the error implies.
Read more >
Common Errors and Warnings | Cribl Docs
Error : "The Config Helper service is not available because a configuration ... Error: "Missing credentials in config" or "stack:Error: connect ETIMEDOUT ......
Read more >
How do I resolve the error: connect etimedout
Usually encountered by HTTP or net. Often a sign that a socket.end() was not properly called. Since this is a network issue there...
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