[SERVER-13997] Mongo shell authorization error at start-up Created: 20/May/14  Updated: 10/Dec/14  Resolved: 20/May/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.6.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: A Mare Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-13588 Shell prints startup warning when aut... Closed
Operating System: ALL
Steps To Reproduce:

Nothing special, just connect to an existing MongoDB instance which runs version 3 of the authorization schema.

Participants:

 Description   

I'm using a local, single-process installation (i.e. without sharding or replication). After running the authorization schema upgrade, the former regular users became dbOwner on their databases. But if I try to connect to the MongoDB instance with such a user, I get

MongoDB shell version: 2.6.1
connecting to: xyz
Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }

The database process log reads:

2014-05-17T19:11:03.724+0300 [conn3] Auth schema upgrade copying version 3 users from admin.system.new_users to admin.system.users
2014-05-17T19:11:03.725+0300 [conn3] command admin.$cmd command: authSchemaUpgrade { authSchemaUpgrade: 1.0 } keyUpdates:0 numYields:0 locks(mi
cros) R:49 r:83 reslen:44 188ms
2014-05-17T19:49:10.067+0300 [conn4]  authenticate db: xyz { authenticate: 1, nonce: "xxx", user: "xyz", key: "xxx" }
2014-05-17T19:49:10.069+0300 [conn4] Unauthorized not authorized on admin to execute command { getLog: "startupWarnings" }
2014-05-17T19:49:10.070+0300 [conn4] Unauthorized not authorized on admin to execute command { replSetGetStatus: 1.0, forShell: 1.0 }



 Comments   
Comment by Spencer Brody (Inactive) [ 20/May/14 ]

That message is a cosmetic problem: SERVER-13588. Will be fixed in the upcoming 2.6.2 release, however it should not negatively impact the usability of the shell in any way.

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