Issues with Installation & Versions?

Asked by Syd on 2016-09-06

I have a sensu setup I've been testing, all components on a single server. I want to push sensu metrics into graphite, so trying to test it.

Ive been attempting to install on a new separate ec2 amazon linux instance, have installed deps and then done the default pip install. However, having all kinds of problems following the installation. mainly in getting to the setup of the django database.

From other searches on the forum it would seem to be a version issue. ie. running latest Django 0.10.0

I've tried specifically installing django 1.9 but also had issues. Highly confusing version numbering.

Can somebody please set me straight on a few things, like the versions of ceres, carbon, whisper and graphite-web I should be using. I just want to do a simple pip install.

I tried installing some via epel but that lead to further issues. Also, the documentation leads me to assume I should be running python27 only, there those are the deps I've installed but when trying other options, python26 will come into play. What is correct here?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
2016-09-07
Last reply:
2016-09-08
Jason Dixon (jason-dixongroup) said : #1

Hi Syd,

I'm sorry you've had a poor installation experience. Can you link me the directions that you're attempting to follow?

Thanks,
Jason

Syd (syd-u) said : #2

Thanks Jason,

Just following: http://graphite.readthedocs.io/en/latest/install.html

I sussed out the virtualenv install locally and saw the different version requirements file and so mimic'd that manually on my ec2 instance and eventually got the database running:

PYTHONPATH=/opt/graphite/webapp /usr/local/bin/django-admin.py migrate --settings=graphite.settings --run-syncdb

but beyond that i'm a bit lost from there. just trying to get something basic working under nginx.

Syd (syd-u) said : #3

To be less vague: I've got carbon-cache running, and am trying to get sensu to push metrics in on port 2003 but lost as to how to actually integreate these two things with a few simple steps.

Jason Dixon (jason-dixongroup) said : #4

Just to clarify, would you mind checking "pip freeze" for the versions of graphite-web, carbon, and whisper you're running? Note that Ceres is an optional storage backend that you don't need to deal with unless you specifically want to.

Once we have that, can you elaborate on where you think you're stuck? You say that you want to push metrics in from Sensu (cool) but does the rest of your Graphite stack appear to be running ok? For example, can you open the web UI (Graphite Composer) and view metrics on a graph? Have you sent a sample metric in from the command line (e.g. http://graphite.readthedocs.io/en/latest/feeding-carbon.html#the-plaintext-protocol)?

Thanks,
Jason

Syd (syd-u) said : #5

aws-cfn-bootstrap==1.4
awscli==1.10.56
Babel==0.9.4
backports.ssl-match-hostname==3.4.0.2
boto==2.42.0
botocore==1.4.46
ceres==0.10.0
chardet==2.0.1
cloud-init==0.7.6
colorama==0.2.5
configobj==4.7.2
Django==1.9
django-tagging==0.4.3
docutils==0.11
ecdsa==0.11
futures==3.0.3
gunicorn==19.6.0
iniparse==0.3.1
Jinja2==2.7.2
jmespath==0.9.0
jsonpatch==1.2
jsonpointer==1.0
kitchen==1.1.1
lockfile==0.8
MarkupSafe==0.11
paramiko==1.15.1
PIL==1.1.6
ply==3.4
pyasn1==0.1.7
pycrypto==2.6.1
pycurl==7.19.0
pygpgme==0.3
pyliblzma==0.5.3
pyparsing==1.5.7
pystache==0.5.3
python-daemon==1.5.2
python-dateutil==2.1
python-ldap==2.3.10
python-memcached==1.47
pyxattr==0.5.0
PyYAML==3.10
requests==1.2.3
rsa==3.4.1
simplejson==2.1.6
six==1.8.0
Twisted==16.4.0
txAMQP==0.6.2
urlgrabber==3.9.1
urllib3==1.8.2
virtualenv==12.0.7
whisper==0.9.15
yum-metadata-parser==1.1.4
zope.interface==4.3.2

actually carbon and graphite-web arent showing for some reason. i eventually got a working setup and installed via salt, this looks to have been a bug in the past related to that. haven't been able to solve it though.

Jason Dixon (jason-dixongroup) said : #6

You definitely have some version mismatches in there. For starters you have whisper 0.9.15 but ceres 0.10. As I mentioned you probably don't need ceres so you can remove that (unless you actually are using that, in which case disregard my suggestion).

Assuming you're using whisper, then you *should* be using graphite-web 0.9.15, which means you have a mismatch with Django 1.9, which isn't supported with 0.9.x releases.

Long story short, you need the same version across graphite-web, carbon, and whisper (and ceres if you're using it). Given that you have pip packages of whisper and ceres (mismatched ones at that), but you're not seeing graphite-web and carbon packages, there's no telling what the state of those might be. Could be that they were installed in a virtualenv (or vice versa) so you're only seeing part of the package list, or it could be they were installed with the OS packages, or maybe they were installed from source. Not sure.

Can you help with this problem?

Provide an answer of your own, or ask Syd for more information if necessary.

To post a message you must log in.