Skip to content
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

TeamSpeak plugin "unexpected EOF" error #15738

Open
dlmw opened this issue Aug 13, 2024 · 1 comment
Open

TeamSpeak plugin "unexpected EOF" error #15738

dlmw opened this issue Aug 13, 2024 · 1 comment
Labels
bug unexpected problem or unintended behavior help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue

Comments

@dlmw
Copy link

dlmw commented Aug 13, 2024

Relevant telegraf.conf

[[inputs.teamspeak]]
  server = "teamspeak-host:10011"
  username = "monitoring"
  password = "MY_PASSWORD"
  nickname = "telegraf"
  [inputs.teamspeak.tags]
    service = "teamspeak"

Logs from Telegraf

2024-08-13T15:49:30Z E! [inputs.teamspeak] Error in plugin: unexpected EOF

System info

telegraf 1.31.2

Docker

No response

Steps to reproduce

  1. Restart the telegraf service
  2. Notice "nickname is already in use" error
  3. After a while, the error transforms to "Error in plugin: unexpected EOF"

Expected behavior

The plugin should disconnect from ServerQuery gracefully in order to "free" the nickname.

Actual behavior

Nickname isn't freed. Potentially causing the EOF error down the line.

Additional info

Sometimes when telegraf is restarted, it has trouble connecting to the same TeamSpeak server because "nickname is already in use". The errors might be related.

@dlmw dlmw added the bug unexpected problem or unintended behavior label Aug 13, 2024
@powersj
Copy link
Contributor

powersj commented Aug 13, 2024

It doesn't look like the plugin even try to disconnect. Would be happy to see a PR to clean this up, switch the plugin to a service plugin so the state and plugin attempt to connect + disconnect on stop.

@powersj powersj added help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior help wanted Request for community participation, code, contribution size/s 1 day effort, great beginniner issue
Projects
None yet
Development

No branches or pull requests

2 participants