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

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

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

Python pxssh failed on login. could not set shell prompt