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

mongod --replSet --repair fails with NotMasterNoSlaveOk error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.0.19, 4.2.8, 4.4.0
    • 5.1.0-rc0
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-08-09, Execution Team 2021-08-23

    Description

      Create a 3-node replica set, shut it down, then restart with --repair. The repair does not complete, failing part way through with the following error:

      {"t":\{"$date":"2020-08-08T08:02:45.266-04:00"},"s":"E", "c":"STORAGE", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":\{"error":"NotMasterNoSlaveOk: not master and slaveOk=false"}}
      

      This happens on all 3 nodes. Debug level 5 logs attached.

      Attachments

        1. r0.log
          310 kB
          Bruce Lucas
        2. r1.log
          310 kB
          Bruce Lucas
        3. r2.log
          310 kB
          Bruce Lucas

        Issue Links

          Activity

            People

              jackson.xie@mongodb.com Jackson Xie (Inactive)
              bruce.lucas@mongodb.com Bruce Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: