Google Groups

Re: [mongodb-user] Error When adding a member to existing Replica set


Eliot Horowitz Apr 9, 2012 11:26 PM
Posted in group: mongodb-user
Can you send rs.conf() and rs.status()

Also - can you try connecting to the new host via the name you put in
the rs config.
From the machine itself and from another machine.

On Mon, Apr 9, 2012 at 5:48 PM, mongouser <nmch...@gmail.com> wrote:
> Hello,
>
> I have a replicaset (V2.02) setup running (1primary, 1 secondary & 1
> arbiter) on three different servers.Now i am trying to added a 4th
> member priority 0 and Hidden : true for taking backups on the second
> server (So now i will be having two instances of mongo running on
> second server and writing data on two diff filesystems)
>
> I copied the dbpath from existing secondary on to another filesystem
> and started a the replicaset with following command.
>
> nohup ./mongod --rest --port 25017 --replSet myset --oplogSize=30000 --
> dbpath /backups/mongodata/data/db --fork --logpath /backups/mongodata/
> data/mongologs&
>
> The port for secondary which was already running on this server was
> running on 27017.
>
> After running the above command i see following error message in the
> log file.
>
> Tue Apr 10 07:24:19 [rsStart] replSet info Couldn't load config yet.
> Sleeping 20sec and will try again.
> Tue Apr 10 07:24:39 [rsStart] trying to contact 10.156.240.143:26017
> Tue Apr 10 07:24:47 [rsStart] DBClientCursor::init call() failed
> Tue Apr 10 07:24:47 [rsStart] replSet error self not present in the
> repl set configuration:
> Tue Apr 10 07:24:47 [rsStart] { _id: "myset", version: 1, members:
> [ { _id: 0, host: "10.156.240.142:27017" }, { _id: 1, host:
> "10.156.240.143:27017" }, { _id: 2, host: "10.156.
> 240.148:27017", arbiterOnly: true } ] }
>
> I tried adding this member to the replicatsets and after doing rs
> status() gives me the following
>
>                },
>                {
>                        "_id" : 3,
>                        "name" : "'aux1etl02-acb:25017",
>                        "health" : 0,
>                        "state" : 8,
>                        "stateStr" : "(not reachable/healthy)",
>                        "uptime" : 0,
>                        "optime" : {
>                                "t" : 0,
>                                "i" : 0
>                        },
>                        "optimeDate" :
> ISODate("1970-01-01T00:00:00Z"),
>                        "lastHeartbeat" :
> ISODate("1970-01-01T00:00:00Z"),
>                        "pingMs" : 0,
>                        "errmsg" : "socket exception"
>                }
>        ],
>        "ok" : 1
> }
>
> Is this normal? why am i getting socket exception and why is my log
> saying "replSet error self not present in the repl set
> configuration:" ??
>
> What should i do??
>
> Any advice greatly appreciated.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>