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

Everytime i type juju bootstrap .Error no default environment found keeps showing up. I was trying to configure maas.

This is my environments.yaml

juju: environments
type: maas
maas-server: 'http://{my ip address}:80/MAAS'
maas-oauth: 'c2cg7hTpzFuRmJjrBC:YH2ZEXVRKL46ttaDmq:beKeBjhYgWyxKk2gqqwaCx97xnmp4LJu'
admin-secret: 'nothing'
default-series: 'precise'
share|improve this question

Even with only one environment specified in environments.yaml, you still need to specify a default environment for juju to use.

You have 2 options to specify a default environment:

  1. Using default: <name>, usually at the top of environments.yaml, without indentation (in your case, you'll need default: maas).
  2. Using juju switch <name> on the command line (e.g. juju switch maas).

I hope this helps.

share|improve this answer

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.