Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Poor choice of port 8001 in Ubuntu Server 14.04 LTS (Trusty Tahr) Cloud VM images conflicts #470
Comments
|
@philpraxis thanks for your bug report. We'll investigate what options are open to us. Just out of interest which framework were you using at the time of this issue? Some more analysis for interested parties: I believe it's the juju-gui that is listening on 8001. Vagrant is forwarding host:8001 -> vm:8001 for the gui that's causing this problem. Maybe this is something we could fix in the vagrant box? |
philpraxis
commented
Aug 5, 2014
|
A. Usage @mattyw I'm using Django, it starts its web server at 8000 and then correct practice is keeping incrementing for each new app. But this is a commonly used port by services you'll typically find associated with the kind of virtualized, cloud and devops environment (such as Juju plays in): B. Vagrant box file Yes, I think you can change this within the box file. No need to change the default in upstream (juju). |
castrojo
commented
Aug 6, 2014
|
Going to ask Ben to have a look. Shouldn't we be putting things like the GUI in a container and mapped out instead of hulk smashing inside the box? |
|
@castrojo Thanks, this might end up tying in with the "deploy gui as default" discussion happening on the mailing list |
chuckbutler
commented
Aug 6, 2014
|
@castrojo The purpose behind smashing the GUI on the VM instead of a LXC container was to provide the GUI out of the box, vs if you deploy it into a container, the user will be required to use sshuttle just to get to the gui. I'm going to kick around some ideas relating to iptables rule sets to do mappings to the containers, and follow up on the list with this idea. @philpraxis Thank you for identifying this as an issue. |
|
@chuckbutler Why not just have the GUI map to another port? Maybe something we can expose in the the Vagrantfile as an override? |
philpraxis
commented
Aug 6, 2014
|
@chuckbutler You're welcome. I think the entire point of this whole dynamic (what to call it? DevOps? Containerization? Atomic-based operations?) is to have sensible defaults in ops, just like Rails was quite a blast for its pioneer usage of "sensible defaults" in dev. |
chuckbutler
commented
Aug 8, 2014
|
Abel Deuring is actually working on this at present, and has some notes regarding the issues he's running into. I'll defer unto that list pending a proposed solution and update accordingly. |
|
I'm unable to recreate this using the latest Vagrant and Trusty cloud image. @philpraxis, can you confirm that this is still an issue for you? |
|
We have not heard back for almost a year. If the issues persists, please file a bug in https://bugs.launchpad.net/juju-core/ |
philpraxis commentedAug 5, 2014
Using port 8001/tcp for Juju server in Ubuntu Server 14.04 LTS (Trusty Tahr) Cloud VM images is a poor choice.
It conflicts with many of the frameworks for webapp development and therefore make it fail when doing Vagrant setup of such cloud images.
In: https://cloud-images.ubuntu.com/vagrant/trusty/
This creates problem such as:
https://stackoverflow.com/questions/10953070/how-to-debug-vagrant-cannot-forward-the-specified-ports-on-this-vm-message/25142933#25142933
And the result is not seamless (and first impression is that something called Juju which is default in new Ubuntu is causing problems, not what you want.)
Defaulting to a less frequently used application port (better, ask Service Name and Port Number Registry at https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=128 if you can).
Thank you,
Best regards,
Philippe.