graphite-web in virtualenv on CentOS 6.5
Hello everyone.
I'm trying to install graphite 0.9.15 from sources on CentOS 6.5
What I have accomplished so far:
compiled and installed in /opt python2.7.12
created virtualenv in /opt/graphite
compiled and installed graphite components (whisper, carbon, graphite-web) in virtualenv
compiled mod_wsgi with python 2.7 and configure apache to use it
I really stuck on making graphite-web work under apache.
Apache throws this error in error.log
[Mon Jul 18 10:54:06 2016] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/4.5.3 Python/2.7.12 configured -- resuming normal operations
[Mon Jul 18 10:54:06 2016] [error] mod_wsgi (pid=17237): Target WSGI script '/opt/graphite/
[Mon Jul 18 10:54:06 2016] [error] mod_wsgi (pid=17237): Exception occurred processing WSGI script '/opt/graphite/
[Mon Jul 18 10:54:06 2016] [error] Traceback (most recent call last):
[Mon Jul 18 10:54:06 2016] [error] File "/opt/graphite/
[Mon Jul 18 10:54:06 2016] [error] from whitenoise.django import DjangoWhiteNoise
[Mon Jul 18 10:54:06 2016] [error] File "/opt/graphite/
[Mon Jul 18 10:54:06 2016] [error] from django.
[Mon Jul 18 10:54:06 2016] [error] ImportError: No module named six.moves.
If I run graphite-web as django dev app using following commands, it works as expected:
source /opt/graphite/
Corresponding part of apache config:
# WSGISocketPrefix /var/log/httpd
# WSGIPythonHome /opt/graphite
# WSGIPythonPath /opt/graphite:
WSGIDaemonProcess graphiteweb python-
WSGIProcessGroup graphiteweb
WSGIApplication
WSGIImportScript /opt/graphite/
WSGIScriptAlias / /opt/graphite/
<VirtualHost *:80>
# wsgi script and permissions to read it
#WSGIDaemonPr
#WSGIProcessGroup sampleapp
# WSGISocketPrefix /opt/graphite/
WSGIScriptAlias / /opt/graphite/
<Directory /opt/graphite/conf>
# Require all granted
</Directory>
</VirtualHost>
I tried all commented options and numerous others and didn't succeed.
I tried to add following in graphite.wsgi as specified in official documentation:
import site
site.addsitedir
It didn't work out as well.
You can get my environment as following:
git clone https:/
cd graphite_centos65
vagrant up
Any help is really appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roman Vrublevskiy
- Solved:
- Last query:
- Last reply: