MongoDB Error: moveChunk failed to engage TO-shard in the data transfer: cannot start recv'ing chunk
MongoDB Error: moveChunk failed to engage TO-shard in the data transfer: cannot start recv'ing chunk
我在 mongodb 变更日志集合中看到以下错误。
{
"_id" : "ip-xxx-xx-xx-xx-2016-05-04T06:31:55-5729975b16a41fe4f4618182",
"server" : "ip-xxx-xx-xx-xx",
"clientAddr" : "xxx.xx.xx.x:36339",
"time" : ISODate("2016-05-04T06:31:55.754Z"),
"what" : "moveChunk.from",
"ns" : "my_db.my_collection",
"details" : {
"min" : {
"my_shard_key" : { "$minKey" : 1 }
},
"max" : {
"my_shard_key" : "H0285211-08"
},
"step 1 of 6" : 0,
"step 2 of 6" : 278,
"note" : "aborted",
"errmsg" : "moveChunk failed to engage TO-shard in the data transfer: cannot start recv'ing chunk [{ my_shard_key: MinKey },{ my_shard_key: \"H0285211-08\" }) :: caused by :: could not query collection metadata :: caused by :: 8002 all servers down/unreachable when querying: my-conf-server-01:27019,my-conf-server-02:27019,my-conf-server-03:27019"
}
}
我可以使用 mongo 客户端连接到我的 mongo 配置服务器。这确认没有连接问题。
如果需要更多详细信息,请告诉我。
找到问题了。
当没有从副本集的主节点到配置服务器的连接时,会发生此错误。在我的例子中,我从一个辅助节点成功连接到我的配置服务器(my-conf-server-01:27019、my-conf-server-02:27019、my-conf-server-03:27019)。 那里有主机条目,但主节点上没有。
由于这个问题,Mongo 没有开始块迁移,我的分片不平衡。
我在 mongodb 变更日志集合中看到以下错误。
{
"_id" : "ip-xxx-xx-xx-xx-2016-05-04T06:31:55-5729975b16a41fe4f4618182",
"server" : "ip-xxx-xx-xx-xx",
"clientAddr" : "xxx.xx.xx.x:36339",
"time" : ISODate("2016-05-04T06:31:55.754Z"),
"what" : "moveChunk.from",
"ns" : "my_db.my_collection",
"details" : {
"min" : {
"my_shard_key" : { "$minKey" : 1 }
},
"max" : {
"my_shard_key" : "H0285211-08"
},
"step 1 of 6" : 0,
"step 2 of 6" : 278,
"note" : "aborted",
"errmsg" : "moveChunk failed to engage TO-shard in the data transfer: cannot start recv'ing chunk [{ my_shard_key: MinKey },{ my_shard_key: \"H0285211-08\" }) :: caused by :: could not query collection metadata :: caused by :: 8002 all servers down/unreachable when querying: my-conf-server-01:27019,my-conf-server-02:27019,my-conf-server-03:27019"
}
}
我可以使用 mongo 客户端连接到我的 mongo 配置服务器。这确认没有连接问题。
如果需要更多详细信息,请告诉我。
找到问题了。
当没有从副本集的主节点到配置服务器的连接时,会发生此错误。在我的例子中,我从一个辅助节点成功连接到我的配置服务器(my-conf-server-01:27019、my-conf-server-02:27019、my-conf-server-03:27019)。 那里有主机条目,但主节点上没有。
由于这个问题,Mongo 没有开始块迁移,我的分片不平衡。