Vagrant VM is up, but there is no response on https://localhost:8443

Asked by A I

I have fired up vagrant vm's for other tools recently. So, I am familiar with the process.

For Graphite, I did 'Vagrant up' and the VM started in headless mode as expected. No response on https://localhost:8443 localhost:22003 and localhost:8125

I restarted the VM and logged in as user 'vagrant'. I installed gnome and tried to access localhost:8443 from firefox. No response.

Am I missing something?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Jason Dixon
Solved:
Last query:
Last reply:
Revision history for this message
Jason Dixon (jason-dixongroup) said :
#1

You're not really giving us much to go on. What does the Vagrantfile look like?

Revision history for this message
A I (aialerts) said :
#2

I am following instructions from - http://graphite.readthedocs.org/en/latest/install-synthesize.html

The Vagrant file is below. This is the default vagrant file that is checked in to the graphite-web git repository.

# -*- mode: ruby -*-
# vi: set ft=ruby :

$requirements = <<-eos
#! /bin/bash
sudo apt-get update
sudo apt-get install -y python-pip git-core build-essential python-dev libffi-dev libcairo2-dev libldap2-dev libsasl2-dev libxml2-dev pkg-config libpango1.0-dev librrd-dev
sudo pip install -r /vagrant/requirements.txt
sudo pip install Sphinx sphinx-rtd-theme django-tagging cairocffi pytz pyparsing python-ldap python-rrdtool
eos

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.network "forwarded_port", guest: 2003, host: 2003
  config.vm.network "forwarded_port", guest: 2004, host: 2004
  config.vm.network "forwarded_port", guest: 7002, host: 7002
  config.vm.network "forwarded_port", guest: 8080, host: 8080
  config.vm.provision "shell", inline: $requirements
end

Revision history for this message
A I (aialerts) said :
#3

I think I see the problem here. The VM does not have graphite-web installed in it and the port forwards in the Vagrantfile do not include port 8443. Does anyone have the right Vagrantfile for setting up Graphite?

Revision history for this message
Jason Dixon (jason-dixongroup) said :
#4

That's not the Vagrantfile that the install doc links to. The Vagrantfile in the graphite-web repo is not the same as the one in the Synthesize project.

Revision history for this message
A I (aialerts) said :
#5

Thank you. I didn't realize that synthesize is not included in the VM and I didn't realize that it is a separate project altogether. I assumed that the script was a part of graphite-web. When I saw the Vagrantfile in graphite-web, I assumed that it will create a VM for me with graphite-web and all related dependencies installed.

Perhaps this link can have a of statements that says something like, "clone the Synthesize repository and run 'vagrant up' from the synthesize project".

http://graphite.readthedocs.org/en/latest/install-synthesize.html

Revision history for this message
Jason Dixon (jason-dixongroup) said :
#6

I think that the doc is pretty straightforward as long as you follow the directions and not run off and run random stuff. ;-)

If there were any improvements to be made, I would say that it should include *less* documentation, not more. It really should just point to the external project and not try to duplicate the documentation already on the Synthesize project page. Not the least of which is because the two could easily get out of sync when I make changes to Synthesize.

Revision history for this message
Best Jason Dixon (jason-dixongroup) said :
#7

Per my recent comment on https://github.com/graphite-project/graphite-web/pull/1016, I've proposed removing that Vagrantfile from the graphite-web project root. I've also updated http://graphite.readthedocs.org/en/latest/install-synthesize.html to remove any potential confusion.

Revision history for this message
A I (aialerts) said :
#8

Thank you. This will avoid confusion. If possible, please build a vagrantfile that will actually deploy a functional graphite web implementation. I've spent several hours trying to get graphite web to install properly while following documentation and I still do not have it working. I see that this is a great product otherwise. Please make it easier to install.

Revision history for this message
Jason Dixon (jason-dixongroup) said :
#9

FYI I've removed the Vagrantfile from the graphite-web repo.
https://github.com/graphite-project/graphite-web/pull/1100