Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2232

Problem with UUID during restoring from OPLOGs

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.4
    • Component/s: mongorestore
    • None

      We have a problem with restore data from OPLOGs file.

      I have used below command to dump oplog for specific time:

      mongodump --host address1:27017 -u user1 --authenticationDatabase admin -d local -c oplog.rs -o /home/monit/oplog --query '{ "ts" : { "$gte" : { "$timestamp": {"t": 1551191999, "i": 33589}}, "$lte" : { "$timestamp": {"t": 1551254369, "i": 3}}}}'

      Now, when i'm trying restore data from oplog, i have below error:

      [root@er-v1-2 local]# mongorestore --host address1:27017 -u user1 --oplogReplay --oplogLimit 1551254369:3 /home/monit/oplog/local
      Enter password:
      2019-02-28T11:54:27.787+0100 preparing collections to restore from
      2019-02-28T11:54:27.787+0100 replaying oplog
      2019-02-28T11:54:27.788+0100 Failed: restore error: error applying oplog: applyOps: uuid must be a 16-byte binary field with UUID (4) subtype

       

      Do you know how to fix this issue?

      BR,

      Adam

       

       

        1. replicaset_status.txt
          4 kB
        2. local.tar.xz
          10.80 MB

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            adam.wiacek@orange.com Adam Wiacek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: