-
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
Filecount Input on windows 32bit #11823
Comments
Thanks for the issue report. Is this something which worked on a previous release of telegraf, but broke in 1.24, or have you not tried a previous release, and this is a new install/setup? Also, how many files are there in the c:\Tools folder on that machine? ( Does this error only occur with that folder or does it occur on any folder, even an empty or mostly empty one? |
Thank you for your reply. it has one file inside. I have tested it in several folders and always get the same error message. With version 1.20.3 it worked. We tested it with 1.24.0 and 1.23.4 and it does not work in both versions anymore. There is no relation to the number of files in the folders. |
Thanks for the additional data, very helpful. 1.20.3 dates back nearly a year. If you have some time and are able to bisect between 1.20.3 and now - perhaps initially via the major releases 1.21.0, 1.22.0, 1.23.0, we might be able to narrow this down more specifically where it broke. Sadly nobody on the team here has a Windows Embedded 32-bit system we can test on, so we're somewhat relying on your feedback here, for which we're grateful. |
I made some tests. I made the same test also on an Windows 10 64bit Enterprise Version with telegraf 64bit version and have the same result: since 1.23.4 is broken. The problem is present in the 32 and 64bit version. |
Also experiencing the same issue on Windows Server 2016 x64
Folder contains ~8000 xml files with names like Read_000bab60-9f64-4968-adf5-2cbf7975baf8.xml |
hi, Is it possible to reach the appropriate output by editing the code with “Go” language? |
Is there any news on this topic? Sorry that I can not actively help. I have no knowledge in Go. |
We have the same problem, and actually it is blocking us from updating telegraf further. If this issue does not get solved we will need to exchange our filecount plugin implementations with other solutions to allow us to update telegraf and all its other plugins. Unfortunately i don't see an easy solution to replace our filecount implementations, which makes it important to get a solution here. Are there any plans to solve this issue during the next months? |
As an interim solution I've been using exec with a python script:
exec_count.py
Quick and dirty but it works |
Thank you for this interim solution proposal. However, i'd really prefer to get a fix of this issue to avoid the effort of such a workaround and a rough timeline for this would be appreciated. |
Hi,
Thank you for taking the time to try the different versions and help us narrow down the source of the change. There were no changes to the filecount plugin itself between v1.23.3 and v1.23.4. Looking at the other relevant changes it appears that #11574 updated the version of godirwalk from 1.16.1 to 1.17.0. The diff between those versions, shows primarily around changes to the To help determine if the library change was in fact part of the issue, I have put up #12295 that reverts the versions back. Could someone who has run into this issue try the artifacts from that PR and let me know if it works? Thanks! |
I can confirm, that the filecount plugin on our "Windows Server 2019 Standard":
Thanks for your investigations! |
I have got a reproducer outside of Telegraf using code from the godirwalk own examples and filed karrick/godirwalk#70 I will wait to see if I get a response before we |
The bug of filecount is still existing in 1.25.3, so workaround is to stay on telegraf version < 1.24.x. |
Hmm it seems we reverted the library version and then dependabot turned around and updated the library :( I'll re-open, downgrade the library for v1.26.0. I'm really hoping my fix karrick/godirwalk#71 gets merged, but it has been a month. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.24.0, Windows Embedded Standard 32 bit
Docker
No response
Steps to reproduce
Expected behavior
It counts all files
Actual behavior
In the log file after each interval for each file in the folder the error message
2022-09-16T07:40:50Z E! [inputs.filecount] Error in plugin: EOF
Additional info
No response
The text was updated successfully, but these errors were encountered: