Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22507

E QUERY [thread1] Error: not master and slaveOk=false :

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin
    • None

    Description

      Hello,

      I am new user in MongoDB. When i query db.getUsers() get following error. How can i resolve this problem?

      rs0:SECONDARY> db.getUsers()
      2016-02-08T14:47:44.267+0400 E QUERY [thread1] Error: not master and slaveOk=false :
      _getErrorWithCode@src/mongo/shell/utils.js:23:13
      DB.prototype.getUsers@src/mongo/shell/db.js:1466:1
      @(shell):1:1

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sarkhan Sarkhan Allahverdiyev [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: