Mongorestore error - Failed: error connecting to db server: no reachable servers

Mongorestore error - Failed: error connecting to db server: no reachable servers

 

Before run mongorestore check if there is replSet in config file.

or you run mongo in replica set, i.e., mongod --replSet rs0?

If yes, please remember to run in your mongo shell the command: rs.initiate()

Then you can use cmd mongorestore to restore your db.

Comments

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Reduce (shrink) and resize raw disk at Proxmox

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10