i want to setup a new replica set:
mongod --replSet test --oplogSize 200 --rest --port 5005 --dbpath c:/
db
mongo starts up.....
now i log into the mongo console with "mongo --port 5005"
rs.initiate()
rs.conf()
{
"_id" : "test",
"version" : 1,
"members" : [
{
"_id" : 0,
"host" : "myserver:5005"
}
]
}
rs.status()
{
"set" : "test",
"date" : ISODate("2012-03-12T09:04:58Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "myserver:5005",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"optime" : {
"t" : 1331542607000,
"i" : 1
},
"optimeDate" :
ISODate("2012-03-12T08:56:47Z"),
"self" : true
}
],
"ok" : 1
}
So far, so good.
Now i want to reconfigure my hostname to go "online"...
var c = rs.conf()
c.members[0].host="
mycoolhostname.dyndns.org:5005"
rs.reconfig(c)
{
"assertion" : "can't find self in new replset config",
"assertionCode" : 13433,
"errmsg" : "db assertion failure",
"ok" : 0
}
even when i put my external ip into the host field, it doesn't work.
port 5005 is open and forwarded to my server.
any suggestions?
thanks in advance
Matthias Schaffer