Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've managed to deploy juju-gui in my saucy server via maas+juju.

But no matter what I try I cannot log in.

I did:

juju set juju-gui password='qwerty'

and I even set the user. But I cannot access.

# juju show-log

Shows error on login.


How can I set the admin-secret is supposed to be used as password.


If I override the options with the commands above. Why can't I log in?

Thank you.

Note: This is what it says log:

jb4ja:2013-11-23 13:29:48 DEBUG juju.rpc.jsoncodec codec.go:107 <- {"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"qwerty"},"RequestId":1}
jb4ja:2013-11-23 13:29:48 DEBUG juju.rpc.jsoncodec codec.go:172 -> {"RequestId":1,"Error":"invalid entity name or password","ErrorCode":"unauthorized access","Response":{}}
jb4ja:2013-11-23 13:29:53 DEBUG juju.rpc.jsoncodec codec.go:107 <- {"Type":"Admin","Request":"Login","Params":{"AuthTag":"user-admin","Password":"qwerty"},"RequestId":2}
jb4ja:2013-11-23 13:29:53 DEBUG juju.rpc.jsoncodec codec.go:172 -> {"RequestId":2,"Error":"invalid entity name or password","ErrorCode":"unauthorized access","Response":{}}
share|improve this question

The admin-secret for the environment is in your ~/.juju/environments.yaml file. This is the password used for the Juju GUI

share|improve this answer
Yes! In the local section and in the maas section. admin-secret: 'qwerty' – Gonzalo Aguilar Delgado Nov 24 '13 at 10:59
And I entered into the configuration of pro of the system and I can see the password set (when I put it by hand with set, because it does not take my environments.yaml password). What's the way to set the hash in the environments.yaml? – Gonzalo Aguilar Delgado Nov 24 '13 at 11:23
But I forgot to say that's in another machine. So The machine that has the gui app, will not have anything in ~/.juju/environments.yaml Is that right? – Gonzalo Aguilar Delgado Nov 28 '13 at 19:05


juju api-info --password password

Or else:

grep admin-secret ~/.juju/environments/$(juju env).jenv
share|improve this answer
Welcome to AskUbuntu! Nice answer :D – cat Mar 22 at 13:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.