Comment 4 for bug 1215948

Revision history for this message
Jacek Nykis (jacekn) wrote :

I just hit this bug myself. The error message is very misleading:

$ juju bootstrap
error: failed to list contents of container: juju-dist
caused by: Unauthorised URL http://xxxx:8080/v1/AUTH_0000/juju-dist?delimiter=&marker=&prefix=tools%2Fjuju-
caused by: request (http://xxxx:8080/v1/AUTH_0000/juju-dist?delimiter=&marker=&prefix=tools%2Fjuju-) returned unexpected status: 401; error info: 401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

I spent quite some time checking access details and testing while the solution was to run "juju bootstrap --upload-tools". If downloading data from amazon is permanent solution then this error message could be improved. Juju could also suggest way of fixing this problem.

Ideal solution would be for juju to realise it does not have access to amazon and try "juju bootstrap --upload-tools" to make this transparend to end user.