← Back to team overview

graphite-dev team mailing list archive

[Question #163442]: startup issues

 

New question #163442 on Graphite:
https://answers.launchpad.net/graphite/+question/163442

I've installed graphite (apache+wsgi) via the instructions and when I try to load up the page in my browser I get the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 101, in get_response
    request.path_info)
  File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 124, in wrapper
    result = func(*args)
  File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/lib/python2.6/site-packages/graphite_web-0.9.8-py2.6.egg/graphite/browser/views.py", line 20, in <module>
    from graphite.util import getProfile, getProfileByUsername, defaultUser, json
  File "/usr/lib/python2.6/site-packages/graphite_web-0.9.8-py2.6.egg/graphite/util.py", line 18, in <module>
    from graphite.logger import log
  File "/usr/lib/python2.6/site-packages/graphite_web-0.9.8-py2.6.egg/graphite/logger.py", line 75, in <module>
    log = GraphiteLogger() # import-shared logger instance
  File "/usr/lib/python2.6/site-packages/graphite_web-0.9.8-py2.6.egg/graphite/logger.py", line 40, in __init__
    self.infoHandler = Rotater(self.infoLogFile,when="midnight",backupCount=1)
  File "/usr/lib/python2.6/logging/handlers.py", line 159, in __init__
    BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
  File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.6/logging/__init__.py", line 819, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.6/logging/__init__.py", line 838, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/site-packages/storage/log/webapp/info.log'

That last line seems to indicate that this is some weird pathing error but I'm not sure. Here's some other info:



VIRTUALHOST CONFIG:

LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi

<VirtualHost *:80>
    ServerName graphite
    DocumentRoot "/opt/graphite/webapp"
    LogLevel info
    ErrorLog /opt/graphite/storage/log/webapp/error.log
    CustomLog /opt/graphite/storage/log/webapp/access.log common

    # I've found that an equal number of processes & threads tends
    # to show the best performance for Graphite (ymmv).
    WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
    WSGIProcessGroup graphite

    # You will need to create this file! There is a graphite.wsgi.example
    # file in this directory that you can safely use, just copy it to graphite.wgsi
    WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi 

    Alias /content/ /opt/graphite/webapp/content/
    <Location "/content/">
        SetHandler None
    </Location>

    # NOTE: 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/python2.6/site-packages/django
    Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
    <Location "/media/">
        SetHandler None
    </Location>

    # 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/conf/>
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>



/opt/graphite/storage/logs/error.log:

[Fri Jul 01 15:13:39 2011] [info] mod_wsgi (pid=3051): Create interpreter 'graphite|'.
[Fri Jul 01 15:13:39 2011] [info] [client 69.10.69.2] mod_wsgi (pid=3051, process='graphite', application='graphite|'): Loading WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Fri Jul 01 15:13:39 2011] [error] Could not import graphite.local_settings, using defaults!
[Fri Jul 01 15:13:39 2011] [error] /usr/lib/python2.6/site-packages/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
[Fri Jul 01 15:13:39 2011] [error]   DeprecationWarning
[Fri Jul 01 15:13:39 2011] [error] /usr/lib/python2.6/site-packages/django/db/__init__.py:60: DeprecationW
arning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
[Fri Jul 01 15:13:39 2011] [error]   DeprecationWarning
[Fri Jul 01 15:13:39 2011] [error] /usr/lib/python2.6/site-packages/django/template/loaders/filesystem.py:
58: DeprecationWarning: 'django.template.loaders.filesystem.load_template_source' is deprecated; use 'django.template.loaders.filesystem.Loader' instead.
[Fri Jul 01 15:13:39 2011] [error]   DeprecationWarning

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.