[SERVER-7539] singleShard error in addUser Created: 02/Nov/12 Updated: 08/Mar/13 Resolved: 06/Jan/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security, Sharding |
| Affects Version/s: | 2.0.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Anton V. Volokhov | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Hi there! |
| Comments |
| Comment by Spencer Brody (Inactive) [ 06/Jan/13 ] |
|
Great, glad to hear you were able to get everything working. |
| Comment by Anton V. Volokhov [ 06/Jan/13 ] |
|
No, fixed with recreating the user. Possibly, the problem was with the second shard, which was terribly lagging. |
| Comment by Spencer Brody (Inactive) [ 04/Jan/13 ] |
|
Hi Anton, |
| Comment by Anton V. Volokhov [ 02/Nov/12 ] |
|
I'm using mongodb 2.0.7 without strange { "singleShard" : "mongodb-sh2/mongodb02d.load.net:27017,mongodb02f.load.net:27017,mongodb02g.load.net:27017", "n" : 0, "lastOp" : NumberLong("5806174783460605953"), "connectionId" : 98514, "err" : null, "ok" : 1 } |
| Comment by Spencer Brody (Inactive) [ 02/Nov/12 ] |
|
Hi Anton, Are you also having problems authenticating? You will need to run db.auth(<username>, <password>) on any new connection you make to a mongos running with security enabled. Did you get an error running db.auth? What version of mongodb are you using? If you haven't already, I recommend reading through our documentation on our authentication system here and here. |
| Comment by Anton V. Volokhov [ 02/Nov/12 ] |
|
a bit of logs from mongos Fri Nov 2 15:23:38 [conn973] Request::process ns: rating.$cmd msg id:4664 attempt: 0 ntoreturn: -1 options : 4 ntoreturn: -1 options : 4 Fri Nov 2 15:23:38 [conn973] auth: couldn't find user app, rating.system.users }, $readPreference: { mode: "secondaryPreferred" } } ntoreturn: -1 options : 4 |