Mongo - error "not master and slaveOk=false"

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();

Comments

Popular posts from this blog

Hibernate - HibernateException: createQuery is not valid without active transaction