# Telegraf net/http : request conceled

**URL:** <https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362>\
**Category:** Telegraf\
**Created:** [May 15, 2020, 2:40pm UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362 "2020-05-15T14:40:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 15, 2020, 2:40pm UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362/1 "2020-05-15T14:40:50Z")

</div>

I’am using telegraf to collect hosts metrics but after installing and enabling telegraf i got en error  
That’s huge problem for me i reverified that many times but without response !  
This is the second time i post such an error but i need to now the solution i’am stuck  
2020-05-15T14:34:52Z I! Starting Telegraf 1.12.2  
2020-05-15T14:34:52Z I! Using config file: /etc/telegraf/telegraf.conf  
2020-05-15T14:34:52Z I! Loaded inputs: disk diskio kernel processes swap system cpu mem net  
2020-05-15T14:34:52Z I! Loaded aggregators:  
2020-05-15T14:34:52Z I! Loaded processors:  
2020-05-15T14:34:52Z I! Loaded outputs: influxdb  
2020-05-15T14:34:52Z I! Tags enabled: host=zoneminder  
2020-05-15T14:34:52Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“zoneminder”, Flush Interval:10s  
2020-05-15T14:34:52Z D! [agent] Initializing plugins  
2020-05-15T14:34:52Z D! [agent] Connecting outputs  
2020-05-15T14:34:52Z D! [agent] Attempting connection to [outputs.influxdb]  
2020-05-15T14:34:52Z D! [agent] Successfully connected to outputs.influxdb  
2020-05-15T14:34:52Z D! [agent] Starting service inputs  
2020-05-15T14:35:15Z E! [outputs.influxdb] when writing to [[http://influx-ip-address:8086](http://influx-ip-address:8086)]: Post [http://influx-ip-address:8086/write?db=infra-db:](http://influx-ip-address:8086/write?db=infra-db:) net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)  
2020-05-15T14:35:15Z D! [outputs.influxdb] Buffer fullness: 49 / 10000 metrics  
2020-05-15T14:35:15Z E! [agent] Error writing to outputs.influxdb: could not write any address  
2020-05-15T14:35:25Z E! [outputs.influxdb] when writing to [[http://influx-ip-address:8086](http://influx-ip-address:8086)]: Post [http://influxdb-ip-address:8086/write?db=infra-db:](http://influxdb-ip-address:8086/write?db=infra-db:) net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.influxdata.com/u/Pooh)\
**Post date:** [May 15, 2020, 2:56pm UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362/2 "2020-05-15T14:56:10Z")

</div>

a) what do the InfluxDB logs on the machine at influx-ip-address tell you is  
going on at the same time?

b) have you tried a packet capture for port 8086 on influx-ip-address to see  
whether it really is replying to telegraf correctly?

c) can you describe the network setup between the machine running telegraf and  
the machine running InfluxDB?

Regards,

Antony.

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 15, 2020, 3:04pm UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362/3 "2020-05-15T15:04:48Z")

</div>

a/ in influx machine i don’t have logs ! they are desactivated i think !  
b/how to do capture ?  
c/machine running telegraf is on my internal network ! and the Influx server is on OVH ( Externel)  
I did monitoried more than 30 host using telegraf and this is the first time i got such an error !

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [May 19, 2020, 8:12pm UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362/4 "2020-05-19T20:12:53Z")

</div>

I doubt this will show up in the InfluxDB logs since the connection is not established: “canceled while waiting for connection”. I’d guess that most likely this is a firewall issue, make sure the remote system allows connections through on this port.

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 20, 2020, 8:08am UTC](https://community.influxdata.com/t/telegraf-net-http-request-conceled/14362/5 "2020-05-20T08:08:36Z")

</div>

i’am sure that i’am monitoring my other hosts with the same way and it’s the first time i got that error i think that connectio between telegraf and influxdb is established but the agent cannot write to database !
