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

First Production Deployment - Problems with initiating replication

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.4.6
    • Replication
    • None
    • Ubuntu 13.10 release at AWS in on m1.large multiple regions

    Description

      Having trouble adding nodes to a replica set after converting a single standalone to a replica set. I get the following error:

      sun01:PRIMARY> rs.add("secondary.mongodb.sungevity.com")
      {
      "errmsg" : "exception: need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017",
      "code" : 13144,
      "ok" : 0
      }

      I can connect to the node I'm attempting to add from the replica node:

      ubuntu@primary:~$ mongo secondary.mongodb.sungevity.com/admin
      MongoDB shell version: 2.4.6
      connecting to: secondary.mongodb.sungevity.com/admin
      > db
      admin

      And I can connect to the replica node from the node I wish to add:

      ubuntu@secondary:~$ mongo primary.mongodb.sungevity.com/admin
      MongoDB shell version: 2.4.6
      connecting to: primary.mongodb.sungevity.com/admin
      > db
      admin

      Here is replica status output from the primary that I initiated the replica set on:

      sun01:PRIMARY> db.runCommand (

      { replSetGetStatus: 1 }

      )
      {
      "set" : "sun01",
      "date" : ISODate("2013-10-28T17:16:05Z"),
      "myState" : 1,
      "members" : [

      { "_id" : 0, "name" : "primary.mongodb.sungevity.com:27017", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 331538, "optime" : Timestamp(1382575785, 1), "optimeDate" : ISODate("2013-10-24T00:49:45Z"), "self" : true }

      ],
      "ok" : 1
      }
      sun01:PRIMARY> rs.conf()
      {
      "_id" : "sun01",
      "version" : 1,
      "members" : [

      { "_id" : 0, "host" : "primary.mongodb.sungevity.com:27017" }

      ]
      }

      I have attached both the primary (replica set node) and secondary (node I want to add) mongodb.conf files to this ticket.

      The documentation is so simple and clear, I figure I'm missing something arcane or so obvious I'm going to be embarrassed.

      Thanks for your assistance.

      Attachments

        1. mongo(primary).conf
          2 kB
        2. mongo(secondary).conf
          2 kB

        Activity

          People

            Unassigned Unassigned
            jjcox@sungevity.com Joshua Cox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: