mongodb - Can't connect to secondary members in a replica Set -


i've created mongodb replica set 3 members. synchronized, if try connect secondary members via robomongo , via webapp not work. error slaveok set false, i've set rs.slaveok() each member of replica set.

if connect via shell not error , can list everything. if secondary member becomes primary can read via robomongo.

mongodb shell version: 2.6.10

here rs.status()

rs:primary> rs.status() {     "set" : "gmrrs",     "date" : isodate("2015-06-25t16:14:53z"),     "mystate" : 1,     "members" : [         {             "_id" : 0,             "name" : "****",             "health" : 1,             "state" : 1,             "statestr" : "primary",             "uptime" : 2014,             "optime" : timestamp(1435246594, 1208),             "optimedate" : isodate("2015-06-25t15:36:34z"),             "electiontime" : timestamp(1435248124, 1),             "electiondate" : isodate("2015-06-25t16:02:04z"),             "self" : true         },         {             "_id" : 1,             "name" : "***:27019",             "health" : 1,             "state" : 2,             "statestr" : "secondary",             "uptime" : 774,             "optime" : timestamp(1435246594, 1208),             "optimedate" : isodate("2015-06-25t15:36:34z"),             "lastheartbeat" : isodate("2015-06-25t16:14:52z"),             "lastheartbeatrecv" : isodate("2015-06-25t16:14:52z"),             "pingms" : 0,             "syncingto" : "****:27018"         },         {             "_id" : 2,             "name" : "****:27020",             "health" : 1,             "state" : 2,             "statestr" : "secondary",             "uptime" : 759,             "optime" : timestamp(1435246594, 1208),             "optimedate" : isodate("2015-06-25t15:36:34z"),             "lastheartbeat" : isodate("2015-06-25t16:14:51z"),             "lastheartbeatrecv" : isodate("2015-06-25t16:14:51z"),             "pingms" : 1,             "syncingto" : "***:27018"         }     ],     "ok" : 1 } 

and here rs.conf()

 rs:primary> rs.conf() {     "_id" : "rs",     "version" : 3,     "members" : [         {             "_id" : 0,             "host" : "***:27018"         },         {             "_id" : 1,             "host" : "***:27019"         },         {             "_id" : 2,             "host" : "***:27020"         }     ] } 

i write on 1 server , read of them.

can help?

thanks, nicola

robomongo can't query secondary instances in replica set: https://github.com/paralect/robomongo/issues/116


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -