Uploaded image for project: 'Percona Backup for MongoDB'
  1. Percona Backup for MongoDB
  2. PBM-460

Restore fails with conflicting namespace destinations

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • None
    • 1.3.4
    • None
    • None

    Description

      Hi team, good morning!

      I am performing a set of restoration tests and got this error on pbm-agent logs

       

      May 05 08:37:20 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020/05/05 08:37:20 Got command restore 2020-05-05T08:01:59Z
      May 05 08:37:20 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020/05/05 08:37:20 [INFO] Restore of '2020-05-05T08:01:59Z' started
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020-05-05T08:37:23.359+0000 preparing collections to restore from
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020-05-05T08:37:23.359+0000 destination conflict: admin.pbmRRoles (src) => admin.pbmRRoles (dst)
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020-05-05T08:37:23.359+0000 destination conflict: admin.system.roles (src) => admin.pbmRRoles (dst)
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020-05-05T08:37:23.359+0000 destination conflict: admin.pbmRUsers (src) => admin.pbmRUsers (dst)
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020-05-05T08:37:23.359+0000 destination conflict: admin.system.users (src) => admin.pbmRUsers (dst)
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020/05/05 08:37:23 Mark restore as failed `restore mongo dump (successes: 0 / fails: 0): cannot restore with conflicting namespace destinations`: <nil>
      May 05 08:37:23 test-dba-sharded-mongocfg-01 pbm-agent[19558]: 2020/05/05 08:37:23 [ERROR] restore: restore mongo dump (successes: 0 / fails: 0): cannot restore with conflicting namespace destinations

      The dst collections are not present in the admin db.

      pbm-agent version:

      # pbm-agent version
      Version: 1.1.3
      Platform: linux/amd64
      GitCommit: eaf650667457573728207e5e050d7eda38ee900b
      GitBranch: master
      BuildTime: 2020-04-08_13:07_UTC
      GoVersion: go1.12.9

      Thanks,

      Pedro.

       

      Attachments

        Activity

          People

            andrew.pogrebnoi Andrew Pogrebnoi
            pedroalb Pedro Albuquerque
            Votes:
            2 Vote for this issue
            Watchers:
            4 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, 2 hours, 30 minutes
                1d 2h 30m

                Smart Checklist