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

500 error when user starts a physical backup for mongo with old pmm-client

Details

    • Yes
    • 2
    • Yes
    • Yes
    • No
    • Server Features
    • Hide

      This issue comes up in other cases, but for MongoDB physical backups specifically:

      • Connect a MongoDB service with pmm-agent < 2.30
      • Attempt to take a physical backup from UI
      Show
      This issue comes up in other cases, but for MongoDB physical backups specifically: Connect a MongoDB service with pmm-agent < 2.30 Attempt to take a physical backup from UI

    Description

      User impact:
      A user receives 500 error when starting a mongo physical backup with <2.31 client

       

      Steps to reproduce:

      1. Start PMM Server 2.31
      2. Start PMM client 2.30 and start monitoring for MongoDB replica set
      3. Go to Backup Management and create an S3 storage location
      4. Go to the inventory tab and start Physical backup for this mongo service

      Actual result:

      • Internal server error received.
      • Backup artifact appears in the list with BACKUP_STATUS_PENDING

      Expected result:

      •  User should get a user-friendly message about outdated pmm client

      Logs:

      ERRO[2022-09-14T13:48:23.407+00:00] RPC /backup.v1beta1.Backups/StartBackup done in 18.070527ms with unexpected error: mongodb physical backup is not supported on pmm-agent "/agent_id/c56295e2-93da-4863-a4af-a4e9fc3d870a" version "2.30.0"
      github.com/percona/pmm/managed/services/backup.(*Service).PerformBackup
          /home/builder/rpm/BUILD/pmm-abad248e9467e1cfcdc7aa63052648c60c7b8398/src/github.com/percona/pmm/managed/services/backup/backup_service.go:233
      github.com/percona/pmm/managed/services/management/backup.(*BackupsService).StartBackup
          /home/builder/rpm/BUILD/pmm-abad248e9467e1cfcdc7aa63052648c60c7b8398/src/github.com/percona/pmm/managed/services/management/backup/backups_service.go:123
      github.com/percona/pmm/api/managementpb/backup._Backups_StartBackup_Handler.func1
          /home/builder/rpm/BUILD/pmm-abad248e9467e1cfcdc7aa63052648c60c7b8398/src/github.com/percona/pmm/api/managementpb/backup/backups_grpc.pb.go:207
      github.com/percona/pmm/api/managementpb/backup._Backups_StartBackup_Handler
          /home/builder/rpm/BUILD/pmm-abad248e9467e1cfcdc7aa63052648c60c7b8398/src/github.com/percona/pmm/api/managementpb/backup/backups_grpc.pb.go:209 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vasyl.yurkovych Vasyl Yurkovych
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist