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
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 executedrs.initiate()
. What I forgot to do was restart mongo! A simplesudo service mongod restart
fixed it.