Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-1603

'mongorestore' utility failed to restore 'admin' database on config replica set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Gone away
    • Affects Version/s: 3.4.1
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      None
    • Documentation Changes:
      Not Needed

      Description

      I have sharded cluster with replication and authentication. Config replica set consists of three mongod servers. Each config mongod process is started with command similar to:

      /opt/mongodb/bin/mongod \
                --auth \
                --port 27017 \
                --dbpath /data \
                --keyFile /data/mongodb-keyfile \
                --replSet cnfrs \
                --configsvr \
                --wiredTigerCacheSizeGB 0.25
      

      I decided to restore admin database, so I call mongorestore:

      /opt/mongodb/bin/mongorestore --drop \
      			--username=root \
      			--password=root \
      			--authenticationDatabase=admin \
      			--host=cnfrs/cnfrs0:27017,cnfrs1:27017,cnfrs2:27017 \
      			--db=admin \
      			--batchSize=1 \
      			/backup-storage/20170125T1600/admin
      

      and it failed with message:

      2017-01-27T13:55:38.102+0000    the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and not exist in the future; use --nsInclude 
      2017-01-27T13:55:38.102+0000    building a list of collections to restore from /backup-storage/20170125T1600/admin dir
      2017-01-27T13:55:38.104+0000    restoring users from /backup-storage/20170125T1600/admin/system.users.bson
      2017-01-27T13:55:39.076+0000    Failed: restore error: error running merge command: Illegal attempt to set operation deadline within DBDirectClient
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spencer.jackson Spencer Jackson
                Reporter:
                lis0x90 Sergey Lisovoy
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: