Clicky

Mongo - error "not master and slaveOk=false"

March 17, 2016

Problem:

listDatabases failed:{ “ok” : 0, “errmsg” : “not master and slaveOk=false”, “code” : 13435 } at src/mongo/shell/mongo.js:47

Solution:

Make sure you have the replication set: rs.initiate();