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

Trying to create replica set on local machine. Gives errror "couldn't initiate : can't find self in the replset config"

    XMLWordPrintableJSON

Details

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

    Description

      Testing replica sets before moving to production.

      Started 3 instances of mongod on 3 dbs.
      local-idinc is mapped to 127.0.0.1

      config =
      {
      "_id" : "idincrepl",
      "members" : [

      { "_id" : 0, "host" : "local-idinc:10001" }

      ,

      { "_id" : 1, "host" : "local-idinc:10002" }

      ,

      { "_id" : 2, "host" : "local-idinc:10003" }

      ]
      }

      > rs.initiate(config);
      {
      "errmsg" : "couldn't initiate : can't find self in the replset config",
      "ok" : 0
      }

      -----------------------------
      Any errors in the configuration?

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            sujit Sujit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: