Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.2.7
-
None
-
ALL
-
Description
We have standalone MongoDB server which has authentication service enabled. We want to query oplog.rs collection to implement certain feature. When we try to enable replication we get following error.
(code)
> rs.initiate()
{
"info2" : "no configuration explicitly specified – making one",
"me" : "EDemo:37017",
"errmsg" : "couldn't initiate : can't find self in the replset config my port: 37017",
"ok" : 0
}
> db.isMaster()
{
"ismaster" : false,
"secondary" : false,
"info" : "can't get local.system.replset config from self or any seed (EMPTYCONFIG)",
"isreplicaset" : true,
"maxBsonObjectSize" : 16777216,
"localTime" : ISODate("2014-08-13T10:50:40.321Z"),
"ok" : 1
}
On server following error is observed:
invalid parameter: expected an object ()
[rsStart] replSet can't get local.system.replset config from self or any seed (EMPTYCONFIG)
(code)
If we disable authentication then replication works fine. please suggest.