[17:11] <mbruzek> rick_h_: thanks for adding us to the analytics
[17:18] <rick_h_> mbruzek: np
[20:58] <Spizmar_> Hi, hatch directed me here with a problem.
[20:59] <rick_h_> Spizmar_: drop it on us
[20:59] <hatch> hey Spizmar_ 
[21:00] <Spizmar_> I delete my environment and boot strap it, and deploy juju-gui, and some other charms, relations and expose them
[21:01] <Spizmar_> When I point to the juju-gui server (which is the bootstrap machine), the browser just spins,
[21:01] <hatch> http://askubuntu.com/questions/600872/juju-gui-web-server-hangs-what-server-does-it-use
[21:02] <hatch> Spizmar_: the images you're using for your environment - do they have python installed?
[21:02] <Spizmar_> This would not normally shosk me, as I am new to this and have broken about everything i've touched, but I do this all through a script, which I can upload, and the scriupt has worked fine, previiously.
[21:03] <Spizmar_> If they need it, they had it three days ago, as I am doing everything locally, and have not refreshed any images for weeks.
[21:04] <hatch> ok so you have the gui deployed now and are you getting the python.h error again?
[21:05] <rick_h_> Spizmar_: what version of juju and juju-gui are you using?
[21:05] <rick_h_> hatch: Spizmar_ don't worry about the python.h error. It's just a performance speed up that it can use if it's available, but not required
[21:06] <hatch> rick_h_: ohh ok - I thought gui wasn't building
[21:06] <rick_h_> hatch: Spizmar_ focus on why the gui can't talk to the server. I'm guessing there's a network issue or something there
[21:06] <Spizmar_> Thank you.  Let me check.  I was just assosiating that with the octave-controller problem
[21:06] <rick_h_> hatch: you can find out for sure if it's running by running 'ps aux' on the box and looking for the guiserver. And checking the /var/log/upstart/guiserver.log
[21:06] <rick_h_> Spizmar_: it could be, I'm not sure what octave is
[21:06] <rick_h_> Spizmar_: if you deploy multiple services onto the same machine you have to watch out for what ports they use
[21:07] <hatch> ahh octave is being d eployed to the same machine...
[21:07] <rick_h_> hatch: right, all that is getting sent to machine 0
[21:07] <rick_h_> hatch: so I'd walk with Spizmar_ through looking at the browser console for connection issues, (network tab/etc) 
[21:08] <hatch> yeah sounds good
[21:08] <rick_h_> hatch: and then going through the guiserver.log to see if it can't start/run due to ports being conflicting or the like
[21:08] <rick_h_> hatch: in which case, set the gui to run on a different port (8080 or the like) and see if that helps at all
[21:09]  * rick_h_ runs away now for a while and leaves it in hatch's capable hands
[21:09] <rick_h_> hatch: Spizmar_ and if you figure it out make sure to update the AU question please
[21:09] <Spizmar_> Octave-controller is being deployed on a different machine, octave, which doesn't use python, is being deployed on the bootstrap machine, but it was when it worked.  I was modifying the octave-controller install script when this happened, which is deployed on a different machine.
[21:10] <hatch> Spizmar_: ok so lets start from the beginning
[21:10] <hatch> ps -aux | grep guiserver
[21:11]  * hatch spins up local env to work along side
[21:11] <Spizmar_> juju-gui is running, because I just got a warning that this is not a trusted machine, which is expected behavior.
[21:11] <hatch> oh ok so when you say you get the spinner you actually get the GUI spinner?
[21:11] <hatch> grey background and the like?
[21:12] <hatch> Does it say "Loading the GUI" or "Connecting to Environment" ?
[21:12] <Spizmar_> Nope.  I was too hopefull.  guiserver is not running.
[21:12] <hatch> oh ok then
[21:13] <hatch> :) 
[21:13] <hatch> ok ssh into the machine and open up /var/log/upstart/guiserver.log
[21:13] <Spizmar_> let me strip my script down to just destroying my env, bootstrapping and deploying juju-gui.
[21:13] <hatch> sure
[21:13] <Spizmar_> Wait one
[21:13] <hatch> np
[21:14] <Spizmar_> What do you want me to look for
[21:14] <hatch> something which indicates why it's not running :)
[21:15] <Spizmar_> Because that is a lot faster than a boot strap
[21:15] <hatch> is this a MAAS environment?
[21:18] <Spizmar_> yes.
[21:20] <Spizmar_> I just tried to login from the maas server machine so I could copy and paste, and it looks like I'm here, but there is no one elase here.
[21:21] <hatch> you ran 'juju ssh juju-gui/0' ?
[21:21] <Spizmar_> iostream:409 error on read while listening on port 443, if that helps. (/var/log/upstart/guiserver.log)
[21:22] <Spizmar_> No, I tried to get into #juju-gui on freenode from my maas server.
[21:23] <hatch> ahh ok so something else is using 443
[21:24] <hatch> netstat -tulpn | grep :443
[21:24] <hatch> or you can change the port for the GUI if you need to as well
[21:25] <Spizmar_> LOL  Let me try that.  I have expertise to do that at hand, and the guy who wrote the octave stuff hasn't returned any emails :)
[21:26] <hatch> you'll need to run that netstat on the machine you have the gui deployed to
[21:29] <Spizmar_> It was not that.  No processes came up using that search.  And it is in the tornado libraries, which is where the compiler presented the error.
[21:30] <hatch> yeah for some reason it is not able to bind to that port
[21:31] <hatch> you could try setting it to another port and then tail the log
[21:31] <hatch> juju set juju-gui port=8888
[21:31] <hatch> from the 'client' machine
[21:32] <Spizmar_> My mistake, there is something listening there.  I had exited and was running the netstat on my maas server.
[21:35] <Spizmar_> On the client machine, it does not know about the "juju" command.
[21:35] <hatch> the machine which you typed 'juju deploy' on is the client machine, sorry :)
[21:37] <Spizmar_> OK, did that, now I get an immediate failure to connect, and 10:0:1:21:8888spins
[21:38] <hatch> https://10.0.1.21:8888
[21:38] <Spizmar_> Yes
[21:39] <hatch> ok and does the guiserver.log have anything in it? Or is it running now
[21:39] <hatch> you should get an ssl error because of the self signed cert in the browser
[21:40] <hatch> I'm assuming of course that your machine allows connections to 8888 :)
[21:41] <hatch> you may want to find out what else is listening on 443 and kill it if it's not supposed to be there
[21:42] <Spizmar_> It says start juju gui ver, ets, and listening on port 8888
[21:43] <hatch> ok and if you run netstat on that machine it shows that it's listening on 8888?
[21:48] <Spizmar_> Yes, on IP4 & ip6.  I did sudo ufw disable, and retried the connection from the maas server and it still spins.  I'm going to find a different unused port, try it from the maas server to see how fast ibefore it complains, then change the juju-gui port, and try it again, and see how long that takes.
[21:49] <Spizmar_> After that, I'm going to run the script with the other charms removed and see how it works.
[21:50] <hatch> yeah you should start with a fresh image because it seems like something is preventing the server from talking out
[21:50] <Spizmar_> The thing that was on port 443 is gone.   I think juju-gui was the thing holding the port.
[21:53] <hatch> Spizmar_: ok so if 443 is open again lets change the gui back to 443, tailing the logs, see if it boots up properly
[21:55] <hatch> I just tested a local env and aws env and the latest gui deployed properly so I know that it's working as far as LXC and AWS are concerned :)
[21:55] <Spizmar_> btw, I tried port 222, firefox immediately recognized there wasn't anything there, then I changed the juju-gui port, and it is spinning away.
[21:58] <hatch> so the guiserver log isn't showing anything when you try and access that port?
[22:00] <hatch> it's really hard to debug this over irc haha - I'd probably install lynx on the same machine the guiserver is on and see if it can access it
[22:06] <Spizmar_> Sorry about that, my connection froze.  What was the last thing you saw from me, hatch?
[22:06] <hatch> that you tried 222
[22:06] <hatch> I was saying I would install lynx to the GUi machine to see if I could access it locally - rule out any firewall business
[22:09] <Spizmar_> I can tell you that my corporate firewall will rule that out.  Between the two machines is a blank managed switch.  The two machines have both had ufw disabled.
[22:10] <Spizmar_> I tried 222, and firefox immediately detected that there was nothing there, I switched juju-gui's port to 222, and firefox started spinning.
[22:10] <hatch> but nothing showed up in the guiserver logs?
[22:11] <Spizmar_> I changed it back to 443 and rebooted it, and it came up fine, in the sense that there were no additional errors in the log, but it displays the same symptoms.
[22:11] <hatch> what if you try chrome/ium?
[22:12] <Spizmar_> The log showed the change in the ports, though.
[22:13] <hatch> to rule out the browser we could also try this
[22:14] <hatch> wget https://10.0.1.21/juju-ui/version.js
[22:14] <hatch> wget --no-check-certificate https://10.0.1.21/juju-ui/version.js
[22:14] <hatch> sorry
[22:17] <hatch> wget --no-check-certificate https://10.0.1.21/juju-ui/version.js
[22:17] <hatch> Spizmar_: did you get that ^
[22:18] <Spizmar_> And again.  Corporate has the IRC port blocked so I can't use a client and this webchat thing is not looking too stable.
[22:19] <hatch> might be time to set up a proxy :)
[22:19] <Spizmar_> Well, juju gui server version is 0.4.2
[22:19] <hatch> I was trying to see if the guiserver is working - if it is it will return the that file
[22:20] <hatch> 0.4.2?
[22:21] <Spizmar_> 0,4,2 is from the log file, it did return the file.  Not sure what to do with it.
[22:22] <hatch> cat version.js
[22:22] <hatch> ok it returned the file! 
[22:22] <hatch> that means the server is running and that you can access it
[22:22] <hatch> and that something firefoxy is causing the issue
[22:23] <hatch> are there any errors in the browser console?
[22:23] <hatch> I'd be very interested to know if you can access it using chrome/chromium
[22:25] <Spizmar_> I'm already pushing real hard on ITs envelope by having the maas server connected, and bringing up an HPC cluster they don't own
[22:25] <hatch> :) keep pushing!
[22:25] <Spizmar_> Firefox debugger says "this page has no souce"
[22:26] <Spizmar_> I do :)  I just make sure the fights have a good purpose
[22:26] <hatch> ok this is very odd - because clearly the guiserver is working if you got the version.js file downloaded
[22:26] <hatch> but firefox will not open the page
[22:27] <Spizmar_> So what file should it be down loading, or what should be constructing the text, that it isn't getting?
[22:27] <hatch> well did that wget download the file?
[22:27] <hatch> you should have seen some sort of progress bar
[22:28] <hatch> sorry I've just been assuming you're on Ubuntu....
[22:28] <hatch> what machine are you working from :)
[22:29] <hatch> Spizmar_: I think that I might know what the issue is - can you follow this https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings
[22:29] <Spizmar_> Yes, the system I'm doing this work on is ubuntu.  The system I'm on right now is win7.  My chairs runners are getting a workout.
[22:29] <Spizmar_> The version was 1.3.3, BTW
[22:29] <hatch> haha
[22:29] <hatch> ok new enough :)
[22:30] <Spizmar_> And in the middle, I am grazing on my lunch
[22:30] <hatch> lunch, must be west coast?
[22:30] <Spizmar_> Do you want me top  go ahead and do the rebuild?
[22:31] <Spizmar_> LA, but it's 1530 here
[22:31] <Spizmar_> "Running late and keeping you up to date"
[22:31] <hatch> well I want to get a fresh profile - see this issue https://bugs.launchpad.net/juju-gui/+bug/1397296
[22:31] <mup> Bug #1397296: GUI inaccessible in Firefox 33.0 <hs-arm64> <landscape> <juju-gui:Confirmed for hatch> <https://launchpad.net/bugs/1397296>
[22:35] <Spizmar_> I can see the +bug, the second says I don't need to know.  I'm reading.
[22:38] <Spizmar_> I had to do a reboot of the maas server yesterday, and I don't remember what the updates were, if firefox had an update.
[22:40] <hatch> yeah I'd be interested to know if you try a new profile as noted in that bug if you can access it
[22:43] <Spizmar_> trying to bring it up on my maas server
[22:51] <Spizmar_> Did the refresh, It has no effect on the symptoms.  I'm going to do the rebuild.
[22:51] <hatch> *hmph* I'm running out of ideas 
[22:52] <hatch> :)
[22:52] <Spizmar_> Unless you want any of the logs or the bootstrap debug output?
[22:53] <hatch> nah - see the server is working because you were able to download that js file
[22:53] <Spizmar_> Hey, I ran out ideas yesterday :)
[22:53] <hatch> and your network is allowing the connection (because you were able to download the file)
[22:53] <hatch> so that leaves us at the browser?!?
[22:54] <Spizmar_> OK, I will download chrome.
[22:54] <hatch> shhh don't tell IT
[22:55] <Spizmar_> I'm not even sure they've heard Microsoft has killed IR
[22:55] <Spizmar_> IE
[22:55] <hatch> haha 
[22:56] <hatch> that will be awesome when IE goes evergreen
[22:56] <Spizmar_> It is all they support, with a list of our own sites you have to use other browsers to use.
[23:01] <Spizmar_> went right to it.  Expect a wave of these, as the new update of whatever was updated trickles down to peoples juju-gui machines.
[23:01] <hatch> so you did a fresh firefox install?
[23:01] <Spizmar_> Do you know how I can list what was updated yesterday, so we can weed through them to find out which one it was, if you want?
[23:01] <hatch> sorry I have no idea...
[23:02] <hatch> or you tried with chrome you mean
[23:02] <Spizmar_> I didn't update firefox.
[23:02] <Spizmar_> I tried with chrome and it works great.
[23:03] <Spizmar_> That means something in yesterdays install broke something.
[23:03] <hatch> damn...
[23:04] <Spizmar_> I don't know if it directly broke firefox, or if it broke something one that is used by juju-gui, and that breaks fire fox.
[23:04] <hatch> Would you be able to comment on that launchpad bug saying that you are having the same issue and the reset settings fix did not work
[23:04] <Spizmar_> Sure will.
[23:05] <hatch> thanks! 
[23:05] <hatch> of course this doesn't fix your issue - but at least if you comment on the bug you'll be notified when we figure out what's going on...
[23:05] <Spizmar_> That you!  I get very bull dog when I'm tired, and I'm tired, and I'd never have thought of using a different browser.
[23:06] <hatch> the issue with this bug is that noone on the GUI team can reproduce it
[23:06] <hatch> but obviously it's an issue heh
[23:06] <Spizmar_> LOL! It fixes MY problem I could care less if it's firefox or chrome!
[23:07] <hatch> haha yay! Well now you can go update the AU question :)
[23:07] <Spizmar_> I think this update probably makes it a lot easier to reproduce.  I never had the problem before yesterday.
[23:08] <hatch> hmm nope, even after the update still works fine here...
[23:08] <hatch> *close* WFM! lol jk
[23:08] <Spizmar_> After a boostrap?
[23:09] <hatch> yep
[23:09] <Spizmar_> Well, it may not make it easier for you, but it may make it easier for us out her :)
[23:10] <hatch> well I'm glad I got you going again at least :)
[23:11] <Spizmar_> Me too.  Is there a channel for charms in general, or for apache, or a place to see what channels there are?
[23:12] <hatch> #juju and #juju-dev
[23:12] <hatch> #juju-dev is mostly for actual juju development
[23:12] <hatch> so you're probably looking for #juju
[23:12] <Spizmar_> Great, thanks!
[23:13] <hatch> there is also the juju mailing list - juju at lists dot ubuntu dot com
[23:13] <Spizmar_> I'm heading off to put the anser in the question have a good one!
[23:13] <hatch> you too, cya