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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved: