mongorestore Failed: no reachable servers

后端 未结 12 1781
天涯浪人
天涯浪人 2020-12-15 03:06

I tried to restore mongo from dump but failed:

mongorestore --port 27133 dump
2015-05-07T09:39:11.760+0300    Failed: no reachable servers

12条回答
  •  轮回少年
    2020-12-15 03:43

    The problem occured because --replSet was enabled in configuration. But the node wasn't yet in any replica set.

    After I removed --replSet from configuration, relaunched mongodb server, mongorestore started to work without any --host parameter.

提交回复
热议问题