[SERVER-3875] Mongostats not working with Authentication enabled Created: 15/Sep/11 Updated: 11/Jul/16 Resolved: 23/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.0.0 |
| Fix Version/s: | 2.0.1, 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dave Jones | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 2 |
| Labels: | rn | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 10.04 on Amazon EC2 |
||
| Issue Links: |
|
||||||||||||
| Operating System: | Linux | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
I upgraded an existing server to the 2.0 code. When authentication is enabled, I am unable to run mongostat. I get "error: " even when using a correct username/password for an admin account. That is, I can login to admin db with the mongo cli with a given set of credentials but can not run mongostat with the same credentials. If I turn off authentication, I'm able to run mongostat. |
| Comments |
| Comment by auto [ 17/Apr/12 ] |
|
Author: {u'login': u'monkey101', u'name': u'Daniel Pasette', u'email': u'dan@10gen.com'}Message: |
| Comment by auto [ 25/Dec/11 ] |
|
Author: {u'login': u'monkey101', u'name': u'Daniel Pasette', u'email': u'dan@10gen.com'}Message: |
| Comment by auto [ 09/Oct/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: backport of |
| Comment by Linux Administrators Trust HRS [ 06/Oct/11 ] |
|
I have the same problem also with mongotop in my replica set (includes 3 members on 3 hosts, primary/secondary/arbiter). mongotop -v --host 10.94.x.x:27017 -u muser -p mpassword error: { assertion: "unauthorized db:admin lock type:-1 client:10.94.x.x", assertionCode: 10057, errmsg: "db assertion failure", ok: 0.0 }Here is the output from the logfile: Thu Oct 6 09:52:53 [initandlisten] connection accepted from 10.94.x.x:49223 #64 Another question - when will the next release (2.0.1) that solves this bug be available? |
| Comment by auto [ 23/Sep/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot', u'email': u'eliot@10gen.com'}Message: Merge pull request #88 from guanqun/FIX- add auth() call to mongostat |
| Comment by auto [ 23/Sep/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot', u'email': u'eliot@10gen.com'}Message: Merge pull request #88 from guanqun/FIX- add auth() call to mongostat |
| Comment by Guanqun Lu [ 17/Sep/11 ] |
|
Hi Jason, I looked at this issue, and it seems to be a simple fix, the mongostat needs to add a 'auth' call so that it can work with authentication. the patch is here: the pull request is here: Could you help to verify that this patch solves your problem or not? (At least it works well locally with my fix. Thanks! |
| Comment by Jason McCay [ 15/Sep/11 ] |
|
I can confirm that we are seeing the same issue. |