We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[agent] statefile = "/var/lib/telegraf/statefile" # Dedup uses the statefile [[processors.dedup]] dedup_interval = "60s"
E! [telegraf] Error running agent: unmarshalling states failed: unexpected end of JSON input
Telegraf 1.29.2, Debian 12.4, Docker 24.0.7
No response
Telegraf starts and fills statefile on exit.
Telegraf fails to start.
Telegraf comes with a zero-length statefile /var/lib/telegraf/statefile that's generated by scripts/{deb,rpm}/post-install.sh.
Telegraf starts successfully if the file contents are "{}" (without the quotes).
The text was updated successfully, but these errors were encountered:
fix(statefile): Ensure valid statefile
82ec2ec
fixes: influxdata#14935
Yes, I also encountered this issue. The version I am using is 1.29.1, and the issue can be resolved by writing the following content in the file.
{}
Sorry, something went wrong.
@shengbinxu this should be fixed in v1.30.0+...
Successfully merging a pull request may close this issue.
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.29.2, Debian 12.4, Docker 24.0.7
Docker
No response
Steps to reproduce
Expected behavior
Telegraf starts and fills statefile on exit.
Actual behavior
Telegraf fails to start.
Additional info
Telegraf comes with a zero-length statefile /var/lib/telegraf/statefile that's generated by scripts/{deb,rpm}/post-install.sh.
Telegraf starts successfully if the file contents are "{}" (without the quotes).
The text was updated successfully, but these errors were encountered: