Solution: 1) Fix the code to work with `textfile-collector` folder 2) Make sure we renamed from folders to proper one during the update
Versions need to be checked:
1.16.0
1.17.1
1.17.2
Original report:
I updated pmm-client on CentOS7 a week ago now noticed 180MB of pmm-linux-metrics log filed with:
time="2019-11-03T22:35:51+02:00" level=error msg="Error reading textfile collector directory /usr/local/percona/pmm-client/textfile_collector: open /usr/local/percona/pmm-client/textfile_collector: no such file or directory" source="text file.go:81"
I checked upgrade from different versions and it seems everything is ok. There was a problem with deleting textile-collector directory, but it was fixed in 1.17.3. Thank you, @Carlos Salguero!
it seems the bug is still reproducible: I installed latest pmm-client package from testing repository and then add linux to monitoring:
time="2019-12-13T08:31:42Z" level=error msg="Error reading textfile collector directory /usr/local/percona/pmm-client/textfile_collector: open /usr/local/percona/pmm-client/textfile_collector: no such file or directory" source="textfile.go:81"
pmm-client-1.17.3-1.el6
@Carlos Salguero Could you look into it?
Roma Novikov November 28, 2019 at 10:58 AM
@Reio Remma Thanks for this report. this is a typo in the code ( we'll try to fix it and release patch release asap
The problem: Textfile collector feature is not working by default (with default file location )
Additionally, there are error messages in the log
Affected versions: Updated version of pmm1
Workaround: rename the folder from textfile-collector to textfile_collector
Original Issue: https://perconadev.atlassian.net/browse/PMM-2888#icft=PMM-2888
Solution:
1) Fix the code to work with `textfile-collector` folder
2) Make sure we renamed from folders to proper one during the update
Versions need to be checked:
1.16.0
1.17.1
1.17.2
Original report:
I updated pmm-client on CentOS7 a week ago now noticed 180MB of pmm-linux-metrics log filed with:
time="2019-11-03T22:35:51+02:00" level=error msg="Error reading textfile collector directory /usr/local/percona/pmm-client/textfile_collector: open /usr/local/percona/pmm-client/textfile_collector: no such file or directory" source="text
file.go:81"
I downgraded to 1.17.1 and the messages are gone.
pmm-client-1.17.1-1.el7.x86_64
pmm-client-1.17.2-1.el7.x86_64
It seems some script is looking for:
/usr/local/percona/pmm-client/textfile_collector
but the correct file is: /usr/local/percona/pmm-client/textfile-collector, with a hyphen.
For now I renamed textfile-collector to textfile_collector to suppress the error message.