Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Replica set with authentication
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JimJ  
View profile  
 More options Aug 1 2012, 1:15 am
From: JimJ <jimj...@gmail.com>
Date: Tue, 31 Jul 2012 22:15:35 -0700 (PDT)
Local: Wed, Aug 1 2012 1:15 am
Subject: Re: Replica set with authentication

Ivan,

I too ran into this issue.  To solve this my connect string looks like:

mongodb://username:password@localhost:3000/dbname,mongodb://username:passwo rd@localhost:3001/dbname,mongodb://username:password@localhost:3002/dbname

Clunky IMHO, but works.

Jim

On Friday, June 15, 2012 6:09:15 PM UTC-4, Ivan wrote:

> I'm on MongoDB 2.0.0 and node-mongodb-native 1.0.2. I have a replica set
> with authentication. It works fine, then I kill the primary and on
> subsequent calls I get "Error: unauthorized db:xxx lock type:-1
> client:127.0.0.1". It seems like the connection to the new primary is not
> authenticated.

> The connect string is of the form
> "mongodb://username:password@localhost:30000,localhost:30001,localhost:3000 2/admin?replicaSet=myset&autoReconnect=true"

> I tried the exact same setup with pymongo and there are no problems. I
> will continue debugging, but I wanted to see if other people have seen this
> issue and have RS+auth setups.

> Is the authentication supposed to happen at the initial connect or when
> the new primary is discovered?

> Thanks,
> Ivan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.