[SERVER-28137] Mongorestore fails on config server - error running merge command: Missing expected field "db" Created: 28/Feb/17  Updated: 31/May/17  Resolved: 21/Mar/17

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 3.2.10
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Dharshan Rangegowda Assignee: Mark Agarunov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

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"



 Comments   
Comment by Mark Agarunov [ 06/Mar/17 ]

Hello dharshanr@scalegrid.net,

Thank you for the report. Looking over the output you've provided, I believe the error may be due to running an older version of the Authorization Schema. Please verify that you have upgraded your Auth Schema to a compatible version. Please also confirm that the version of mongorestore you are using matches the version of the mongod you are restoring to.

Thanks,
Mark

Generated at Thu Feb 08 04:17:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.