Graphite not running

Posted by River on Server Fault See other posts from Server Fault or by River
Published on 2012-02-23T08:42:41Z Indexed on 2014/05/27 9:31 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

I'm currently trying to install graphite 0.9.9 on a gentoo box using these instructions from the graphite wiki. Essentially, it fronts graphite using apache and mod_wsgi.

Everything seems to have gone well, except that apache / the graphite webapp never seem to return a response to the web browser (the browser continuously waits to load the page). I've turned on the graphite debug info, but the only message in the log files is this, repeated over and over again in info.log (with the pid always changing):

Thu Feb 23 01:59:38 2012 :: graphite.wsgi - pid 4810 - reloading search index

These instructions have worked for me before to set up graphite on an Ubuntu machine. I suspect that mod_wsgi is dying, but I have confirmed that mod_wsgi works fine when not serving the graphite webapp.

This is what my graphite.conf vhost file looks like:

WSGISocketPrefix /etc/httpd/wsgi/ 

<VirtualHost *:80>
    ServerName # Server name
    DocumentRoot "/opt/graphite/webapp"
    ErrorLog /opt/graphite/storage/log/webapp/error.log
    CustomLog /opt/graphite/storage/log/webapp/access.log common

    # I've found that an equal number of processes & threads tends
    # to show the best performance for Graphite (ymmv).
    WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
    WSGIProcessGroup graphite
    WSGIApplicationGroup %{GLOBAL}
    WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}

    WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi  

    Alias /content/ /opt/graphite/webapp/content/ 
    <Location "/content/"> 
            SetHandler None 
    </Location> 

    # XXX In order for the django admin site media to work you 
    # must change @DJANGO_ROOT@ to be the path to your django 
    # installation, which is probably something like: 
    # /usr/lib/python2.6/site-packages/django 
    Alias /media/ "/usr/lib64/python2.6/site-packages/django/contrib/admin/media/" 
    <Location "/media/"> 
            SetHandler None 
    </Location> 

    # The graphite.wsgi file has to be accessible by apache. It won't 
    # be visible to clients because of the DocumentRoot though. 
    <Directory /opt/graphite/conf/> 
            Order deny,allow 
            Allow from all 
    </Directory> 

</VirtualHost> 

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about django