sh.status()错误处理查询:ns = config.mongosTree

时间:2018-07-27 17:32:00

标签: mongodb

如果我在mongos中运行sh.status,则会收到错误消息:

assert: command failed: {
        "ok" : 0,
        "errmsg" : "error processing query: ns=config.mongosTree: ping $gt new Date(1532712420740)\nSort: {}\nProj: {}\n No query solutions",
        "code" : 2
} : aggregate failed
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:290:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
printShardingStatus@src/mongo/shell/utils_sh.js:611:13
sh.status@src/mongo/shell/utils_sh.js:78:5
@(shell):1:1

2018-07-27T11:28:05.644-0600 E QUERY    [thread1] Error: command failed: {
        "ok" : 0,
        "errmsg" : "error processing query: ns=config.mongosTree: ping $gt new Date(1532712420740)\nSort: {}\nProj: {}\n No query solutions",
        "code" : 2
} : aggregate failed :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:16:14
assert.commandWorked@src/mongo/shell/assert.js:290:5
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5
printShardingStatus@src/mongo/shell/utils_sh.js:611:13
sh.status@src/mongo/shell/utils_sh.js:78:5

我重新安装了所有mongo-enterprise软件包,但是错误仍然存​​在,所有分片都正常工作,因为我可以从mongos执行查找。

谢谢

0 个答案:

没有答案