Error: connect ETIMEDOUT or "No host available"
See original GitHub issueI’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:
- Created 7 years ago
- Reactions:2
- Comments:16 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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 thecurl
command and see if you get time outs there…