[SERVER-13649] Unable to generate mongostats Created: 17/Apr/14  Updated: 10/Dec/14  Resolved: 01/May/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.4.6
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: naresh b Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: commands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Participants:

 Description   

Assertion: 13111:field not found, expected type 2
0xde6c61 0xda597b 0xda5ebc 0x6d7336 0x6ddac6 0x6d1256 0xe2f629 0x2ad63904373d 0x2ad63a2654bd
mongostat(_ZN5mongo15printStackTraceERSo+0x21) [0xde6c61]
mongostat(_ZN5mongo11msgassertedEiPKc+0x9b) [0xda597b]
mongostat [0xda5ebc]
mongostat(_ZNK5mongo11BSONElement6StringEv+0x1c6) [0x6d7336]
mongostat(_ZN5mongo4Stat12serverThreadEN5boost10shared_ptrINS0_11ServerStateEEEi+0x5f6) [0x6ddac6]
mongostat(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvNS_10shared_ptrIN5mongo4Stat11ServerStateEEEiENS2_5list2INS2_5valueIS8_EENSC_IiEEEEEEE3runEv+0x46) [0x6d1256]
mongostat [0xe2f629]
/lib64/libpthread.so.0 [0x2ad63904373d]
/lib64/libc.so.6(clone+0x6d) [0x2ad63a2654bd]



 Comments   
Comment by naresh b [ 01/May/14 ]

HI,
I understand there is no workaround for the current version 2.4.6, hence planning for an upgrade to Version 2.6.
This is can closed for now.

Comment by Thomas Rueckstiess [ 01/May/14 ]

Hi Naresh,

We haven't heard back from you so I'll go ahead and resolve the issue now. If you'd like to follow up, feel free to re-open the ticket and provide the additional information Ramón requested.

Kind Regards,
Thomas

Comment by Ramon Fernandez Marina [ 21/Apr/14 ]

Naresh,

in 2.4.6 there's unfortunately no workaround for this scenario – you'll need "clusterAdmin" privileges, which might be more privileges than what you're willing to give to this application account. Version 2.6 does have a finer control over privileges.

That being said, I can't reproduce the stack trace; what I get is:

connected to: 127.0.0.1
error:

{ ok: 0.0, errmsg: "unauthorized" }

If you send us more information on how you're running mongostat we can try to fix it and provide a friendlier error message.

Comment by naresh b [ 21/Apr/14 ]

Yes, it works with dba account. Probably looks like a privilege issue. This is an application account and we cannot afford to grant admin privilege on this account. Please advice if there is any work around for this..?

Comment by Eliot Horowitz (Inactive) [ 19/Apr/14 ]

It could be a privilege issue.
Does mongostat work if you login with your dba account?

Comment by naresh b [ 18/Apr/14 ]

Can this be a privilege issue..? The user is currently granted with "readAnyDatabase" role. This is an application user account and we DBA's do not want to grant any admin role to this account. Please suggest if there is any workaround for this.

Generated at Thu Feb 08 03:32:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.