Replica changed IP and now can't connect

24 views
Skip to first unread message

news...@syslog.com

unread,
Apr 18, 2012, 5:08:40 PM4/18/12
to mongodb-user
The joys of EC2.

An instance running in EC2 was restarted and received a new IP, and
updated it's own DNS. The replica set config has the server listed by
domain name, which hasn't changed - just the IP has changed.

However, the replica log is full of:

Wed Apr 18 17:02:16 [rsStart] replSet error self not present in the
repl set configuration

I've tried rs.remove() and rs.add() of the replica, I've tried
deleting everything on the replica, but nothing will make the replica
reconnect.

Any clues appreciated.

Eliot Horowitz

unread,
Apr 19, 2012, 12:37:24 AM4/19/12
to mongod...@googlegroups.com
Can you send:
rs.conf()
hostname
/sbin/ifconfig -a

Something probably isn't matching.

> --
> 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.
>

news...@syslog.com

unread,
Apr 19, 2012, 9:08:47 AM4/19/12
to mongodb-user
This turned out to be a localized DNS issue - the remote DNS had
updated but the local hadn't updated. It started working after that
fix.

On Apr 19, 12:37 am, Eliot Horowitz <el...@10gen.com> wrote:
> Can you send:
> rs.conf()
> hostname
> /sbin/ifconfig -a
>
> Something probably isn't matching.
>
> On Wed, Apr 18, 2012 at 5:08 PM, newsgr...@syslog.com
Reply all
Reply to author
Forward
0 new messages