Skip to content

Instantly share code, notes, and snippets.

Created May 28, 2015 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/508af728f342ecc7da56 to your computer and use it in GitHub Desktop.
Save anonymous/508af728f342ecc7da56 to your computer and use it in GitHub Desktop.
Working through genghisapp/juju/vagrant workflow
Following instructions here, in Ubuntu 14.04 in a vagrant box:
https://jujucharms.com/docs/devel/howto-vagrant-workflow
Produces:
sudo /vagrant/charms/trusty/genghisapp/hooks/install
+ apt-get install -y ruby1.9.3 rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ruby
E: Package 'rubygems' has no installation candidate
Resolved with:
http://stackoverflow.com/questions/23985887/install-error-rubygems-has-no-installation-candidate
sudo apt-get install rubygems-integration
attempted to remove-service, didn't die due to issue with stop script (trying to stop genghisapp which was never installed, seen via juju status), juju resolved genghisapp/0 (unit) a few times, resolved
Now again hook failed, install:
had to remove both 'alternatives' lines from install hook, proceeding...
issues with 'make' not existing, attached to lxc's and checked for make, only installed on the first one. don't understand this process yet so just destroying the other lxc's and attempting to redeploy... killing lxc outside of juju means juju doesnt understand agent down state, so this is not the best way to do things ;) replying genghisapp as an alias
duh - added apt-get install build-essential to install hook
start hook runs config-get port, juju-0.7 is not installed on the lxc so this command fails
unit-genghis2-0: 2015-05-28 10:04:41 INFO config-changed ++ config-get port
unit-genghis2-0: 2015-05-28 10:04:41 INFO config-changed + PORT=
...
unit-genghis2-0: 2015-05-28 10:04:41 INFO config-changed [2015-05-28 10:04:41 +0000] missing argument: -p, run -h for options
unit-genghis2-0: 2015-05-28 10:04:41 INFO config-changed + open-port
unit-genghis2-0: 2015-05-28 10:04:41 INFO config-changed error: no port specified
@andrewdmcleod
Copy link

Still working through..

trying to add juju-0.7 to install hook so that config-get will actually run to see what happens, if this doesnt work i'll just set the port to the default

it didnt work, setting to 5678 (should have set it to 80)

@andrewdmcleod
Copy link

juju remove-machine to clean up excess containers...

added route through to containers

browsed to genghisapp. not sure why the port didnt default to 80 as it says in the tutorial, that is, config-get complains of a missing juju agent, will look into this later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment