Centos 5.4, no graphs visible under Tree

Asked by fp

Okay, I'm trying to get graphite working on Centos 5.4, this is in a Vmware virtual machine. It's a fresh install. I've blown away the VM and started over twice, just in case I missed something stupid.

It seams like Carbon is working, Graphite is able to graph when I manually enter the info. Problem is, I see no graphs under Tree. It's all blank. I might be able to send the VM somewhere if need be, but be warned it's 1 gig uncompressed.

Here are my notes:

------------------------------
Centos 5.4, fresh install on a fresh VMware Virtual Machine.

Graphite Install (0.9.4):

Following Instructions on site (http://graphite.wikidot.com/installation)

- Needed non centos rpms, Used http://download.fedora.redhat.com/pub/epel/5/i386/

pyparsing-1.5.0-3.el5.noarch.rpm
python-simplejson-2.0.3-2.el5.i386.rpm
python-sqlite2-2.3.3-1.el5.i386.rpm
python-memcached-1.40-2.el5.noarch.rpm

installed
Django-1.1.1-1.el5.src.rpm
ext-2.3.0.zip

------------------------------
Instructions on Website typo:

cd /usr/local/graphite/web/ <-- dir doesn't exist
sudo python manage.py syncdb
# you will be prompted to create an admin user, this is a good idea

I'm taking it to be
cd /usr/local/graphite/webapp/web

which returns:

Could not import web.local_settings, using defaults!

------------------------------
cd /usr/local/graphite/carbon
sh init-script.sh start
python example-client.py
(no errors so far, checked all carbon logs.)
Wed Nov 4 19:19:16 2009: update_many: ../storage/whisper/carbon/agents/generic/pointsPerUpdate.wsp 1 data points took 0.000082 seconds
Wed Nov 4 19:19:16 2009: update_many: ../storage/whisper/carbon/agents/generic/committedPoints.wsp 1 data points took 0.000093 seconds
------------------------------
copied graphite-vhost.conf into apache dir

navigate to localhost :

I see top bar (graphite logo, cli , login/documentation) but nothing else. Something wrong here.

going thru log files I see:

------------------------------
webapp-access.log:

192.168.1.65 - - [04/Nov/2009:21:14:08 -0600] "GET /content/js/extJS/adapter/prototype/prototype.js HTTP/1.1" 404 322
192.168.1.65 - - [04/Nov/2009:21:14:08 -0600] "GET /content/js/extJS/adapter/prototype/scriptaculous.js?load=effects HTTP/1.1" 404 326
192.168.1.65 - - [04/Nov/2009:21:14:08 -0600] "GET /content/js/extJS/adapter/prototype/scriptaculous.js?load=effects HTTP/1.1" 404 326
------------------------------
webapp-error.log

[Wed Nov 04 21:14:08 2009] [error] [client 192.168.1.65] File does not exist: /usr/local/graphite/webapp/content/js/extJS/adapter/prototype/prototype.js,

referer: http://192.168.1.73/composer/?
[Wed Nov 04 21:14:08 2009] [error] [client 192.168.1.65] File does not exist: /usr/local/graphite/webapp/content/js/extJS/adapter/prototype/scriptaculous.js,

referer: http://192.168.1.73/composer/?
------------------------------
Is this an issue with follow symlinks?

Added
Options FollowSymLinks to vhost-graphite.conf

Didn't help, same files not found. Should have looked at the dir.. duh.

copied
/opt/graphite-0.9.4/webapp/content/js/scriptaculous/effects.js
/opt/graphite-0.9.4/webapp/content/js/scriptaculous/scriptaculous.js
/opt/graphite-0.9.4/webapp/content/js/window/prototype.js
to
/usr/local/graphite/webapp/content/js/extJS/adapter/prototype
dir

Now we have a pretty side bar with Graphite, My Graphs and User Graphs displayed. (I am logged in)

No graphs are visible under any of the folders (graphite, my graphs, user graphs).

copied dragdrop.js, and the *.js from scriptaculous dir to adapter dir, for good measure.
------------------------------
Checking webapp-error.log, no errors
Checking webapp-access.log, all 200 (ok) and 304 (not modified)
------------------------------
Test to see if we have graph data:

http://localhost/render?target=system.loadavg_15min

Yup we have a graph.
------------------------------

Why are there no graphs under the TREE tab (graphite, My graphs, User Graphs) ?

------------------------------

In ~web/local_settings.py
changed DEBUG=True
set MEMCACHE_HOSTS = [] (not using memcached atm)

service httpd restart
No change.
------------------------------
graphite-vhost.conf

NameVirtualHost *:80

<VirtualHost *:80>
        ServerName graphite
        DocumentRoot "/usr/local/graphite//webapp"
        <Location "/">
                SetHandler python-program
                PythonPath "['/usr/local/graphite/webapp'] + sys.path"
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE web.settings
                PythonDebug Off
                PythonAutoReload Off
        </Location>
        <Location "/content">
                SetHandler None
        </Location>
        ErrorLog /usr/local/graphite/storage/log/webapp-error.log
        CustomLog /usr/local/graphite/storage/log/webapp-access.log common
</VirtualHost>

didn't like the look of the extra "/" in DocumentRoot, changed it, added trailing /, no change, no change.
changed Docroot to /usr/local/graphite/webapp/web OOPS don't do this. restored original.
------------------------------
webapp-access.log, when i click each thing under tree.

192.168.1.65 - - [04/Nov/2009:21:51:02 -0600] "GET /browser/tree/?_dc=1257393068612&path=&node=GraphiteTree HTTP/1.1" 200 168
192.168.1.65 - - [04/Nov/2009:21:50:20 -0600] "GET /browser/mygraph/?_dc=1257393026538&path=&node=MyGraphsTree HTTP/1.1" 200 95
192.168.1.65 - - [04/Nov/2009:21:50:43 -0600] "GET /browser/usergraph/?_dc=1257393049720&path=&node=UserGraphsTree HTTP/1.1" 200 95

------------------------------
tried in IE for good measure.
no change.
------------------------------
Debug=True doesn't seam to have done anything.
------------------------------
read https://answers.launchpad.net/graphite/+question/38028
trying to upgrade pyparsing to at least 1.5.1

tried to install pyparsing-1.5.2, failed,
File "/usr/lib/python2.4/site-packages/pyparsing_py3.py", line 2470
    except ParseException as err:
                           ^
SyntaxError: invalid syntax

------------------------------
installed from source, pyparsing-1.5.1
service httpd restart
no change
------------------------------
read: https://answers.launchpad.net/graphite/+question/38578

Saw dev using:
freetype 2.3.5
fontconfig 2.5.0
cairo 1.6.0
pycairo 1.4.0

I'm using:
freetype-2.2.1-21.el5_3
fontconfig-2.4.1-7.el5
cairo-1.2.4-5.el5
pycairo-1.2.0-1.1

Trying to upgrade my cairo and pycairo, they seam unusually old

Using fedora core 10 spec files:

pixman-0.12.0-2.fc10.src.rpm
cairo-1.8.0-1.fc10.src.rpm
pycairo-1.4.12-4.fc10.src.rpm

(serveral dependancies yum'd in)

All rpms built and installed.
cairo now 1.8, pycairo now 1.4
No change.
------------------------------

I've seen like 2 answers saying symlinks don't work. copying that shit over.

rm -f /usr/local/graphite/webapp/content/js/extJS
cd /usr/local/graphite/webapp/content/js
cp -rP /opt/ext-2.3.0 extJS

service httpd restart
No change.

------------------------------

Okay, so. Carbon seams to be working. I have graph data for the example that I can see if I
manually enter it. I see no errors in any particular log files.

[root@generic web]# ps aux |grep car
apache 16935 0.0 0.2 9832 2764 ? S 19:24 0:00 python ./carbon-agent.py -u apache
apache 16936 0.0 0.3 9640 3648 ? S 19:24 0:00 python ./carbon-cache.py 6 9
apache 16937 0.0 0.3 9456 3800 ? S 19:24 0:00 python ./carbon-persister.py 8

------------------------------
Javascript Warnings: To many to list

Javascript Errors:
Error: this.params.set is not a function

Source File: http://192.168.1.73/content/js/composer.js

Line: 152
    this.params.set(key, [value]);

------------------------------
If I type system in the autocompleter, I do see 3 text items (loadavg_1min 5min 15min) display below the Help. but no graphs.

@ the autocompleter tab The follow js error:
Error: this.params.get is not a function

Source File: http://192.168.1.73/content/js/composer.js

Line: 117
------------------------------

Out of ideas, Anyone have anything else to try?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chrismd (chrismd) said :
#1

Geez, sorry you've had so many issues getting graphite to work. My recommendation would be to try out the latest trunk because there have been a ton of fixes and changes since 0.9.4 (0.9.5 is actually due out as soon as a couple more bugs are fixed in trunk). The documentation for graphite is, well, crap. At least for now that is, I have been edging closer toward getting enough free time to spending a night updating it all. So my apologies for all of your issues with 0.9.4, but it's probably going to be easier for you to switch to trunk.

You can check out trunk like so: bzr checkout lp:graphite

Then read the INSTALL file as it actually has an up-to-date (to my knowledge at least) walk-through of the install process which is a bit easier than it was for 0.9.4.

Some useful things to note for the latest trunk...

1) the default install location for graphite has changed from /usr/local/graphite/ to /opt/graphite/ as that's easier on my wrists
2) no more build_release.sh, use 'python setup.py sdist' to build tarballs via distutils
3) graphite (the webapp), carbon, and whisper are now three separate packages

Also if you run into issues with installing from trunk I will be much better equipped to help you if you have questions.

Revision history for this message
fp (fp) said :
#2

Haha, you didn't force me to spend time on it, I think it's a really cool package, and I want to get it working. I have opened a new uhm 'question' on my issues with the latest version. Any help you can give would be very appreciated.

Can you help with this problem?

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

To post a message you must log in.