Not able to add multiple config servers to mongos

27 views
Skip to first unread message

diptamay

unread,
Aug 31, 2010, 6:06:33 PM8/31/10
to mongodb-user
Hi

I am probably doing something stupid out here, but I can't get to run
mongos with multiple config servers:

mongodb@qamongodb02:/opt/mongodb/bin> ./mongos --configdb
172.20.65.160:20000,localhost:20000
Tue Aug 31 18:01:23 need either 1 or 3 configdbs


However, if I use a single one it works.

mongodb@qamongodb02:/opt/mongodb/bin> ./mongos --configdb
172.20.65.160:20000
Tue Aug 31 18:01:27 ./mongos db version v1.6.1, pdfile version 4.5
starting (--help for usage)
Tue Aug 31 18:01:27 git version:
19b587d9254dd79dbaaddffabe82771fb3cd108b
Tue Aug 31 18:01:27 sys info: SunOS fhm8e4dc.joyent.us 5.11 snv_89
i86pc BOOST_LIB_VERSION=1_38
Tue Aug 31 18:01:27 [websvr] web admin interface listening on port
28017
Tue Aug 31 18:01:27 waiting for connections on port 27017

Any ideas?

I am running v1.6.1 on a Solaris X86.

Thanks
Diptamay

Eliot Horowitz

unread,
Aug 31, 2010, 6:13:14 PM8/31/10
to mongod...@googlegroups.com
Looks like you specified 2.  You have to use 1 or 3 as it states.
Also - it'l complain about localhost as well - but you'll get another error message about that.


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


diptamay

unread,
Aug 31, 2010, 6:21:13 PM8/31/10
to mongodb-user
Sorry I missed the 1 "or" 3.

However, it seems to be working with localhost. Or am I missing
something?

mongodb@qamongodb02:/opt/mongodb/bin> ./mongos --configdb localhost:
20000
Tue Aug 31 18:20:23 ./mongos db version v1.6.1, pdfile version 4.5
starting (--help for usage)
Tue Aug 31 18:20:23 git version:
19b587d9254dd79dbaaddffabe82771fb3cd108b
Tue Aug 31 18:20:23 sys info: SunOS fhm8e4dc.joyent.us 5.11 snv_89
i86pc BOOST_LIB_VERSION=1_38
Tue Aug 31 18:20:23 [websvr] web admin interface listening on port
28017
Tue Aug 31 18:20:23 waiting for connections on port 27017


Thanks
Diptamay
> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>
> > .

Eliot Horowitz

unread,
Aug 31, 2010, 6:23:30 PM8/31/10
to mongod...@googlegroups.com
You can't mix and match localhost. All or none.

> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages