Convert a Standalone to a Replica Set, not work

171 views
Skip to first unread message

Sanx

unread,
Nov 15, 2012, 3:40:57 PM11/15/12
to mongodb-user
Greetings to all

I need to Convert a Standalone to a Replica Set

I'm using the following documentation:

http://docs.mongodb.org/manual/tutorial/convert-standalone-to-replica-set/

After executing the following:

mongod --port 27017 --replSet rs0

in the terminal shows me the following

Thu Nov 15 10:07:57 [rsStart] trying to contact MY_HOST.local:27017
Thu Nov 15 10:07:57 [rsStart] couldn't connect to MY_HOST.local:
27017:
couldn't connect to server MY_HOST.local:27017
Thu Nov 15 10:07:57 [rsStart] replSet can't get local.system.replset
config from self or any seed (yet)

In mongo shell, the command results of rs.initiate() and rs.status(),
are the following:
> rs.initiate()

{
"startupStatus" : 4,
"info" : "rs0",
"errmsg" : "all members and seeds must be reachable to
initiate set",
"ok" : 0
}
> rs.status()

{
"startupStatus" : 4,
"errmsg" : "can't currently get local.system.replset config
from self
or any seed (EMPTYUNREACHABLE)",
"ok" : 0
}

Please I need help and tell me I'm doing wrong or what I'm missing

Thanks for your attention

gregor

unread,
Nov 16, 2012, 10:16:47 AM11/16/12
to mongod...@googlegroups.com
can you do

rs.config()

Sanx

unread,
Nov 16, 2012, 1:33:53 PM11/16/12
to mongodb-user
Thanks you very mucho gregor:


> rs.config()
null
>


On 16 nov, 09:16, gregor <gre...@10gen.com> wrote:
> can you do
>
> rs.config()
>
>
>
>
>
>
>
> On Thursday, November 15, 2012 8:57:07 PM UTC, Sanx wrote:
>
> > Greetings to all
>
> > I need to Convert a Standalone to a Replica Set
>
> > I'm using the following documentation:
>
> >http://docs.mongodb.org/manual/tutorial/convert-standalone-to-replica...

gregor

unread,
Nov 16, 2012, 2:16:07 PM11/16/12
to mongod...@googlegroups.com
 Can you paste your configuration file?

Sanx

unread,
Nov 21, 2012, 9:53:19 PM11/21/12
to mongodb-user
Thanks

mongod.conf


# Store data in /usr/local/var/mongodb instead of the default /data/db
dbpath = /usr/local/var/mongod

# Only accept local connections
bind_ip = 127.0.0.1

Sanx

unread,
Nov 21, 2012, 9:49:46 PM11/21/12
to mongodb-user
Thanks

mongod.conf

# Store data in /usr/local/var/mongodb instead of the default /data/db
dbpath = /usr/local/var/mongodb

# Only accept local connections
bind_ip = 127.0.0.1



On 16 nov, 13:16, gregor <gre...@10gen.com> wrote:

gregor

unread,
Nov 22, 2012, 4:11:22 AM11/22/12
to mongod...@googlegroups.com
Hi

Don't try to use bind_ip with a local address. That's probably what is causing the problem. See here

Sanx

unread,
Nov 24, 2012, 11:03:15 AM11/24/12
to mongodb-user
Yes!

you're right that's the problem

I change the value of bind_ip = 127.0.0.1

by

bind_ip = 0.0.0.0

works for me!

Thank you very much Gregor!



On 22 nov, 03:11, gregor <gre...@10gen.com> wrote:
> Hi
>
> Don't try to use bind_ip with a local address. That's probably what is
> causing the problem. See herehttps://jira.mongodb.org/browse/SERVER-6907

gregor

unread,
Dec 3, 2012, 7:11:22 AM12/3/12
to mongod...@googlegroups.com
glad you got it fixed :)
Reply all
Reply to author
Forward
0 new messages