Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4305

Mongo::Error::OperationFailure (not master and slaveOk=false) on failover

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Rails 4.2 running on CoreOS / Docker, Mongoid 5.1.3

      During the past week we've failover several of our mongo clusters. After the failover happened, we were unable to perform any writes - each one failing with "Mongo::Error::OperationFailure (not master and slaveOk=false)". This issue was solved only after redeploying our application.

      We've specified all of the hosts in our mongoid.yml file but still Mongoid doesn't seem to be able to connect to the new master.

      Any ideas on what might be causing this / suggestions for how to fix it?

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jack-kearney Jack Kearney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: