Entries Published On November, 2015
MongoDB: No host in new replica set maps to this node
In the “trivial-errors” category, I imagine one will encounter this error when setting up MongoDB replica sets.
1 2 3 4 5 6 |
> rs.initiate(rsconfig) { "ok" : 0, "errmsg" : "No host described in new configuration 1 for replica set replset maps to this node", "code" : 93 } |
What this means is that the current instance cannot connect to host 1 in my rsconfig for a few possible reasons. A firewall or network configuration blocking access to the MongoDB port. The host cannot be resolved. …