Received: by 10.68.236.170 with SMTP id uv10mr13554011pbc.4.1335694543745; Sun, 29 Apr 2012 03:15:43 -0700 (PDT) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.68.222.193 with SMTP id qo1ls8128019pbc.9.gmail; Sun, 29 Apr 2012 03:15:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.189.167 with SMTP id gj7mr547651pbc.10.1335694537058; Sun, 29 Apr 2012 03:15:37 -0700 (PDT) Authentication-Results: ls.google.com; spf=pass (google.com: domain of wangchao0...@gmail.com designates internal as permitted sender) smtp.mail=wangchao0...@gmail.com; dkim=pass header...@gmail.com Received: by k7g2000pbo.googlegroups.com with HTTP; Sun, 29 Apr 2012 03:15:36 -0700 (PDT) Date: Sun, 29 Apr 2012 03:15:36 -0700 (PDT) In-Reply-To: References: <16a8a23b-d748-4980-9fff-6e25c4c2b05c@k7g2000pbo.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10,gzip(gfe) Message-ID: <1f248bc6-75cf-425f-ae82-275055d2d574@k7g2000pbo.googlegroups.com> Subject: =?GB2312?Q?Re=3A_help=A3=A1addshard_not_work_with_auth?= From: =?GB2312?B?s6wgzfU=?= To: mongodb-user Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable i found it is a bug in mongo 2.0 . at now time . i can simply restart mongos to get it work. :) On 4=D4=C227=C8=D5, =C9=CF=CE=E711=CA=B103=B7=D6, Eliot Horowitz wrote: > Can you send the console session from the shell talking to the replica se= t? > > 2012/4/26 =B3=AC =CD=F5 : > > > > > > > > > no i can't. > > auth failed > > > On 4=D4=C227=C8=D5, =C9=CF=CE=E710=CA=B129=B7=D6, Eliot Horowitz wrote: > >> With auth - can you connect from the mongo shell running on the mongos > >> server to the replica set? > > >> 2012/4/26 =B3=AC =CD=F5 : > > >> > ...without auth.they can talk.... > >> > On 4=D4=C226=C8=D5, =CF=C2=CE=E711=CA=B125=B7=D6, Eliot Horowitz wrote: > >> >> What I was asking if the machine that mongos is on can talk to the = replica set. > >> >> It seems from the error message it cannot. > > >> >> 2012/4/26 =B3=AC =CD=F5 : > > >> >> > mongos only can talk with config server. > >> >> > i want mongos talk with replica set.so do you know how to do it? > > >> >> > On 4=D4=C226=C8=D5, =CF=C2=CE=E78=CA=B106=B7=D6, Eliot Horowitz <= el...@10gen.com> wrote: > >> >> >> Are you sure the mongos can talk to those machines? > >> >> >> Can you try connecting via the shell from the machine running mo= ngos? > > >> >> >> On Thu, Apr 26, 2012 at 7:26 AM, =B3=AC =CD=F5 wrote: > >> >> >> > i use replicaSet+mongos+configSvr. with option --keyFile; (ev= ery > >> >> >> > server use the same keyfile) > > >> >> >> > it looks ok when i enter replica set or mongo server. see belo= w.... > > >> >> >> > mongos output:************************************ > >> >> >> >> use admin > >> >> >> > switched to db admin > >> >> >> >> db.auth('sa','sa'); > >> >> >> > 1 > >> >> >> > mongos> use admin > > >> >> >> > replicaset outout:************************************** > >> >> >> >> use admin > >> >> >> > switched to db admin > >> >> >> >> db.auth('sa','sa'); > >> >> >> > 1 > >> >> >> > SECONDARY> > >> >> >> > **************************************************************= ************* **** > >> >> >> > MY PROBLEM:::: > >> >> >> > when i enter mongos and do addshard it tell me,so ho= w can i > >> >> >> > solve the problem. or it is a bug? : > >> >> >> > --------------------------------------------------------------= ------------- ----------------------------------------------------- > >> >> >> > Array > >> >> >> > ( > >> >> >> > [ok] =3D> 0 > >> >> >> > [errmsg] =3D> couldn't connect to new shard mongos connecti= onpool: > >> >> >> > connect failed > >> >> >> > set477985/58.215.164.196:16858,58.215.164.113:32948,58.215.176= .110:18244 : > >> >> >> > connect failed to set > >> >> >> > set477985/58.215.164.196:16858,58.215.164.113:32948,58.215.176= .110:18244 > >> >> >> > ) > >> >> >> > --------------------------------------------------------------= ------------- ------------------------------------------------------- > > >> >> >> > thank you~ > > >> >> >> > -- > >> >> >> > You received this message because you are subscribed to the Go= ogle Groups "mongodb-user" group. > >> >> >> > To post to this group, send email to mongodb-user@googlegroups= .com. > >> >> >> > To unsubscribe from this group, send email to mongodb-user+uns= ubscribe@googlegroups.com. > >> >> >> > For more options, visit this group athttp://groups.google.com/= group/mongodb-user?hl=3Den. > > >> >> > -- > >> >> > You received this message because you are subscribed to the Googl= e Groups "mongodb-user" group. > >> >> > To post to this group, send email to mongodb-u...@googlegroups.co= m. > >> >> > To unsubscribe from this group, send email to mongodb-user+unsubs= cribe@googlegroups.com. > >> >> > For more options, visit this group athttp://groups.google.com/gro= up/mongodb-user?hl=3Den. > > >> > -- > >> > You received this message because you are subscribed to the Google G= roups "mongodb-user" group. > >> > To post to this group, send email to mongodb-user@googlegroups.com. > >> > To unsubscribe from this group, send email to mongodb-user+unsubscri= be@googlegroups.com. > >> > For more options, visit this group athttp://groups.google.com/group/= mongodb-user?hl=3Den. > > > -- > > You received this message because you are subscribed to the Google Grou= ps "mongodb-user" group. > > To post to this group, send email to mongodb-user@googlegroups.com. > > To unsubscribe from this group, send email to mongodb-user+unsubscribe@= googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/mon=