New question #230643 on Graphite: https://answers.launchpad.net/graphite/+question/230643
I'm having issues setting up and configuring Gaphite to run on Apache with mod_wsgi. I'm running CentOS 6.4, Django 1.3.7, Python 2.6.6, and Apache 2.2.15. Here is the error in question, along with Traceback, from /var/log/httpd/conf/error_log: mod_wsgi (pid=11670): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module. mod_wsgi (pid=11670): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'. Traceback (most recent call last): File "/opt/graphite/conf/graphite.wsgi", line 14, in <module> from graphite.logger import log File "/opt/graphite/webapp/graphite/logger.py", line 75, in <module> log = GraphiteLogger() # import-shared logger instance File "/opt/graphite/webapp/graphite/logger.py", line 40, in __init__ self.infoHandler = Rotater(self.infoLogFile,when="midnight",backupCount=1) File "/usr/lib64/python2.6/logging/handlers.py", line 164, in __init__ BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) File "/usr/lib64/python2.6/logging/handlers.py", line 64, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib64/python2.6/logging/__init__.py", line 827, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib64/python2.6/logging/__init__.py", line 846, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/opt/graphite/storage/log/webapp/info.log' Here should be some more helpful information: # ps aux | grep "11670" apache 11670 0.0 0.5 464012 15824 ? Sl 12:03 0:00 (wsgi:graphite) # ls -la /opt/graphite/storage/log/webapp/info.log -rwxrwxrwx. 1 apache apache 653 Jun 12 12:33 /opt/graphite/storage/log/webapp/info.log During my investigation of this issue it seems others were able to solve their problems with a simple chown command; however, this doesn't seem to be the case for me. I've even chmod'd the files to 777 in a drastic test attempt. I haven't deviated much from the instructions on installing graphite, and the configuration files have taken very minimal changes at best. I'm really struggling to find the issue here, any help would be appreciated so I can get on with stat tracking! -- You received this question notification because you are a member of graphite-dev, which is an answer contact for Graphite. _______________________________________________ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp