You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2022. It is now read-only.
Greetings, I would like to use RockMongo to allow our Product team to run analytics on a hidden replica attached to our production replica set.
However, I keep getting the following error:
not master and slaveOk=false
I did some Google'ing and it looks like some folks had some workarounds with setSlaveOkay(true) in app/models/MServer.php, but nothing seems to be working. Any help would be extremely appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
This happens because you have a version of the Mongo extension including MongoClient, in which case RockMongo instantiates MongoClient, instead of Mongo, and MongoClient does not carry the deprecated setSlaveOkay() method, but expected use of setReadPreference(). PR is #110 .
fgm
added a commit
to fgm/rockmongo
that referenced
this issue
Jul 20, 2015
Greetings, I would like to use RockMongo to allow our Product team to run analytics on a hidden replica attached to our production replica set.
However, I keep getting the following error:
not master and slaveOk=false
I did some Google'ing and it looks like some folks had some workarounds with setSlaveOkay(true) in app/models/MServer.php, but nothing seems to be working. Any help would be extremely appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: