Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.14.0
    • Component/s: PMM Client
    • Labels:
      None

      Description

      See output:

      [root@ip-10-178-0-228 ~]# pmm-admin add postgresql:metrics
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x83fa74]
      
      goroutine 1 [running]:
      main.glob..func11(0xc1dfe0, 0xc462f0, 0x0, 0x0)
      /tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:459 +0x104
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).execute(0xc1dfe0, 0xc462f0, 0x0, 0x0, 0xc1dfe0, 0xc462f0)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:654 +0x2a2
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc1cde0, 0xc420147db0, 0x49ba52, 0x0)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
      github.com/percona/pmm-client/vendor/github.com/spf13/cobra.(*Command).Execute(0xc1cde0, 0xc460aa, 0x9524d8)
      /tmp/go/src/github.com/percona/pmm-client/vendor/github.com/spf13/cobra/command.go:688 +0x2b
      main.main()
      /tmp/go/src/github.com/percona/pmm-client/pmm-admin.go:1563 +0x13b1

      However executing in shortcut fashion doesn't panic:

      [root@ip-10-178-0-228 ~]# pmm-admin add postgresql
      [linux:metrics] OK, already monitoring this system.
      [postgresql:metrics] Error adding PostgreSQL metrics: Cannot connect to PostgreSQL: 
      * pq: password authentication failed for user "root"
      
      Verify that PostgreSQL user exists and has the correct privileges.
      Use additional flags --user, --password, --host, --port if needed.

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kamil.dziedzic Kamil Dziedzic (Inactive)
                  Reporter:
                  michael.coburn@percona.com Michael Coburn
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 55 minutes
                    55m