Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 https://juju.ubuntu.com/docs/howto-node.html but when I attempt to change the repository that the node-app charm points at using this command,

juju set mark-app app_branch=https://github.com/markwithers/juju-test

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 https://github.com/charms/node-app 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

1 Answer 1

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

 
discard

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.