Errors about static assets in log file, webpage is blank

Asked by Vova

Hello!

Please help :)

1) About me and my efforts:
I'm struggling to install Graphite and get it running for almost 2 weeks so far on Ubuntu!
Now im on the step where I'm running the webapp, using the command:
PYTHONPATH=`pwd`/storage/whisper ./bin/run-graphite-devel-server.py --port=8085 --libs=`pwd`/webapp /opt/graphite 1>/opt/graphite/storage/log/webapp/process.log 2>&1 &

2) The problem:
In the logfile I get errors as following:
...
GET /static/js/ext/resources/css/ext-all.css HTTP/1.1" 404 113
[02/Oct/2015 09:38:14] "GET /static/js/ext/adapter/ext/ext-base.js HTTP/1.1" 404 111
[02/Oct/2015 09:38:14] "GET /static/css/dashboard-default.css HTTP/1.1" 404 106
...

In the browser I get a blank screen.

3) My attempts to fix it:
I've configured STATIC_ROOT as proposed in this link:
http://graphite.readthedocs.org/en/latest/config-local-settings.html#filesystem-paths
I've configured Apache as proposed in this^ link as well... specifically:
 - I've created directory /usr/local/apache2/conf/vhosts.d/*.conf
 - copied there the file example-graphite-vhost.conf
 - Included this file into the httpd.conf: Include /usr/local/apache2/conf/vhosts.d/*.conf

Please HAELP!!! :) I want to make it work!
I have no idea what to do next...
Note: I'm new to ubuntu

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
Jason Dixon (jason-dixongroup) said :
#1

Did you try installing the whitenoise module? It actually mentions it in the last sentence of that STATIC_ROOT section.

Jason

Revision history for this message
Vova (uladzimir-kuzmiankou) said :
#2

Yeah, I've tried to install whitenoise - the problem persists.
Should I somehow specifically configure whitenoise after installation? Should I revert "STATIC_ROOT" configuration for apache if using whitenoise (seems doesnt help)

HEELP!

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

First off, yelling doesn't help. It shouldn't be that hard to diagnose but I don't have access to your system. You appear to be running a somewhat unconventional layout so it's going to take some detective work on your part. You can see how we're doing it in Synthesize, but it also uses a "normal" layout.

https://github.com/obfuscurity/synthesize/blob/master/templates/apache/graphite.conf

HTH.

Revision history for this message
Jason LU (lujasone) said :
#4

I meet the same problem and look into all related Q&A chains, none can help to fix the blank webpage of Graphite. Finally I resolve it by myself with following change:

Uncomment the line in /opt/graphite/webapp/graphite/local_settings.py

#DEBUG = True ----------> DEBUG = True

Default debug value is false. Just change it.

Hopefully it can work for you.

Can you help with this problem?

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

To post a message you must log in.