mongos> db.<collection>.count()2015-04-09T10:42:17.733-0700 E QUERY Error: count failed: {"code" : 10429,"ok" : 0,"errmsg" : "exception: setShardVersion failed host: <host>:27017 { oldVersion: Timestamp 0|0, oldVersionEpoch: ObjectId('000000000000000000000000'), ns: \"<collection>\", version: Timestamp 331000|1, versionEpoch: ObjectId('542d6fa157164e15b2c91c50'), globalVersion: Timestamp 0|0, globalVersionEpoch: ObjectId('000000000000000000000000'), reloadConfig: true, ok: 0.0, errmsg: \"could not refresh metadata for <collection> with requested shard version 331|1||542d6fa157164e15b2c91c50, stored shard version is 0|0...\", $gleStats: { lastOpTime: Timestamp 0|0, electionId: ObjectId('5525e871bb20e9bc47b8c66a') } }"}at Error (<anonymous>)at DBQuery.count (src/mongo/shell/query.js:326:11)at DBCollection.count (src/mongo/shell/collection.js:1046:27)at (shell):1:21 at src/mongo/shell/query.js:326mongos>
Hi ChCow
Same issue but does’t solved…
Please note that you’re replying to a thread that is more than 2 years old. Lots of things have changed since then, and what appear to be the same error could be caused by entirely different things.
In order to get more help, please create a new thread and post:
mongod
process)sh.status()
mongod
logsBest regards
Kevin
mongodb:v3.4.9
error logs from mongodb c++ source code: https://github.com/mongodb/mongo/blob/367d31e1da549c460ae710a8cc280f4c235ab24f/src/mongo/s/client/shard_registry.cpp#L384
Mongos throw error when i add new node to a shard cluster and all the enableShardCollection can't query (ExceededTimeLimit).
Marking host config.app.com as failed :: caused by :: ExceededTimeLimit: Operation timed out, request was RemoteCommand 871 -- target:config.app.com db:config expDate:2017-10-21T13:16:38.250+0000 cmd:{ find: "shards", readConcern: { level: "majority", afterOpTime: { ts: Timestamp 1508586527000|1, t: 24 } }, maxTimeMS: 30000 }
2017-10-21T13:16:38.250+0000 I SHARDING [shard registry reload] Operation timed out :: caused by :: ExceededTimeLimit: Operation timed out, request was RemoteCommand 871 -- target:config.app.com db:config expDate:2017-10-21T13:16:38.250+0000 cmd:{ find: "shards", readConcern: { level: "majority", afterOpTime: { ts: Timestamp 1508586527000|1, t: 24 } }, maxTimeMS: 30000 }
2017-10-21T13:16:38.250+0000 I SHARDING [shard registry reload] Periodic reload of shard registry failed :: caused by :: 50 could not get updated shard list from config server due to Operation timed out, request was RemoteCommand 871 -- target:config.app.com db:config expDate:2017-10-21T13:16:38.250+0000 cmd:{ find: "shards", readConcern: { level: "majority", afterOpTime: { ts: Timestamp 1508586527000|1, t: 24 } }, maxTimeMS: 30000 }; will retry after 30s
Hi ChCow
Thanks for the update.
Could you create a new thread with the answers to the rest of my questions?
Best regards
Kevin