Results 1 to 1 of 1

Thread: MongoDB: Why { "$err" : "not master and slaveok=false", "code" : 13435 } ?

  1. #1

    MongoDB: Why { "$err" : "not master and slaveok=false", "code" : 13435 } ?

    When trying to refer (eg: show collections) to the Secondary server, why it shows:
    { "$err" : "not master and slaveok=false", "code" : 13435 }?

    In a production-based MongoDB adoption, you may have your database categorized as Primary and Secondary. The thing is, by default, you are unable to do query on the Secondary server, as the MongoDB drivers will route their request to the Primary.

    So, to solve this, you just need to input: rs.slaveOk() in the secondary server before you perform query.

    More details:
    http://www.mongodb.org/display/DOCS/slaveOk
    Last edited by Emrick Thomas; 05-17-2012 at 06:05 PM.

Similar Threads

  1. Replies: 0
    Last Post: 05-17-2012, 05:42 PM
  2. Replies: 0
    Last Post: 05-15-2012, 03:08 PM
  3. Replies: 1
    Last Post: 05-15-2012, 03:54 AM
  4. Windows 8 "Release Preview" Coming in June
    By webbie steve in forum Microsoft / Bing
    Replies: 0
    Last Post: 04-24-2012, 09:53 AM
  5. Replies: 0
    Last Post: 04-20-2012, 07:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •