Outputs.influxdb cannot write any address - error: EOF

I’m gathering data with telegraf and writing to a telegraf gateway (input influxdb_listener), sometimes I get the following error

2020-06-05T11:08:07Z E! [outputs.influxdb] When writing to [https://____]: Post "https://____/write?db=quantumdatis": EOF
2020-06-05T11:08:07Z E! [agent] Error writing to outputs.influxdb: could not write any address

I’m not sure about what can cause this, the telegraf gateway does not report any error.

I’ve found an old issue on GitHub and tried to change several settings to solve this but without luck.

Telegraf gatherer conf

  • agent settings
    • reduce metric_batch_size - in case there was too much data
    • increase interval - to give more time to the output
  • output.influxdb settings
    • using content_encoding = "gzip" - to reduce the request body size
    • increase the timeout - to give it more time

Telegraf gateway conf

  • inputs.influxdb_listener settings
    • increased the max_body_size - doubled its size max_body_size = "64MiB"

I think the problem is not telegraf itself but something network related, has someone encountered a similar issue?
What does the error message {...}: EOF mean?

I was hoping this was resolved but I guess not, I’m not sure the cause but there are a few possibilities we could investigate. Could you open an issue on GitHub for this, EOF is never a good enough error message and I’m sure this will take a code change to address.

1 Like

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