Graphite only has top banner

Asked by Brad H

I am trying to install graphite on a centos 6.6 machine. I have it to the point where everything is installed and I don't see any obvious errors, but my main endpoint has nothing more than the top banner. It says "Graphite" on one side and has the other links on the right side (Login, documentation, Dashboard, etc.)

What's weird is that I can go to the render endpoints and I see everything as I would expect. I can feed data into the database and it works fine and shows up at the render endpoint on both the graphs and even if I select raw data such as json.

What doesn't seem to work is the main graphite endpoint which just displays the banner at the top. All the other frames are missing. Oddly enough I can login as root from the main page. Also, when I try to go to the Dashboard, the screen just says "Drop To Merge" on a pure white background.

I'm using Firefox for my browser.

I installed everything with 'yum'.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Brad H
Solved:
Last query:
Last reply:
Revision history for this message
Sean Burlington (sean-practicalweb) said :
#1

I had the same problem on centos 6.6

The javascript files under /content/ were generating empty responses

I modified /etc/httpd/conf.d/graphite-web.conf to add an Alias for /content/

I have other servers that do not need this line, so I guess something in centos changed - but I can't see what.

# Graphite Web Basic mod_wsgi vhost

<VirtualHost *:80>

    ServerName graphite-web
    DocumentRoot "/usr/share/graphite/webapp"
    ErrorLog /var/log/httpd/graphite-web-error.log
    CustomLog /var/log/httpd/graphite-web-access.log common
    Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
    Alias /content/ "/usr/share/graphite/webapp/content/"

    WSGIScriptAlias / /usr/share/graphite/graphite-web.wsgi
    WSGIImportScript /usr/share/graphite/graphite-web.wsgi process-group=%{GLOBAL} application-group=%{GLOBAL}

    <Location "/content/">
        SetHandler None
    </Location>

    <Location "/media/">
        SetHandler None
    </Location>

</VirtualHost>

Revision history for this message
Brad H (bahaihough) said :
#2

It works now! Thank you so much!

On Mon, Feb 23, 2015 at 9:01 AM, Sean Burlington <
<email address hidden>> wrote:

> Your question #262426 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/262426
>
> Status: Open => Answered
>
> Sean Burlington proposed the following answer:
> I had the same problem on centos 6.6
>
> The javascript files under /content/ were generating empty responses
>
>
> I modified /etc/httpd/conf.d/graphite-web.conf to add an Alias for
> /content/
>
> I have other servers that do not need this line, so I guess something in
> centos changed - but I can't see what.
>
>
> # Graphite Web Basic mod_wsgi vhost
>
> <VirtualHost *:80>
>
> ServerName graphite-web
> DocumentRoot "/usr/share/graphite/webapp"
> ErrorLog /var/log/httpd/graphite-web-error.log
> CustomLog /var/log/httpd/graphite-web-access.log common
> Alias /media/
> "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
> Alias /content/ "/usr/share/graphite/webapp/content/"
>
> WSGIScriptAlias / /usr/share/graphite/graphite-web.wsgi
> WSGIImportScript /usr/share/graphite/graphite-web.wsgi
> process-group=%{GLOBAL} application-group=%{GLOBAL}
>
> <Location "/content/">
> SetHandler None
> </Location>
>
> <Location "/media/">
> SetHandler None
> </Location>
>
> </VirtualHost>
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/graphite/+question/262426/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/graphite/+question/262426
>
> You received this question notification because you asked the question.
>

Revision history for this message
Brad H (bahaihough) said :
#3

It works now! Thank you so much!

Revision history for this message
everythingsround (everythingsroundinsideandout) said :
#4

Worked for Ubuntu 14.04 as well. Had the same issue. I followed the tips here:

Added
Alias /content/ /opt/graphite/webapp/content/

to /etc/apache2/sites-enabled/graphite.conf

And commented out the existing
Alias /static/ /opt/graphite/webapp/content/

from that same file. Thank you! Yay!

Revision history for this message
Caio (caiorodv) said :
#5

Works finally, you saved my day , thank you so much.