Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-4923

CentOS7 linux-metrics errors logged after update from older versions to 1.17.2.

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.17.2
    • Fix Version/s: 1.17.3
    • Component/s: Packaging
    • Labels:
    • Environment:

      OS: CentOS 7

    • Story Points:
      2
    • Sprint:
      Platform Sprint 4, Platform Sprint 5, Platform Sprint 6, Platform Sprint 7, Platform Sprint 8
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Packaging:
      No
    • Needs Doc:
      Yes

      Description

      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: 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.

       

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  Reio Remma Reio Remma
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1 day, 1 hour, 10 minutes
                    1d 1h 10m