-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inputs.statsd: Error in plugin: read udp [::]:8125: use of closed network connection #9867
Comments
Hi @passing, Trying to run the statsd input in Thanks! |
Hi @powersj, We only see this in |
Errors from the UDPListen function were previously not checked. In a recent minor release we started checking them, which introduced more visible errors to users. However, when statsd is run with the `--test` option or when a user kills Telegraf with a ctrl-c, an error now shows up as the read is still trying, after a close has occured. The ReadFromUDP call blocks untill something is received, so I don't believe there is anything else for us to check to prevent. Fixes: influxdata#9867
Interesting, The reason for the error message is from this change where Telegraf started checking some additional errors. Given we previously weren't checking for a closed network connection error in the first place, I think it is safe to make a small update where we return nil. I've put up PR #11043 with a possible workaround. Give it a shot! |
Thank you!
with that, the automated test is working again |
Relevant telegraf.conf:
Steps to reproduce:
having placed logstash.conf in your working directory, execute:
docker run -ti -v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf telegraf:1.18.3 --test
the run succeeds with the following output:
using any later version, doesn't:
the run fails with the following output:
Expected behavior:
test run should exit successfully without any error
Actual behavior:
test run fails with error
The text was updated successfully, but these errors were encountered: