Graphite blank page

Asked by Rufa11

Hello,

Please i'm new with graphite, installed it many times with many django version and each time i got a blank dashboard, the only button available are Documentation, Dashboard, Events Logout, when i click on Dashboard i see:

Drop To Merge

And when i click on Events i see:

                                               graphite events
No events. Add events using the admin interface or by posting (eg, curl -X POST http://ip_asddress:8080/events/ -d '{"what": "Something Interesting", "tags" : "tag1"}')

Thank you.

Question information

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

What's your Graphite and Django version?

Revision history for this message
Tobias (lindqt01) said :
#2
Revision history for this message
Rufa11 (abdelkader-1) said :
#3

Hi guys,
Thank you for the reply,

Denis Zhdanov (deniszhdanov):
graphite-web version is graphite_web-1.0.1-py2.7.egg-info
Django version is 1.8

Tobias (lindqt01):

I performed the command and it collected the static, result of the command:
408 static files copied to '/opt/graphite/static'.

But still the same problem.

carbon-cache is running "systemctl start carbon-cache"
graphite server running "django-admin.py runserver --pythonpath /opt/graphite/webapp --settings graphite.settings 0.0.0.0:8080 "

Thanks.

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#4

Then you need to configure your webserver to render /static url to /opt/graphite/static

Revision history for this message
Rufa11 (abdelkader-1) said :
#5

Denis Zhdanov (deniszhdanov):

/opt/graphite/bin/run-graphite-devel-server.py /opt/graphite/static/
Running Graphite from /opt/graphite/static/ under django development server

django-admin.py runserver --pythonpath /opt/graphite/static/webapp --settings graphite.settings 0.0.0.0:8080
Traceback (most recent call last):
  File "/opt/graphite/bin/run-graphite-devel-server.py", line 46, in <module>
    management.execute_from_command_line(command)
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/usr/lib64/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/usr/lib64/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib64/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named graphite.settings

Graphite server needs graphite.settings and under static folder no graphite.settings file.

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#6

No, /opt/graphite/bin/run-graphite-devel-server.py will not work, you need a proper webserver, e.g. Nginx or Apache.
Or you need to install 'whitenoise' and use it in wsgi - https://github.com/graphite-project/graphite-web/blob/20d443b7158b3e601b0f77279247804ca7b4fc3a/webapp/graphite/wsgi.py

Revision history for this message
Rufa11 (abdelkader-1) said :
#7

Hi Denis,

Finally i installed graphite correctly with the procedure in the official graphite website:
http://graphite.readthedocs.io/en/latest/install.html#id2

But i can't connect with the default login admin/admin

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.