Graphite webapp can't find settings
I'm trying to setup the graphite webapp. I had no problems installing whisper and carbon, but am stuck at getting the webapp up and running. A few issues that I'm having are the following:
- When running "python manage.py syncdb" I get a stacktrace with the error "ImportError: No module named graphite.settings"
- When running "django-admin.py collectstatic --noinput --settings=
I've installed everything from source, installed the requirements defined in the requirements.txt file through pip and set up my Apache installation. Here are the versions that I'm running:
graphite-web: https:/
python: 2.7.6
apache: 2.4.7
django: 1.6.0 (although I tried 1.7 and 1.8 with the same results)
This is my 000-default.conf virtual host file:
WSGISocketPrefix /var/run/
<VirtualHost *:80>
ServerName graphite
ErrorLog /opt/graphite/
CustomLog /opt/graphite/
# I've found that an equal number of processes & threads tends
# to show the best performance for Graphite (ymmv).
# XXX You will need to create this file! There is a graphite.
# file in this directory that you can safely use, just copy it to graphite.wgsi
# XXX To serve static files, either:
# * Install the whitenoise Python package (pip install whitenoise)
# * Collect static files in a directory by running:
# django-admin.py collectstatic --noinput --settings=
# And set an alias to serve static files with Apache:
Alias /static/ /opt/graphite/
<Directory "/opt/graphite/
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Allow from all
</Directory>
# URL-prefixed install #
# If using URL_PREFIX in local_settings for URL-prefixed install (that is not located at "/"))
# your WSGIScriptAlias line should look like the following (e.g. URL_PREFX=
#Alias /graphite/static /opt/graphite/
#<Location "/graphite/
# SetHandler None
# 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/
Alias /media/ "/.virtualenvs/
# 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/
</VirtualHost>
As you can see I had to add access to the /opt/graphite/
When browsing to http://
Furthermore, when inspecting the error.log file all I'm getting is this:
[Thu Apr 09 11:24:41.891172 2015] [wsgi:error] [pid 18496] /usr/local/
[Thu Apr 09 11:24:41.891194 2015] [wsgi:error] [pid 18496] class ModelTagManager
[Thu Apr 09 11:24:41.891199 2015] [wsgi:error] [pid 18496]
I've tried chown'ing the /opt/graphite/ directory recursively to the apache user (www-data), myself and even root, but with no changes. I feel like I'm missing something very basic but I can't seem to figure out what. Is this a bug or am I just fucking up?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: