Monday, December 13, 2021

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.

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status