mongodb - Error throwing when trying to use new data base - wrong type for field (0) 1 != 2 -
i getting below error while trying run show collections, dropdatabase(), repairdatabase() commands etc. below mydb new database.
mongos> use mydb switched db mydb mongos> show collections thu apr 18 08:25:05.435 javascript execution failed: error: { "$err" : "error creating initial database config information :: caused :: wrong type field (0) 1 != 2", "code" : 13111 } @ src/mongo/shell/query.js:l128 mongos> db.dropdatabase(); thu apr 18 08:25:10.285 javascript execution failed: error: { "$err" : "error creating initial database config information :: caused :: wrong type field (0) 1 != 2", "code" : 13111 } @ src/mongo/shell/query.js:l128 mongos> db.repairdatabase(); thu apr 18 08:36:17.170 javascript execution failed: error: { "$err" : "error creating initial database config information :: caused :: wrong type field (0) 1 != 2", "code" : 13111 } @ src/mongo/shell/query.js:l128
before tried tag aware sharding, not success full. tried find resources not find resolve this.
and when mongo shell throw "norepl" error. got 1 below.
mongos> use admin switched db admin mongos> sh.addshardtag("m-p-shrd1", "15"); norepl
Comments
Post a Comment