When pulling data from a MongoDb in a replica set, the error ' "$err" : "not master and slaveOk=false"' is seen
Issue
When attempting to pull data from a Mongo database that is a member of a replica set, the following error is seen:
uncaught exception: error: { "$err" : "not master and slaveOk=false", "code" : 13435 }
Environment
- MongoDb Replica Set
- OpenShift Enterprise 1.1
- OpenShift Enterprise 1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
