Reputation: 1
I have got this issue while working on replica sets. Server is successfully turning on but after executing rs.initiate()
and rs.status
I am getting errors.
"info2" : "no configuration explicitly specified -- making one",
"errmsg" : "exception: bad --replSet config string format is: <setname>[host1>,<seedhost2>,...]",
"code" : 13093,
"ok" : 0
Upvotes: 0
Views: 751
Reputation: 11
I ran into this problem as well. What happened was I configured the replica set in /etc/mongo.conf
, went into the mongo client and executed rs.initiate()
. What I forgot to do was restart mongo! A simple sudo service mongod restart
fixed it.
Upvotes: 1