[Sharding] Can't add shards.

1,476 views
Skip to first unread message

Nestor Ledon

unread,
Nov 15, 2012, 3:30:19 PM11/15/12
to mongod...@googlegroups.com
Running all instances on different machines on the same network. Only MongoS & ConfigServer are on the same machine. Shar1 & Shard2 are separate.
Everything seems to be running smooth except:

mongos> sh.addShard("192.168.2.212:27017")
{
        "ok" : 0,
        "errmsg" : "host is part of set: dunnReplSetAlpha use replica set url fo
rmat <setname>/<server1>,<server2>,...."
}
mongos>
mongos> sh.addShard("<setName>/192.168.2.212:27017")
{
        "ok" : 0,
        "errmsg" : "couldn't connect to new shard socket exception [CONNECT_ERRO
R] for <setName>/192.168.2.212:27017"
}
mongos>

Any ideas? Thank you.

Nestor Ledon

unread,
Nov 15, 2012, 3:33:53 PM11/15/12
to mongod...@googlegroups.com
Note I've also tried:

sh.addShard("<dunnReplSetAlpha>/192.168.2.212:27017")

&

sh.addShard("dunnReplSetAlpha/192.168.2.212:27017")

Nestor Ledon

unread,
Nov 15, 2012, 4:11:27 PM11/15/12
to mongod...@googlegroups.com
I'm almost positive the ports are open. These very same machines used to communicate as one ReplicaSet prior to these changes. Would not have worked unless the ports where open right? <--- Needs expert.

How does one check port on a Windows machine? I checked the Linux ReplicaSet (192.168.2.212) via telnet and it seems to be open.


On Thu, Nov 15, 2012 at 2:48 PM, Christopher Choi <chu...@gmail.com> wrote:
  • Have you checked your ports are open. 
  • Can one shard connect to the other?

--
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
See also the IRC channel -- freenode.net#mongodb

Nestor Ledon

unread,
Nov 16, 2012, 9:21:24 AM11/16/12
to mongod...@googlegroups.com
Figured it out. I had a host/ip issue. Be SURE to use only hostnames or ONLY ips.

Navneet Garg

unread,
Feb 6, 2014, 7:44:54 AM2/6/14
to mongod...@googlegroups.com
Getting same error please explain solution in detail i used ip address but getting same messages

Yousef Awwad

unread,
Mar 5, 2014, 2:50:47 AM3/5/14
to mongod...@googlegroups.com

Hello

I had the same problem and i found it wad due to the firewall on my shard machine
opened the firewall and everything was fine

Asya Kamsky

unread,
Mar 5, 2014, 5:38:08 AM3/5/14
to mongodb-user
I have no idea what the problem that you are having is...  Can't add shards is not very specific...

Can you please start by describing what version of MongoDB you are using, what you already did and what exactly you are running that's giving an error.   Exact error as well as anything that's in the logs would be helpful as well for us to be able to help you...

Asya



--
--
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
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages