Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28137

Mongorestore fails on config server - error running merge command: Missing expected field "db"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: Tools
    • None
    • ALL

      Hi,

      We recently upgraded our server from 2.6.11 -> 3.0.8 -> 3.2.10.

      Once this upgrade was completed we want to upgrade engine of config server. So we followed the steps here - https://docs.mongodb.com/v3.2/tutorial/change-config-server-wiredtiger/.

      However once we changed engine to wired tiger the mongorestore is not working

      using default 'dump' directory
      building a list of dbs and collections to restore from dump dir
      reading metadata for config.changelog from dump/config/changelog.metadata.json
      reading metadata for config.chunks from dump/config/chunks.metadata.json
      reading metadata for config.actionlog from dump/config/actionlog.metadata.json
      reading metadata for config.locks from dump/config/locks.metadata.json
      restoring config.changelog from dump/config/changelog.bson
      restoring config.chunks from dump/config/chunks.bson
      restoring config.actionlog from dump/config/actionlog.bson
      restoring config.locks from dump/config/locks.bson
      restoring indexes for collection config.locks from metadata
      finished restoring config.locks (13 documents)
      reading metadata for config.lockpings from dump/config/lockpings.metadata.json
      restoring config.lockpings from dump/config/lockpings.bson
      restoring indexes for collection config.lockpings from metadata
      restoring indexes for collection config.actionlog from metadata
      finished restoring config.actionlog (220 documents)
      reading metadata for config.collections from dump/config/collections.metadata.json
      finished restoring config.lockpings (37 documents)
      reading metadata for config.mongos from dump/config/mongos.metadata.json
      restoring config.collections from dump/config/collections.bson
      restoring indexes for collection config.collections from metadata
      restoring config.mongos from dump/config/mongos.bson
      restoring indexes for collection config.mongos from metadata
      finished restoring config.collections (13 documents)
      reading metadata for config.shards from dump/config/shards.metadata.json
      finished restoring config.mongos (11 documents)
      reading metadata for config.databases from dump/config/databases.metadata.json
      restoring config.shards from dump/config/shards.bson
      restoring indexes for collection config.shards from metadata
      restoring config.databases from dump/config/databases.bson
      finished restoring config.shards (4 documents)
      reading metadata for config.settings from dump/config/settings.metadata.json
      restoring indexes for collection config.databases from metadata
      finished restoring config.databases (14 documents)
      reading metadata for config.version from dump/config/version.metadata.json
      restoring config.settings from dump/config/settings.bson
      restoring config.version from dump/config/version.bson
      restoring indexes for collection config.settings from metadata
      restoring indexes for collection config.version from metadata
      finished restoring config.settings (2 documents)
      reading metadata for config.tags from dump/config/tags.metadata.json
      finished restoring config.version (1 document)
      restoring config.tags from dump/config/tags.bson
      restoring indexes for collection config.tags from metadata
      finished restoring config.tags (0 documents)
      restoring indexes for collection config.chunks from metadata
      finished restoring config.chunks (3263 documents)
      [############............]  config.changelog  5.09MB/9.59MB  (53.1%)
      [########################]  config.changelog  9.59MB/9.59MB  (100.0%)
      restoring indexes for collection config.changelog from metadata
      finished restoring config.changelog (24497 documents)
      restoring users from dump/admin/system.users.bson
      Failed: restore error: error running merge command: Missing expected field "db"
      

            Assignee:
            mark.agarunov Mark Agarunov
            Reporter:
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: