Red Hat Bugzilla – Bug 1007156
"Execute failed:unauthorized" shows when login rockmongo from browser
Last modified: 2015-05-14 19:28:24 EDT
Description of problem:
Given a normal app embedded with mongodb and rockmongo created(e.g.,myjbossas7), login rockmongo from browser, found 'Execute failed:unauthorized' shows in web page
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rhc app create myjbossas7 jbossas-7 mongodb-2.2 rockmongo-1.1
2. Access URL https://myjbossas7-chunchen.dev.rhcloud.com/rockmongo/ and input username, password, and dbname to login rockmongo
"Execute failed:unauthorized" shows in rockmongo web page
rockmongo should be accessed successfully.
Created attachment 796607 [details]
rockmongo can't be accessed
The "DB Name(s)" field in the Rockmongo login page is only for use when specifying a non-admin user. Using it with the admin user will produce the error you're seeing.
If you omit the "DB Name(s)" field (or create a non-admin user to specify), you'll be able to log in.
I don't think it's a very intuitive UI (the DB name field appears under a "Non-Admin users:" header with no explanation), but it's not a bug.