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

A little background. We are attempting to improve the deployment flow of our Node.js application, and decided to investigate Juju.

I am attempting to deploy a small practice express app (which does almost nothing) to a local Juju deployment using LXC.

I have worked my way through this but when I attempt to change the repository that the node-app charm points at using this command,

juju set mark-app app_branch=

the agent-state-info eventually changes to 'hook failed: "config-changed"'.

I've worked my way through several proposed soluition to this problem, some even from this site, but none appear to work in my case.

So, I then git cloned the node-app charm from here and placed it in ~/charms

I then edited the config.yaml in the charm to include the name of my github repository, and attempted to deploy from this local repository using the following command

juju deploy --repository=charms local:node-app

I get the following error message in my terminal

ERROR cannot get latest charm revision: charm not found in "/home/mark/charms": local:precise/node-app

Which doesn't make sense to me, as the repository is definitely in /home/mark/charms/node-app!

Please help!

share|improve this question
up vote 3 down vote accepted

This is a common mistake that I myself encountered when first starting out with juju.

You are missing the series identifier for the charm. Place the charm in $HOME/charms/precise/node-app

Deploy with

juju deploy --repository=$HOME/charms local:node-app and juju will deploy your charm from the local repository in $HOME as expected and stop fussing at you for not being able to find the charm.

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.