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 am trying to run the Charm tutorial from the juju documentation by creating a new charm from a local repository. I started by installing the charms from bzr to my local ubuntu 12.04 desktop running in a virtual machine. The new file structure is the following:

ubuntu@ubuntu-VirtualBox:~$ find charms/precise/drupal/

When I install the mysql charm, which was downloaded from the remote charm repository, it works fine. However when I run the following command to deploy the new charm it fails with the following error message:

ubuntu@ubuntu-VirtualBox:~$ juju deploy --repository=charms local:precise/drupal
2012-05-09 10:01:05,671 INFO Searching for charm local:precise/drupal in local charm repository: /home/ubuntu/charms
2012-05-09 10:01:05,845 WARNING Charm '.mrconfig' has an error: CharmError() Error processing '/home/ubuntu/charms/precise/.mrconfig': unable to process /home/ubuntu/charms/precise/.mrconfig into a charm
Charm 'local:precise/drupal' not found in repository /home/ubuntu/charms
2012-05-09 10:01:06,217 ERROR Charm 'local:precise/drupal' not found in repository /home/ubuntu/charms

Is there some file missing in the drupal charm directory that juju needs to make the charm valid?

Also, I get the file processing error for the .mrconfig file also when deploying the mysql charm so is there something I need to change there perhaps?

share|improve this question

ubuntu@ubuntu-VirtualBox:~$ juju deploy --repository=charms local:precise/drupal

This appears to be the problem, you don't need to specify precise in the local: bit, try

juju deploy --repository=charms local:drupal

On Juju 2.0 and up, you can just specify a path to the charm directory. For example:

juju deploy ~/charms/drupal --series trusty

Local charms may not have a specific declared series (charms fetched from the store always have an implied series).

This page in the documentation has more references on how to deploy from a local repository:

share|improve this answer
Thanks Jorge, that indeed was the problem – Matt McClean May 16 '12 at 12:20

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.