error: cannot log in to admin database: auth fails
Bug #1178328 reported by
Sidnei da Silva
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Expired
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
Bootstrap environment
Run juju status
-> Returns immediately
Change admin-secret
Run juju status
-> Nothing for ~1min and then: error: cannot log in to admin database: auth fails
Running with -v, there's exactly 60s of retries with:
2013/05/09 16:22:16 INFO state: opening state; mongo addresses: ["10.55.
2013/05/09 16:22:16 INFO state: connection established
To post a comment you must log in.
See bug #1178312 for my comment about a general "fails slowly/waits forever" on things that won't actually work.
Did juju status at least report a failure after 1 minute, or is it just that you interrupted it?
Part of the issue is that the code is written to expect the service to take a while to start up, so it retries continually. But certainly it should detect a difference between:
1) Could not login because there isn't a remote service (try again later)
and
2) Could not login because the credentials are incorrect (immediately fatal because we don't expect them to work if we retry)