I have destroyed and rebuild my juju environment juju-gui the same way many times with the same script, and it has worked fine. The last two times, connecting to juju-gui server, firefox hangs spinning. It has not timed out after over 30 minutes. Apache does not get installed on the juju bootstrap/juju-gui system. A search of this site does not inform me what web server juju-gui uses, so I can delve into it deeper. I can do juju status, and it says juju-gui, and all my other charms, are happy.
In the juju-gui log it mentioned that during the compile of tornado speedups, it could not find Python.h, so it would be slow. I do not know if this happened in previous builds of the environment, as I did not keep their logs. The error says to add
sudo apt-get install build-essential python-dev
So I added into juju-gui's install script. Does anyone have any ideas on where to proceed with debugging? [edit] Adding the apt-get to the install script killed the install, as a result, I took it out. I do not recommend it.[/edit]
[Edited]Here is the script I use to rebuild my environment that has been working and then stopped.
#!/bin/bash
time juju destroy-environment -y -e maas --force
time juju bootstrap -e maas --upload-tools=true --metadata- source="~/.juju/sync-tools" --to jujuBS.local
time juju deploy --repository=".juju/charms" local:juju-gui --to 0
time juju expose juju-gui
time juju deploy --repository=".juju/charms" local:octave-controller
time juju deploy --repository=".juju/charms" local:octave --to 0
time juju add-unit -n 2 -e maas octave
time juju add-relation octave-controller octave
time juju expose octave-controller
time juju expose octave
exposethe service? – Brandon Clark Mar 24 '15 at 22:35